Lines Matching defs:dctx
47 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
49 memset(dctx, 0, sizeof(*dctx));
98 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
100 u8 *dst = dctx->buffer;
103 if (dctx->bytes) {
104 int n = min(srclen, dctx->bytes);
105 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
107 dctx->bytes -= n;
113 if (!dctx->bytes)
123 dctx->bytes = GHASH_BLOCK_SIZE - srclen;
131 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx)
133 u8 *dst = dctx->buffer;
135 if (dctx->bytes) {
136 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
138 while (dctx->bytes--)
146 dctx->bytes = 0;
151 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
153 u8 *buf = dctx->buffer;
155 ghash_flush(ctx, dctx);
232 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
235 memcpy(dctx, in, sizeof(*dctx));
244 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
246 memcpy(out, dctx, sizeof(*dctx));