Lines Matching refs:dctx
48 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
50 memset(dctx, 0, sizeof(*dctx));
81 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
83 u8 *dst = dctx->buffer;
85 if (dctx->bytes) {
86 int n = min(srclen, dctx->bytes);
87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
89 dctx->bytes -= n;
95 if (!dctx->bytes)
107 dctx->bytes = GHASH_BLOCK_SIZE - srclen;
115 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx)
117 u8 *dst = dctx->buffer;
119 if (dctx->bytes) {
120 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes);
122 while (dctx->bytes--)
128 dctx->bytes = 0;
133 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc);
135 u8 *buf = dctx->buffer;
137 ghash_flush(ctx, dctx);