Lines Matching defs:tfm
706 struct crypto_shash *tfm;
723 tfm = crypto_alloc_shash("hmac(sha256)", 0, 0);
724 if (IS_ERR(tfm))
725 return PTR_ERR(tfm);
727 ret = crypto_shash_setkey(tfm, sw->key, TB_SWITCH_KEY_SIZE);
731 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm),
738 shash->tfm = tfm;
751 crypto_free_shash(tfm);
759 crypto_free_shash(tfm);