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()
80 *) tfm)); in p8_ghash_init_tfm()
89 static void p8_ghash_exit_tfm(struct crypto_tfm *tfm) in p8_ghash_exit_tfm() argument
91 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(tfm); in p8_ghash_exit_tfm()
101 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_init()
106 dctx->fallback_desc.tfm = ctx->fallback; in p8_ghash_init()
111 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, in p8_ghash_setkey() argument
114 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(tfm)); in p8_ghash_setkey()
134 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_update()
187 struct p8_ghash_ctx *ctx = crypto_tfm_ctx(crypto_shash_tfm(desc->tfm)); in p8_ghash_final()