Home
last modified time | relevance | path

Searched refs:ahreq (Results 1 – 5 of 5) sorted by relevance

/linux/crypto/
H A Dauthenc.c116 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_finish() local
118 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_finish()
153 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv() local
158 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
159 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv()
161 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv()
165 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv()
236 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail() local
241 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
244 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail()
[all …]
H A Dkrb5enc.c188 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in krb5enc_encrypt_ahash_done() local
193 krb5enc_insert_checksum(req, ahreq->result); in krb5enc_encrypt_ahash_done()
213 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in krb5enc_dispatch_encrypt_hash() local
217 ahash_request_set_callback(ahreq, aead_request_flags(req), in krb5enc_dispatch_encrypt_hash()
219 ahash_request_set_tfm(ahreq, auth); in krb5enc_dispatch_encrypt_hash()
220 ahash_request_set_crypt(ahreq, req->src, hash, req->assoclen + req->cryptlen); in krb5enc_dispatch_encrypt_hash()
222 err = crypto_ahash_digest(ahreq); in krb5enc_dispatch_encrypt_hash()
251 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in krb5enc_verify_hash() local
256 scatterwalk_map_and_copy(msg_hash, req->src, ahreq->nbytes, authsize, 0); in krb5enc_verify_hash()
284 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in krb5enc_dispatch_decrypt_hash() local
[all …]
H A Dauthencesn.c121 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_genicv() local
139 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
140 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
141 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv()
144 return crypto_ahash_digest(ahreq) ?: in crypto_authenc_esn_genicv()
256 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local
294 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
295 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt()
296 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt()
299 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
H A Dgcm.c70 struct ahash_request ahreq; member
204 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_update() local
206 ahash_request_set_callback(ahreq, flags, compl, req); in gcm_hash_update()
207 ahash_request_set_crypt(ahreq, src, NULL, len); in gcm_hash_update()
209 return crypto_ahash_update(ahreq); in gcm_hash_update()
222 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash_len() local
230 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len()
231 ahash_request_set_crypt(ahreq, &pctx->sg, in gcm_hash_len()
234 return crypto_ahash_finup(ahreq); in gcm_hash_len()
395 struct ahash_request *ahreq = &pctx->u.ahreq; in gcm_hash() local
[all …]
H A Dccm.c49 struct ahash_request ahreq; member
171 struct ahash_request *ahreq = &pctx->ahreq; in crypto_ccm_auth() local
196 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth()
197 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth()
198 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
199 err = crypto_ahash_init(ahreq); in crypto_ccm_auth()
202 err = crypto_ahash_update(ahreq); in crypto_ccm_auth()
218 ahash_request_set_crypt(ahreq, plain, odata, cryptlen); in crypto_ccm_auth()
219 err = crypto_ahash_finup(ahreq); in crypto_ccm_auth()