Lines Matching refs:ghash
10 #include <crypto/ghash.h>
63 static void aesgcm_ghash(be128 *ghash, const be128 *key, const void *src,
67 crypto_xor((u8 *)ghash, src, min(len, GHASH_BLOCK_SIZE));
68 gf128mul_lle(ghash, key);
93 be128 ghash = {};
95 aesgcm_ghash(&ghash, &ctx->ghash_key, assoc, assoc_len);
96 aesgcm_ghash(&ghash, &ctx->ghash_key, src, src_len);
97 aesgcm_ghash(&ghash, &ctx->ghash_key, &tail, sizeof(tail));
101 crypto_xor_cpy(authtag, buf, (u8 *)&ghash, ctx->authsize);
103 memzero_explicit(&ghash, sizeof(ghash));