Lines Matching refs:areq_ctx
102 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_esn_geniv_ahash_update_done() local
103 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_esn_geniv_ahash_update_done()
108 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, in authenc_esn_geniv_ahash_update_done()
109 areq_ctx->cryptlen); in authenc_esn_geniv_ahash_update_done()
112 areq_ctx->update_complete2, req); in authenc_esn_geniv_ahash_update_done()
118 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, in authenc_esn_geniv_ahash_update_done()
119 areq_ctx->trailen); in authenc_esn_geniv_ahash_update_done()
122 areq_ctx->complete, req); in authenc_esn_geniv_ahash_update_done()
128 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, in authenc_esn_geniv_ahash_update_done()
129 areq_ctx->cryptlen, in authenc_esn_geniv_ahash_update_done()
142 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_esn_geniv_ahash_update_done2() local
143 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_esn_geniv_ahash_update_done2()
148 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, in authenc_esn_geniv_ahash_update_done2()
149 areq_ctx->trailen); in authenc_esn_geniv_ahash_update_done2()
152 areq_ctx->complete, req); in authenc_esn_geniv_ahash_update_done2()
158 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, in authenc_esn_geniv_ahash_update_done2()
159 areq_ctx->cryptlen, in authenc_esn_geniv_ahash_update_done2()
173 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_esn_geniv_ahash_done() local
174 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_esn_geniv_ahash_done()
179 scatterwalk_map_and_copy(ahreq->result, areq_ctx->sg, in authenc_esn_geniv_ahash_done()
180 areq_ctx->cryptlen, in authenc_esn_geniv_ahash_done()
197 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_esn_verify_ahash_update_done() local
198 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_esn_verify_ahash_update_done()
204 ahash_request_set_crypt(ahreq, areq_ctx->sg, ahreq->result, in authenc_esn_verify_ahash_update_done()
205 areq_ctx->cryptlen); in authenc_esn_verify_ahash_update_done()
210 areq_ctx->update_complete2, req); in authenc_esn_verify_ahash_update_done()
216 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, in authenc_esn_verify_ahash_update_done()
217 areq_ctx->trailen); in authenc_esn_verify_ahash_update_done()
220 areq_ctx->complete, req); in authenc_esn_verify_ahash_update_done()
229 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in authenc_esn_verify_ahash_update_done()
258 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_esn_verify_ahash_update_done2() local
259 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_esn_verify_ahash_update_done2()
265 ahash_request_set_crypt(ahreq, areq_ctx->tsg, ahreq->result, in authenc_esn_verify_ahash_update_done2()
266 areq_ctx->trailen); in authenc_esn_verify_ahash_update_done2()
269 areq_ctx->complete, req); in authenc_esn_verify_ahash_update_done2()
278 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in authenc_esn_verify_ahash_update_done2()
308 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in authenc_esn_verify_ahash_done() local
309 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in authenc_esn_verify_ahash_done()
318 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in authenc_esn_verify_ahash_done()
344 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_ahash() local
345 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_ahash()
346 u8 *hash = areq_ctx->tail; in crypto_authenc_esn_ahash()
358 ahash_request_set_crypt(ahreq, areq_ctx->hsg, hash, areq_ctx->headlen); in crypto_authenc_esn_ahash()
360 areq_ctx->update_complete, req); in crypto_authenc_esn_ahash()
366 ahash_request_set_crypt(ahreq, areq_ctx->sg, hash, areq_ctx->cryptlen); in crypto_authenc_esn_ahash()
368 areq_ctx->update_complete2, req); in crypto_authenc_esn_ahash()
374 ahash_request_set_crypt(ahreq, areq_ctx->tsg, hash, in crypto_authenc_esn_ahash()
375 areq_ctx->trailen); in crypto_authenc_esn_ahash()
377 areq_ctx->complete, req); in crypto_authenc_esn_ahash()
390 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_genicv() local
393 struct scatterlist *cipher = areq_ctx->cipher; in crypto_authenc_esn_genicv()
394 struct scatterlist *hsg = areq_ctx->hsg; in crypto_authenc_esn_genicv()
395 struct scatterlist *tsg = areq_ctx->tsg; in crypto_authenc_esn_genicv()
433 areq_ctx->cryptlen = cryptlen; in crypto_authenc_esn_genicv()
434 areq_ctx->headlen = assoc->length + assoc2->length; in crypto_authenc_esn_genicv()
435 areq_ctx->trailen = assoc1->length; in crypto_authenc_esn_genicv()
436 areq_ctx->sg = dst; in crypto_authenc_esn_genicv()
438 areq_ctx->complete = authenc_esn_geniv_ahash_done; in crypto_authenc_esn_genicv()
439 areq_ctx->update_complete = authenc_esn_geniv_ahash_update_done; in crypto_authenc_esn_genicv()
440 areq_ctx->update_complete2 = authenc_esn_geniv_ahash_update_done2; in crypto_authenc_esn_genicv()
474 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_encrypt() local
478 struct ablkcipher_request *abreq = (void *)(areq_ctx->tail in crypto_authenc_esn_encrypt()
537 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_verify() local
542 areq_ctx->complete = authenc_esn_verify_ahash_done; in crypto_authenc_esn_verify()
543 areq_ctx->update_complete = authenc_esn_verify_ahash_update_done; in crypto_authenc_esn_verify()
551 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in crypto_authenc_esn_verify()
560 struct authenc_esn_request_ctx *areq_ctx = aead_request_ctx(req); in crypto_authenc_esn_iverify() local
563 struct scatterlist *cipher = areq_ctx->cipher; in crypto_authenc_esn_iverify()
564 struct scatterlist *hsg = areq_ctx->hsg; in crypto_authenc_esn_iverify()
565 struct scatterlist *tsg = areq_ctx->tsg; in crypto_authenc_esn_iverify()
601 areq_ctx->cryptlen = cryptlen; in crypto_authenc_esn_iverify()
602 areq_ctx->headlen = assoc->length + assoc2->length; in crypto_authenc_esn_iverify()
603 areq_ctx->trailen = assoc1->length; in crypto_authenc_esn_iverify()
604 areq_ctx->sg = src; in crypto_authenc_esn_iverify()
606 areq_ctx->complete = authenc_esn_verify_ahash_done; in crypto_authenc_esn_iverify()
607 areq_ctx->update_complete = authenc_esn_verify_ahash_update_done; in crypto_authenc_esn_iverify()
608 areq_ctx->update_complete2 = authenc_esn_verify_ahash_update_done2; in crypto_authenc_esn_iverify()