Searched refs:ahreq (Results 1 – 5 of 5) sorted by relevance
| /crypto/ |
| A D | authenc.c | 122 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done() 142 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv() 143 ahash_request_set_crypt(ahreq, req->dst, hash, in crypto_authenc_genicv() 145 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv() 148 err = crypto_ahash_digest(ahreq); in crypto_authenc_genicv() 217 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 222 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail() 266 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_decrypt() 267 ahash_request_set_crypt(ahreq, req->src, hash, in crypto_authenc_decrypt() 269 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_decrypt() [all …]
|
| A D | krb5enc.c | 188 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() 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 290 ahash_request_set_tfm(ahreq, auth); in krb5enc_dispatch_decrypt_hash() 291 ahash_request_set_crypt(ahreq, req->dst, hash, in krb5enc_dispatch_decrypt_hash() 293 ahash_request_set_callback(ahreq, aead_request_flags(req), in krb5enc_dispatch_decrypt_hash() [all …]
|
| A D | authencesn.c | 121 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() 248 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ctx->reqoff); in crypto_authenc_esn_decrypt() local 278 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt() 279 ahash_request_set_crypt(ahreq, dst, ohash, assoclen + cryptlen); in crypto_authenc_esn_decrypt() 280 ahash_request_set_callback(ahreq, aead_request_flags(req), in crypto_authenc_esn_decrypt() 283 err = crypto_ahash_digest(ahreq); in crypto_authenc_esn_decrypt()
|
| A D | gcm.c | 70 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 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 398 ahash_request_set_tfm(ahreq, ctx->ghash); in gcm_hash() [all …]
|
| A D | ccm.c | 49 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()
|
Completed in 12 milliseconds