Lines Matching refs:dctx
145 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_init() local
147 memset(dctx, 0, sizeof(*dctx)); in polyval_init()
155 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_update() local
161 if (dctx->bytes) { in polyval_update()
162 n = min(srclen, dctx->bytes); in polyval_update()
163 pos = dctx->buffer + dctx->bytes - 1; in polyval_update()
165 dctx->bytes -= n; in polyval_update()
171 if (!dctx->bytes) in polyval_update()
172 gf128mul_4k_lle(&dctx->buffer128, ctx->gf128); in polyval_update()
177 crypto_xor(dctx->buffer, tmp, POLYVAL_BLOCK_SIZE); in polyval_update()
178 gf128mul_4k_lle(&dctx->buffer128, ctx->gf128); in polyval_update()
184 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_update()
185 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - 1; in polyval_update()
195 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_final() local
198 if (dctx->bytes) in polyval_final()
199 gf128mul_4k_lle(&dctx->buffer128, ctx->gf128); in polyval_final()
200 copy_and_reverse(dst, dctx->buffer); in polyval_final()