Lines Matching refs:req

48 static int chainiv_givencrypt(struct skcipher_givcrypt_request *req)  in chainiv_givencrypt()  argument
50 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); in chainiv_givencrypt()
52 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in chainiv_givencrypt()
57 ablkcipher_request_set_callback(subreq, req->creq.base.flags & in chainiv_givencrypt()
59 req->creq.base.complete, in chainiv_givencrypt()
60 req->creq.base.data); in chainiv_givencrypt()
61 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in chainiv_givencrypt()
62 req->creq.nbytes, req->creq.info); in chainiv_givencrypt()
68 memcpy(req->giv, ctx->iv, ivsize); in chainiv_givencrypt()
137 static int async_chainiv_postpone_request(struct skcipher_givcrypt_request *req) in async_chainiv_postpone_request() argument
139 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); in async_chainiv_postpone_request()
144 err = skcipher_enqueue_givcrypt(&ctx->queue, req); in async_chainiv_postpone_request()
154 static int async_chainiv_givencrypt_tail(struct skcipher_givcrypt_request *req) in async_chainiv_givencrypt_tail() argument
156 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); in async_chainiv_givencrypt_tail()
158 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt_tail()
161 memcpy(req->giv, ctx->iv, ivsize); in async_chainiv_givencrypt_tail()
174 static int async_chainiv_givencrypt(struct skcipher_givcrypt_request *req) in async_chainiv_givencrypt() argument
176 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); in async_chainiv_givencrypt()
178 struct ablkcipher_request *subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_givencrypt()
181 ablkcipher_request_set_callback(subreq, req->creq.base.flags, in async_chainiv_givencrypt()
182 req->creq.base.complete, in async_chainiv_givencrypt()
183 req->creq.base.data); in async_chainiv_givencrypt()
184 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in async_chainiv_givencrypt()
185 req->creq.nbytes, req->creq.info); in async_chainiv_givencrypt()
195 return async_chainiv_givencrypt_tail(req); in async_chainiv_givencrypt()
198 return async_chainiv_postpone_request(req); in async_chainiv_givencrypt()
206 struct skcipher_givcrypt_request *req; in async_chainiv_do_postponed() local
212 req = skcipher_dequeue_givcrypt(&ctx->queue); in async_chainiv_do_postponed()
215 if (!req) { in async_chainiv_do_postponed()
220 subreq = skcipher_givcrypt_reqctx(req); in async_chainiv_do_postponed()
223 err = async_chainiv_givencrypt_tail(req); in async_chainiv_do_postponed()
226 skcipher_givcrypt_complete(req, err); in async_chainiv_do_postponed()