Lines Matching refs:ctx
48 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc); in ghash_init() local
50 *ctx = (struct ghash_desc_ctx){}; in ghash_init()
57 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc); in ghash_update() local
58 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update()
60 ctx->count += len; in ghash_update()
69 memcpy(ctx->buf + partial, src, p); in ghash_update()
78 pmull_ghash_update(blocks, ctx->digest, src, key, in ghash_update()
79 partial ? ctx->buf : NULL); in ghash_update()
85 memcpy(ctx->buf + partial, src, len); in ghash_update()
91 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc); in ghash_final() local
92 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final()
97 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()
99 pmull_ghash_update(1, ctx->digest, ctx->buf, key, NULL); in ghash_final()
102 put_unaligned_be64(ctx->digest[1], dst); in ghash_final()
103 put_unaligned_be64(ctx->digest[0], dst + 8); in ghash_final()
105 *ctx = (struct ghash_desc_ctx){}; in ghash_final()
154 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init() local
156 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_init()
178 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update() local
179 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_update()
196 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_final() local
197 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_final()
211 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_digest() local
213 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_digest()
232 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_setkey() local
233 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
249 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_init_tfm() local
256 ctx->cryptd_tfm = cryptd_tfm; in ghash_async_init_tfm()
266 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_async_exit_tfm() local
268 cryptd_free_ahash(ctx->cryptd_tfm); in ghash_async_exit_tfm()