Lines Matching refs:dctx
37 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local
39 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
66 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local
68 u8 *dst = dctx->buffer; in ghash_update()
73 if (dctx->bytes) { in ghash_update()
74 int n = min(srclen, dctx->bytes); in ghash_update()
75 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
77 dctx->bytes -= n; in ghash_update()
83 if (!dctx->bytes) in ghash_update()
95 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
103 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) in ghash_flush() argument
105 u8 *dst = dctx->buffer; in ghash_flush()
107 if (dctx->bytes) { in ghash_flush()
108 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
110 while (dctx->bytes--) in ghash_flush()
116 dctx->bytes = 0; in ghash_flush()
121 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_final() local
123 u8 *buf = dctx->buffer; in ghash_final()
128 ghash_flush(ctx, dctx); in ghash_final()