Lines Matching defs:req
29 static int chacha_mips_stream_xor(struct skcipher_request *req,
36 err = skcipher_walk_virt(&walk, req, false);
54 static int chacha_mips(struct skcipher_request *req)
56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
59 return chacha_mips_stream_xor(req, ctx, req->iv);
62 static int xchacha_mips(struct skcipher_request *req)
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
70 chacha_init_generic(state, ctx->key, req->iv);
75 memcpy(&real_iv[0], req->iv + 24, 8);
76 memcpy(&real_iv[8], req->iv + 16, 8);
77 return chacha_mips_stream_xor(req, &subctx, real_iv);