Lines Matching refs:tfm
124 struct crypto_shash *tfm; in __do_hmac() local
132 tfm = *this_cpu_ptr(algo->tfms); in __do_hmac()
134 dgsize = crypto_shash_digestsize(tfm); in __do_hmac()
141 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); in __do_hmac()
148 shash->tfm = tfm; in __do_hmac()
356 struct crypto_shash *tfm; in seg6_hmac_init_algo() local
372 tfm = crypto_alloc_shash(algo->name, 0, 0); in seg6_hmac_init_algo()
373 if (IS_ERR(tfm)) in seg6_hmac_init_algo()
374 return PTR_ERR(tfm); in seg6_hmac_init_algo()
376 *p_tfm = tfm; in seg6_hmac_init_algo()
380 tfm = *p_tfm; in seg6_hmac_init_algo()
382 shsize = sizeof(*shash) + crypto_shash_descsize(tfm); in seg6_hmac_init_algo()
423 struct crypto_shash *tfm; in seg6_hmac_exit() local
428 tfm = *per_cpu_ptr(algo->tfms, cpu); in seg6_hmac_exit()
429 crypto_free_shash(tfm); in seg6_hmac_exit()