Lines Matching refs:tfm
37 static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) in hmac_ctx() argument
39 return align_ptr(crypto_shash_ctx_aligned(tfm) + in hmac_ctx()
40 crypto_shash_statesize(tfm) * 2, in hmac_ctx()
58 shash->tfm = hash; in hmac_setkey()
101 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); in hmac_import()
103 desc->tfm = ctx->hash; in hmac_import()
111 return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm)); in hmac_init()
126 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
143 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
156 static int hmac_init_tfm(struct crypto_tfm *tfm) in hmac_init_tfm() argument
158 struct crypto_shash *parent = __crypto_shash_cast(tfm); in hmac_init_tfm()
160 struct crypto_instance *inst = (void *)tfm->__crt_alg; in hmac_init_tfm()
175 static void hmac_exit_tfm(struct crypto_tfm *tfm) in hmac_exit_tfm() argument
177 struct hmac_ctx *ctx = hmac_ctx(__crypto_shash_cast(tfm)); in hmac_exit_tfm()