Lines Matching refs:auth_tag
65 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()
415 u8 *auth_tag = pctx->auth_tag; in gcm_enc_copy_hash() local
417 crypto_xor(auth_tag, pctx->iauth_tag, 16); in gcm_enc_copy_hash()
418 scatterwalk_map_and_copy(auth_tag, req->dst, in gcm_enc_copy_hash()
469 u8 *auth_tag = pctx->auth_tag; in crypto_gcm_verify() local
474 crypto_xor(auth_tag, iauth_tag, 16); in crypto_gcm_verify()
477 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify()