Lines Matching defs:dctx
47 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
49 memset(dctx, 0, sizeof(*dctx));
79 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
81 u8 *dst = dctx->buffer;
84 if (dctx->bytes) {
85 int n = min(srclen, dctx->bytes);
86 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
88 dctx->bytes -= n;
94 if (!dctx->bytes)
104 dctx->bytes = GHASH_BLOCK_SIZE - srclen;
112 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx)
114 u8 *dst = dctx->buffer;
116 if (dctx->bytes) {
117 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
119 while (dctx->bytes--)
127 dctx->bytes = 0;
132 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
134 u8 *buf = dctx->buffer;
136 ghash_flush(ctx, dctx);
213 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
216 memcpy(dctx, in, sizeof(*dctx));
225 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
227 memcpy(out, dctx, sizeof(*dctx));