Lines Matching refs:tfm
56 static int p8_ghash_init_tfm(struct crypto_tfm *tfm) in p8_ghash_init_tfm() argument
60 struct crypto_shash *shash_tfm = __crypto_shash_cast(tfm); in p8_ghash_init_tfm()
61 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(tfm); in p8_ghash_init_tfm()
63 if (!(alg = crypto_tfm_alg_name(tfm))) { in p8_ghash_init_tfm()
78 crypto_shash_get_flags((struct crypto_shash *) tfm)); in p8_ghash_init_tfm()
87 static void p8_ghash_exit_tfm(struct crypto_tfm *tfm) in p8_ghash_exit_tfm() argument
89 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(tfm); in p8_ghash_exit_tfm()
99 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_init()
104 dctx->fallback_desc.tfm = ctx->fallback; in p8_ghash_init()
109 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, in p8_ghash_setkey() argument
112 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(tfm)); in p8_ghash_setkey()
130 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_update()
177 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_final()