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