Lines Matching refs:tfm
17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
23 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in ieee80211_aes_gmac()
59 aead_request_set_tfm(aead_req, tfm); in ieee80211_aes_gmac()
72 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() local
75 tfm = crypto_alloc_aead("gcm(aes)", 0, CRYPTO_ALG_ASYNC); in ieee80211_aes_gmac_key_setup()
76 if (IS_ERR(tfm)) in ieee80211_aes_gmac_key_setup()
77 return tfm; in ieee80211_aes_gmac_key_setup()
79 err = crypto_aead_setkey(tfm, key, key_len); in ieee80211_aes_gmac_key_setup()
81 err = crypto_aead_setauthsize(tfm, GMAC_MIC_LEN); in ieee80211_aes_gmac_key_setup()
83 return tfm; in ieee80211_aes_gmac_key_setup()
85 crypto_free_aead(tfm); in ieee80211_aes_gmac_key_setup()
89 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free() argument
91 crypto_free_aead(tfm); in ieee80211_aes_gmac_key_free()