Lines Matching refs:req
163 static int chacha_simd_stream_xor(struct skcipher_request *req,
170 err = skcipher_walk_virt(&walk, req, false);
198 static int chacha_simd(struct skcipher_request *req)
200 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
203 return chacha_simd_stream_xor(req, ctx, req->iv);
206 static int xchacha_simd(struct skcipher_request *req)
208 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
214 chacha_init_generic(state, ctx->key, req->iv);
216 if (req->cryptlen > CHACHA_BLOCK_SIZE && crypto_simd_usable()) {
225 memcpy(&real_iv[0], req->iv + 24, 8);
226 memcpy(&real_iv[8], req->iv + 16, 8);
227 return chacha_simd_stream_xor(req, &subctx, real_iv);