Lines Matching refs:ghash_key
35 struct ghash_key { struct
49 struct ghash_key ghash_key; argument
75 struct ghash_key *key, const char *head) in ghash_do_update()
100 struct ghash_key *key, const char *head, in ghash_do_simd_update()
127 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
164 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final()
192 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey()
209 .base.cra_ctxsize = sizeof(struct ghash_key) + sizeof(u64[2]),
247 memcpy(&ctx->ghash_key.k, key, GHASH_BLOCK_SIZE); in gcm_aes_setkey()
249 ghash_reflect(ctx->ghash_key.h[0], &ctx->ghash_key.k); in gcm_aes_setkey()
251 h = ctx->ghash_key.k; in gcm_aes_setkey()
252 gf128mul_lle(&h, &ctx->ghash_key.k); in gcm_aes_setkey()
253 ghash_reflect(ctx->ghash_key.h[1], &h); in gcm_aes_setkey()
255 gf128mul_lle(&h, &ctx->ghash_key.k); in gcm_aes_setkey()
256 ghash_reflect(ctx->ghash_key.h[2], &h); in gcm_aes_setkey()
258 gf128mul_lle(&h, &ctx->ghash_key.k); in gcm_aes_setkey()
259 ghash_reflect(ctx->ghash_key.h[3], &h); in gcm_aes_setkey()
285 ghash_do_simd_update(blocks, dg, src, &ctx->ghash_key, in gcm_update_mac()
330 ghash_do_simd_update(1, dg, buf, &ctx->ghash_key, NULL, in gcm_calculate_auth_mac()
373 pmull_gcm_encrypt(nbytes, dst, src, ctx->ghash_key.h, in gcm_encrypt()
443 ret = pmull_gcm_decrypt(nbytes, dst, src, ctx->ghash_key.h, in gcm_decrypt()