Lines Matching refs:ctx
47 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); in ghash_setkey() local
54 if (ctx->gf128) in ghash_setkey()
55 gf128mul_free_4k(ctx->gf128); in ghash_setkey()
56 ctx->gf128 = gf128mul_init_4k_lle((be128 *)key); in ghash_setkey()
57 if (!ctx->gf128) in ghash_setkey()
67 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() local
70 if (!ctx->gf128) in ghash_update()
84 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_update()
89 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_update()
103 static void ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) in ghash_flush() argument
113 gf128mul_4k_lle((be128 *)dst, ctx->gf128); in ghash_flush()
122 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() local
125 if (!ctx->gf128) in ghash_final()
128 ghash_flush(ctx, dctx); in ghash_final()
136 struct ghash_ctx *ctx = crypto_tfm_ctx(tfm); in ghash_exit_tfm() local
137 if (ctx->gf128) in ghash_exit_tfm()
138 gf128mul_free_4k(ctx->gf128); in ghash_exit_tfm()