Home
last modified time | relevance | path

Searched refs:auth_tag (Results 1 – 2 of 2) sorted by relevance

/linux/crypto/
H A Dgcm.c63 u8 auth_tag[16]; member
154 memset(pctx->auth_tag, 0, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
159 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
166 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
186 cryptlen + sizeof(pctx->auth_tag), in crypto_gcm_init_crypt()
409 u8 *auth_tag = pctx->auth_tag; in gcm_enc_copy_hash() local
411 crypto_xor(auth_tag, pctx->iauth_tag, 16); in gcm_enc_copy_hash()
412 scatterwalk_map_and_copy(auth_tag, req->dst, in gcm_enc_copy_hash()
463 u8 *auth_tag = pctx->auth_tag; in crypto_gcm_verify() local
468 crypto_xor(auth_tag, iauth_tag, 16); in crypto_gcm_verify()
[all …]
/linux/drivers/crypto/
H A Dsa2ul.c1667 u8 auth_tag[SA_MAX_AUTH_TAG_SZ]; in sa_aead_dma_in_callback() local
1688 scatterwalk_map_and_copy(auth_tag, req->src, start, authsize, in sa_aead_dma_in_callback()
1691 err = memcmp(&mdptr[4], auth_tag, authsize) ? -EBADMSG : 0; in sa_aead_dma_in_callback()