Lines Matching defs:subreq
269 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher.cipher);
272 skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher.cipher);
273 skcipher_request_set_callback(subreq, req->base.flags,
275 skcipher_request_set_crypt(subreq, req->src, req->dst,
277 ret = encrypt ? crypto_skcipher_encrypt(subreq)
278 : crypto_skcipher_decrypt(subreq);
279 skcipher_request_zero(subreq);
354 struct aead_request *subreq = aead_request_ctx(req);
356 aead_request_set_tfm(subreq, ctx->sw_cipher.aead);
357 aead_request_set_callback(subreq, req->base.flags,
359 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen,
361 aead_request_set_ad(subreq, req->assoclen);
362 return do_decrypt ? crypto_aead_decrypt(subreq) :
363 crypto_aead_encrypt(subreq);