Lines Matching refs:areq_ctx
128 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_geniv_ahash_update_done() local
129 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_geniv_ahash_update_done()
134 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, in authenc_geniv_ahash_update_done()
135 areq_ctx->cryptlen); in authenc_geniv_ahash_update_done()
138 areq_ctx->complete, req); in authenc_geniv_ahash_update_done()
144 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, in authenc_geniv_ahash_update_done()
145 areq_ctx->cryptlen, in authenc_geniv_ahash_update_done()
157 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_geniv_ahash_done() local
158 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_geniv_ahash_done()
163 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, in authenc_geniv_ahash_done()
164 areq_ctx->cryptlen, in authenc_geniv_ahash_done()
180 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_verify_ahash_update_done() local
181 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_verify_ahash_update_done()
187 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, in authenc_verify_ahash_update_done()
188 areq_ctx->cryptlen); in authenc_verify_ahash_update_done()
191 areq_ctx->complete, req); in authenc_verify_ahash_update_done()
200 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in authenc_verify_ahash_update_done()
229 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_verify_ahash_done() local
230 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_verify_ahash_done()
239 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in authenc_verify_ahash_done()
264 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_ahash_fb() local
265 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_ahash_fb()
266 u8 *hash = areq_ctx->tail; in crypto_authenc_ahash_fb()
280 areq_ctx->update_complete, req); in crypto_authenc_ahash_fb()
286 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, in crypto_authenc_ahash_fb()
287 areq_ctx->cryptlen); in crypto_authenc_ahash_fb()
289 areq_ctx->complete, req); in crypto_authenc_ahash_fb()
303 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_ahash() local
304 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_ahash()
305 u8 *hash = areq_ctx->tail; in crypto_authenc_ahash()
312 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, in crypto_authenc_ahash()
313 areq_ctx->cryptlen); in crypto_authenc_ahash()
315 areq_ctx->complete, req); in crypto_authenc_ahash()
328 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_genicv() local
331 struct scatterlist *cipher = areq_ctx->cipher; in crypto_authenc_genicv()
332 struct scatterlist *asg = areq_ctx->asg; in crypto_authenc_genicv()
360 areq_ctx->cryptlen = cryptlen; in crypto_authenc_genicv()
361 areq_ctx->sg = dst; in crypto_authenc_genicv()
363 areq_ctx->complete = authenc_geniv_ahash_done; in crypto_authenc_genicv()
364 areq_ctx->update_complete = authenc_geniv_ahash_update_done; in crypto_authenc_genicv()
383 struct authenc_request_ctx *areq_ctx = aead_request_ctx(areq); in crypto_authenc_encrypt_done() local
384 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail in crypto_authenc_encrypt_done()
398 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_encrypt() local
402 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail in crypto_authenc_encrypt()
462 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_verify() local
467 areq_ctx->complete = authenc_verify_ahash_done; in crypto_authenc_verify()
468 areq_ctx->update_complete = authenc_verify_ahash_update_done; in crypto_authenc_verify()
476 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in crypto_authenc_verify()
485 struct authenc_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_iverify() local
488 struct scatterlist *cipher = areq_ctx->cipher; in crypto_authenc_iverify()
489 struct scatterlist *asg = areq_ctx->asg; in crypto_authenc_iverify()
515 areq_ctx->cryptlen = cryptlen; in crypto_authenc_iverify()
516 areq_ctx->sg = src; in crypto_authenc_iverify()