Lines Matching refs:dctx
26 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local
28 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
55 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local
57 u8 *dst = dctx->buffer; in ghash_update()
59 if (dctx->bytes) { in ghash_update()
60 int n = min(srclen, dctx->bytes); in ghash_update()
61 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
63 dctx->bytes -= n; in ghash_update()
69 if (!dctx->bytes) in ghash_update()
81 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
89 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) in ghash_flush() argument
91 u8 *dst = dctx->buffer; in ghash_flush()
93 if (dctx->bytes) { in ghash_flush()
94 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
96 while (dctx->bytes--) in ghash_flush()
102 dctx->bytes = 0; in ghash_flush()
107 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_final() local
109 u8 *buf = dctx->buffer; in ghash_final()
111 ghash_flush(ctx, dctx); in ghash_final()