Home
last modified time | relevance | path

Searched refs:shash (Results 1 – 2 of 2) sorted by relevance

/arch/powerpc/crypto/
A Dghash.c40 u64 shash[2]; member
47 memset(dctx->shash, 0, GHASH_DIGEST_SIZE); in p8_ghash_init()
80 gcm_ghash_p8(dctx->shash, ctx->htable, src, GHASH_BLOCK_SIZE); in __ghash_block()
85 crypto_xor((u8 *)dctx->shash, src, GHASH_BLOCK_SIZE); in __ghash_block()
86 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_block()
101 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_blocks()
108 crypto_xor((u8 *)dctx->shash, src, GHASH_BLOCK_SIZE); in __ghash_blocks()
109 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_blocks()
140 memcpy(out, dctx->shash, GHASH_DIGEST_SIZE); in p8_ghash_finup()
/arch/x86/crypto/
A Dghash-clmulni-intel_glue.c22 asmlinkage void clmul_ghash_mul(char *dst, const le128 *shash);
25 unsigned int srclen, const le128 *shash);
28 le128 shash; member
74 ctx->shash.a = cpu_to_le64((a << 1) | (b >> 63)); in ghash_setkey()
75 ctx->shash.b = cpu_to_le64((b << 1) | (a >> 63)); in ghash_setkey()
77 ctx->shash.a ^= cpu_to_le64((u64)0xc2 << 56); in ghash_setkey()
90 remain = clmul_ghash_update(dst, src, srclen, &ctx->shash); in ghash_update()
103 clmul_ghash_mul(dst, &ctx->shash); in ghash_flush()

Completed in 7 milliseconds