Lines Matching refs:dctx
46 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local
48 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
79 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local
81 u8 *dst = dctx->buffer; in ghash_update()
84 if (dctx->bytes) { in ghash_update()
85 int n = min(srclen, dctx->bytes); in ghash_update()
86 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
88 dctx->bytes -= n; in ghash_update()
94 if (!dctx->bytes) in ghash_update()
104 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
112 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) in ghash_flush() argument
114 u8 *dst = dctx->buffer; in ghash_flush()
116 if (dctx->bytes) { in ghash_flush()
117 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
119 while (dctx->bytes--) in ghash_flush()
127 dctx->bytes = 0; in ghash_flush()
132 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_final() local
134 u8 *buf = dctx->buffer; in ghash_final()
136 ghash_flush(ctx, dctx); in ghash_final()
213 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_async_import() local
216 memcpy(dctx, in, sizeof(*dctx)); in ghash_async_import()
225 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_async_export() local
227 memcpy(out, dctx, sizeof(*dctx)); in ghash_async_export()