Lines Matching refs:subreq
52 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in chainiv_givencrypt() local
56 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in chainiv_givencrypt()
57 ablkcipher_request_set_callback(subreq, req->creq.base.flags & in chainiv_givencrypt()
61 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in chainiv_givencrypt()
69 memcpy(subreq->info, ctx->iv, ivsize); in chainiv_givencrypt()
71 err = crypto_ablkcipher_encrypt(subreq); in chainiv_givencrypt()
75 memcpy(ctx->iv, subreq->info, ivsize); in chainiv_givencrypt()
165 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt_tail() local
169 memcpy(subreq->info, ctx->iv, ivsize); in async_chainiv_givencrypt_tail()
171 ctx->err = crypto_ablkcipher_encrypt(subreq); in async_chainiv_givencrypt_tail()
175 memcpy(ctx->iv, subreq->info, ivsize); in async_chainiv_givencrypt_tail()
185 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt() local
187 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); in async_chainiv_givencrypt()
188 ablkcipher_request_set_callback(subreq, req->creq.base.flags, in async_chainiv_givencrypt()
191 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in async_chainiv_givencrypt()
241 struct ablkcipher_request *subreq; in async_chainiv_do_postponed() local
254 subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_do_postponed()
255 subreq->base.flags |= CRYPTO_TFM_REQ_MAY_SLEEP; in async_chainiv_do_postponed()