Lines Matching refs:tfm
38 static void aes_cmac_vector(struct crypto_cipher *tfm, size_t num_elem, in aes_cmac_vector() argument
67 crypto_cipher_encrypt_one(tfm, cbc, cbc); in aes_cmac_vector()
72 crypto_cipher_encrypt_one(tfm, pad, pad); in aes_cmac_vector()
90 crypto_cipher_encrypt_one(tfm, pad, pad); in aes_cmac_vector()
95 void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
110 aes_cmac_vector(tfm, 3, addr, len, mic, CMAC_TLEN); in ieee80211_aes_cmac()
113 void ieee80211_aes_cmac_256(struct crypto_cipher *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
128 aes_cmac_vector(tfm, 3, addr, len, mic, CMAC_TLEN_256); in ieee80211_aes_cmac_256()
134 struct crypto_cipher *tfm; in ieee80211_aes_cmac_key_setup() local
136 tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); in ieee80211_aes_cmac_key_setup()
137 if (!IS_ERR(tfm)) in ieee80211_aes_cmac_key_setup()
138 crypto_cipher_setkey(tfm, key, key_len); in ieee80211_aes_cmac_key_setup()
140 return tfm; in ieee80211_aes_cmac_key_setup()
144 void ieee80211_aes_cmac_key_free(struct crypto_cipher *tfm) in ieee80211_aes_cmac_key_free() argument
146 crypto_free_cipher(tfm); in ieee80211_aes_cmac_key_free()