Home
last modified time | relevance | path

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

/linux/drivers/crypto/
H A Domap-aes-gcm.c68 scatterwalk_map_and_copy(rctx->auth_tag, in omap_aes_gcm_done_task()
80 tag = (u8 *)rctx->auth_tag; in omap_aes_gcm_done_task()
190 u32 *auth_tag, tag[4]; in omap_aes_gcm_dma_out_callback() local
198 auth_tag = (u32 *)rctx->auth_tag; in omap_aes_gcm_dma_out_callback()
201 auth_tag[i] = val ^ auth_tag[i]; in omap_aes_gcm_dma_out_callback()
203 auth_tag[i] = auth_tag[i] ^ tag[i]; in omap_aes_gcm_dma_out_callback()
248 memset(rctx->auth_tag, 0, sizeof(rctx->auth_tag)); in omap_aes_gcm_crypt()
251 err = do_encrypt_iv(req, (u32 *)rctx->auth_tag, (u32 *)rctx->iv); in omap_aes_gcm_crypt()
260 scatterwalk_map_and_copy(rctx->auth_tag, req->dst, 0, authlen, in omap_aes_gcm_crypt()
H A Domap-aes.h110 u32 auth_tag[AES_BLOCK_SIZE / sizeof(u32)]; member
/linux/crypto/
H A Dgcm.c65 u8 auth_tag[16]; member
158 memset(pctx->auth_tag, 0, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
163 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
170 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
190 cryptlen + sizeof(pctx->auth_tag), in crypto_gcm_init_crypt()
413 u8 *auth_tag = pctx->auth_tag; in gcm_enc_copy_hash() local
415 crypto_xor(auth_tag, pctx->iauth_tag, 16); in gcm_enc_copy_hash()
416 scatterwalk_map_and_copy(auth_tag, req->dst, in gcm_enc_copy_hash()
467 u8 *auth_tag = pctx->auth_tag; in crypto_gcm_verify() local
472 crypto_xor(auth_tag, iauth_tag, 16); in crypto_gcm_verify()
[all …]
H A Dccm.c43 u8 auth_tag[16]; member
339 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done()
354 u8 *authtag = pctx->auth_tag; in crypto_ccm_decrypt()