Searched refs:areq_ctx (Results 1 - 2 of 2) sorted by relevance

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

Completed in 96 milliseconds