Lines Matching refs:auth_tag
66 u8 auth_tag[16]; member
164 memset(pctx->auth_tag, 0, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
169 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
176 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
196 cryptlen + sizeof(pctx->auth_tag), in crypto_gcm_init_crypt()
421 u8 *auth_tag = pctx->auth_tag; in gcm_enc_copy_hash() local
423 crypto_xor(auth_tag, pctx->iauth_tag, 16); in gcm_enc_copy_hash()
424 scatterwalk_map_and_copy(auth_tag, req->dst, in gcm_enc_copy_hash()
475 u8 *auth_tag = pctx->auth_tag; in crypto_gcm_verify() local
480 crypto_xor(auth_tag, iauth_tag, 16); in crypto_gcm_verify()
483 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify()