Lines Matching refs:key
62 struct ghash_key *key, const char *head) in ghash_do_update() argument
67 pmull_ghash_update_p64(blocks, dg, src, key->h, head); in ghash_do_update()
69 pmull_ghash_update_p8(blocks, dg, src, key->h, head); in ghash_do_update()
86 gf128mul_lle(&dst, &key->k); in ghash_do_update()
103 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update() local
117 ghash_do_update(blocks, ctx->digest, src, key, in ghash_update()
133 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final() local
136 ghash_do_update(1, ctx->digest, ctx->buf, key, NULL); in ghash_final()
159 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey() local
165 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
166 ghash_reflect(key->h[0], &key->k); in ghash_setkey()
169 be128 h = key->k; in ghash_setkey()
171 gf128mul_lle(&h, &key->k); in ghash_setkey()
172 ghash_reflect(key->h[1], &h); in ghash_setkey()
174 gf128mul_lle(&h, &key->k); in ghash_setkey()
175 ghash_reflect(key->h[2], &h); in ghash_setkey()
177 gf128mul_lle(&h, &key->k); in ghash_setkey()
178 ghash_reflect(key->h[3], &h); in ghash_setkey()
289 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in ghash_async_setkey() argument
298 return crypto_ahash_setkey(child, key, keylen); in ghash_async_setkey()