Lines Matching refs:subreq
40 struct aead_request subreq; member
54 struct aead_request subreq; member
727 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4106_crypt() local
730 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
752 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt()
753 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4106_crypt()
755 aead_request_set_crypt(subreq, rctx->src, in crypto_rfc4106_crypt()
758 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4106_crypt()
760 return subreq; in crypto_rfc4106_crypt()
933 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4543_crypt() local
948 aead_request_set_tfm(subreq, ctx->child); in crypto_rfc4543_crypt()
949 aead_request_set_callback(subreq, req->base.flags, in crypto_rfc4543_crypt()
951 aead_request_set_crypt(subreq, req->src, req->dst, in crypto_rfc4543_crypt()
953 aead_request_set_ad(subreq, req->assoclen + req->cryptlen - in crypto_rfc4543_crypt()
954 subreq->cryptlen); in crypto_rfc4543_crypt()
956 return enc ? crypto_aead_encrypt(subreq) : crypto_aead_decrypt(subreq); in crypto_rfc4543_crypt()