Lines Matching refs:tfm
24 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
27 SHASH_DESC_ON_STACK(desc, tfm); in ieee80211_aes_cmac()
30 desc->tfm = tfm; in ieee80211_aes_cmac()
40 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
43 SHASH_DESC_ON_STACK(desc, tfm); in ieee80211_aes_cmac_256()
45 desc->tfm = tfm; in ieee80211_aes_cmac_256()
56 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup() local
58 tfm = crypto_alloc_shash("cmac(aes)", 0, 0); in ieee80211_aes_cmac_key_setup()
59 if (!IS_ERR(tfm)) in ieee80211_aes_cmac_key_setup()
60 crypto_shash_setkey(tfm, key, key_len); in ieee80211_aes_cmac_key_setup()
62 return tfm; in ieee80211_aes_cmac_key_setup()
65 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) in ieee80211_aes_cmac_key_free() argument
67 crypto_free_shash(tfm); in ieee80211_aes_cmac_key_free()