Searched refs:subreq (Results 1 – 5 of 5) sorted by relevance
/crypto/ |
D | chainiv.c | 51 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in chainiv_givencrypt() local 55 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in chainiv_givencrypt() 56 ablkcipher_request_set_callback(subreq, req->creq.base.flags & in chainiv_givencrypt() 60 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in chainiv_givencrypt() 68 memcpy(subreq->info, ctx->iv, ivsize); in chainiv_givencrypt() 70 err = crypto_ablkcipher_encrypt(subreq); in chainiv_givencrypt() 74 memcpy(ctx->iv, subreq->info, ivsize); in chainiv_givencrypt() 164 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt_tail() local 168 memcpy(subreq->info, ctx->iv, ivsize); in async_chainiv_givencrypt_tail() 170 ctx->err = crypto_ablkcipher_encrypt(subreq); in async_chainiv_givencrypt_tail() [all …]
|
D | seqiv.c | 33 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_complete2() local 43 memcpy(req->creq.info, subreq->info, crypto_ablkcipher_ivsize(geniv)); in seqiv_complete2() 46 kfree(subreq->info); in seqiv_complete2() 59 struct aead_request *subreq = aead_givcrypt_reqctx(req); in seqiv_aead_complete2() local 69 memcpy(req->areq.iv, subreq->iv, crypto_aead_ivsize(geniv)); in seqiv_aead_complete2() 72 kfree(subreq->iv); in seqiv_aead_complete2() 101 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in seqiv_givencrypt() local 108 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in seqiv_givencrypt() 128 ablkcipher_request_set_callback(subreq, req->creq.base.flags, complete, in seqiv_givencrypt() 130 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in seqiv_givencrypt() [all …]
|
D | eseqiv.c | 84 struct ablkcipher_request *subreq; in eseqiv_givencrypt() local 99 subreq = (void *)(reqctx->tail + ctx->reqoff); in eseqiv_givencrypt() 100 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in eseqiv_givencrypt() 122 ablkcipher_request_set_callback(subreq, req->creq.base.flags, complete, in eseqiv_givencrypt() 138 ablkcipher_request_set_crypt(subreq, reqctx->src, dst, in eseqiv_givencrypt() 152 err = crypto_ablkcipher_encrypt(subreq); in eseqiv_givencrypt()
|
D | gcm.c | 620 struct aead_request *subreq = aead_request_ctx(req); in crypto_rfc4106_crypt() local 624 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt() 630 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt() 631 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4106_crypt() 633 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, iv); in crypto_rfc4106_crypt() 634 aead_request_set_assoc(subreq, req->assoc, req->assoclen); in crypto_rfc4106_crypt() 636 return subreq; in crypto_rfc4106_crypt()
|
D | ccm.c | 686 struct aead_request *subreq = aead_request_ctx(req); in crypto_rfc4309_crypt() local 690 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt() 699 aead_request_set_tfm(subreq, child); in crypto_rfc4309_crypt() 700 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4309_crypt() 702 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, iv); in crypto_rfc4309_crypt() 703 aead_request_set_assoc(subreq, req->assoc, req->assoclen); in crypto_rfc4309_crypt() 705 return subreq; in crypto_rfc4309_crypt()
|