Lines Matching defs:dctx
37 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
39 memset(dctx, 0, sizeof(*dctx));
66 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
68 u8 *dst = dctx->buffer;
70 if (dctx->bytes) {
71 int n = min(srclen, dctx->bytes);
72 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
74 dctx->bytes -= n;
80 if (!dctx->bytes)
92 dctx->bytes = GHASH_BLOCK_SIZE - srclen;
100 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx)
102 u8 *dst = dctx->buffer;
104 if (dctx->bytes) {
105 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
107 while (dctx->bytes--)
113 dctx->bytes = 0;
118 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
120 u8 *buf = dctx->buffer;
122 ghash_flush(ctx, dctx);