Lines Matching defs:tfm
25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
28 SHASH_DESC_ON_STACK(desc, tfm);
32 desc->tfm = tfm;
49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
52 SHASH_DESC_ON_STACK(desc, tfm);
55 desc->tfm = tfm;
74 struct crypto_shash *tfm;
76 tfm = crypto_alloc_shash("cmac(aes)", 0, 0);
77 if (!IS_ERR(tfm)) {
78 int err = crypto_shash_setkey(tfm, key, key_len);
81 crypto_free_shash(tfm);
86 return tfm;
89 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm)
91 crypto_free_shash(tfm);