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