Lines Matching defs:tfm
130 struct crypto_shash *tfm;
137 tfm = crypto_alloc_shash("hmac(sha256)", 0, 0);
138 if (IS_ERR(tfm)) {
139 BT_DBG("crypto_alloc_ahash failed: err %ld", PTR_ERR(tfm));
140 return PTR_ERR(tfm);
143 ret = crypto_shash_setkey(tfm, key, ksize);
149 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm),
156 shash->tfm = tfm;
163 crypto_free_shash(tfm);