Searched refs:iauth_tag (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/crypto/nx/
H A Dnx.h101 u8 iauth_tag[16]; member in struct:nx_gcm_priv
114 u8 iauth_tag[16]; member in struct:nx_ccm_priv
H A Dnx-aes-ccm.c210 b1 = nx_ctx->priv.ccm.iauth_tag; generate_pat()
H A Dnx-aes-gcm.c421 u8 *itag = nx_ctx->priv.gcm.iauth_tag; gcm_aes_nx_crypt()
/linux-4.1.27/crypto/
H A Dgcm.c68 u8 iauth_tag[16]; member in struct:crypto_gcm_req_priv_ctx
268 memcpy(pctx->iauth_tag, &lengths, 16); gcm_hash_len()
269 sg_init_one(pctx->src, pctx->iauth_tag, 16); gcm_hash_len()
285 ahash_request_set_crypt(ahreq, NULL, pctx->iauth_tag, 0); gcm_hash_final()
296 crypto_xor(pctx->auth_tag, pctx->iauth_tag, 16); __gcm_hash_final_done()
537 crypto_xor(pctx->auth_tag, pctx->iauth_tag, 16); gcm_encrypt_done()
568 crypto_xor(pctx->auth_tag, pctx->iauth_tag, 16); crypto_gcm_encrypt()
579 u8 *iauth_tag = pctx->iauth_tag; crypto_gcm_verify() local
583 crypto_xor(auth_tag, iauth_tag, 16); crypto_gcm_verify()
584 scatterwalk_map_and_copy(iauth_tag, req->src, cryptlen, authsize, 0); crypto_gcm_verify()
585 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; crypto_gcm_verify()

Completed in 97 milliseconds