Lines Matching refs:tfm
122 struct crypto_shash *tfm; in __do_hmac() local
130 tfm = *this_cpu_ptr(algo->tfms); in __do_hmac()
132 dgsize = crypto_shash_digestsize(tfm); in __do_hmac()
139 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); in __do_hmac()
146 shash->tfm = tfm; in __do_hmac()
354 struct crypto_shash *tfm; in seg6_hmac_init_algo() local
371 tfm = crypto_alloc_shash(algo->name, 0, 0); in seg6_hmac_init_algo()
372 if (IS_ERR(tfm)) { in seg6_hmac_init_algo()
373 ret = PTR_ERR(tfm); in seg6_hmac_init_algo()
377 *p_tfm = tfm; in seg6_hmac_init_algo()
381 tfm = *p_tfm; in seg6_hmac_init_algo()
383 shsize = sizeof(*shash) + crypto_shash_descsize(tfm); in seg6_hmac_init_algo()
420 struct crypto_shash *tfm; in seg6_hmac_exit() local
438 tfm = *per_cpu_ptr(algo->tfms, cpu); in seg6_hmac_exit()
439 crypto_free_shash(tfm); in seg6_hmac_exit()