Lines Matching refs:subreq
144 struct skcipher_request *subreq = skcipher_request_ctx(req); in essiv_skcipher_crypt() local
148 skcipher_request_set_tfm(subreq, tctx->u.skcipher); in essiv_skcipher_crypt()
149 skcipher_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in essiv_skcipher_crypt()
151 skcipher_request_set_callback(subreq, skcipher_request_flags(req), in essiv_skcipher_crypt()
154 return enc ? crypto_skcipher_encrypt(subreq) : in essiv_skcipher_crypt()
155 crypto_skcipher_decrypt(subreq); in essiv_skcipher_crypt()
182 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt() local
240 aead_request_set_tfm(subreq, tctx->u.aead); in essiv_aead_crypt()
241 aead_request_set_ad(subreq, req->assoclen); in essiv_aead_crypt()
242 aead_request_set_callback(subreq, aead_request_flags(req), in essiv_aead_crypt()
244 aead_request_set_crypt(subreq, src, req->dst, req->cryptlen, req->iv); in essiv_aead_crypt()
246 err = enc ? crypto_aead_encrypt(subreq) : in essiv_aead_crypt()
247 crypto_aead_decrypt(subreq); in essiv_aead_crypt()