Lines Matching refs:dctx
103 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_x86_init() local
105 memset(dctx, 0, sizeof(*dctx)); in polyval_x86_init()
113 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_x86_update() local
119 if (dctx->bytes) { in polyval_x86_update()
120 n = min(srclen, dctx->bytes); in polyval_x86_update()
121 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - dctx->bytes; in polyval_x86_update()
123 dctx->bytes -= n; in polyval_x86_update()
129 if (!dctx->bytes) in polyval_x86_update()
130 internal_polyval_mul(dctx->buffer, in polyval_x86_update()
137 internal_polyval_update(tctx, src, nblocks, dctx->buffer); in polyval_x86_update()
143 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_x86_update()
144 pos = dctx->buffer; in polyval_x86_update()
154 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_x86_final() local
157 if (dctx->bytes) { in polyval_x86_final()
158 internal_polyval_mul(dctx->buffer, in polyval_x86_final()
162 memcpy(dst, dctx->buffer, POLYVAL_BLOCK_SIZE); in polyval_x86_final()