Lines Matching refs:ghash
12 #include <crypto/ghash.h>
64 static void aesgcm_ghash(be128 *ghash, const be128 *key, const void *src,
68 crypto_xor((u8 *)ghash, src, min(len, GHASH_BLOCK_SIZE));
69 gf128mul_lle(ghash, key);
81 be128 ghash = {};
83 aesgcm_ghash(&ghash, &ctx->ghash_key, assoc, assoc_len);
84 aesgcm_ghash(&ghash, &ctx->ghash_key, src, src_len);
85 aesgcm_ghash(&ghash, &ctx->ghash_key, &tail, sizeof(tail));
89 crypto_xor_cpy(authtag, buf, (u8 *)&ghash, ctx->authsize);
91 memzero_explicit(&ghash, sizeof(ghash));