Lines Matching defs:dctx
48 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
50 memset(dctx, 0, sizeof(*dctx));
73 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
75 u8 *dst = dctx->buffer;
78 if (dctx->bytes) {
79 int n = min(srclen, dctx->bytes);
80 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
82 dctx->bytes -= n;
88 if (!dctx->bytes)
98 dctx->bytes = GHASH_BLOCK_SIZE - srclen;
106 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx)
108 u8 *dst = dctx->buffer;
110 if (dctx->bytes) {
111 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
113 while (dctx->bytes--)
121 dctx->bytes = 0;
126 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
128 u8 *buf = dctx->buffer;
130 ghash_flush(ctx, dctx);