Lines Matching refs:dctx
45 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_init() local
47 memset(dctx->shash, 0, GHASH_DIGEST_SIZE); in p8_ghash_init()
73 struct p8_ghash_desc_ctx *dctx, in __ghash_block() argument
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()
91 struct p8_ghash_desc_ctx *dctx, in __ghash_blocks() argument
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()
122 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_update() local
124 return __ghash_blocks(ctx, dctx, src, srclen); in p8_ghash_update()
131 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_finup() local
137 __ghash_block(ctx, dctx, buf); in p8_ghash_finup()
140 memcpy(out, dctx->shash, GHASH_DIGEST_SIZE); in p8_ghash_finup()