Lines Matching refs:tfm
52 struct crypto_aead *tfm; member
68 priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC); in lib80211_ccmp_init()
69 if (IS_ERR(priv->tfm)) { in lib80211_ccmp_init()
70 priv->tfm = NULL; in lib80211_ccmp_init()
78 if (priv->tfm) in lib80211_ccmp_init()
79 crypto_free_aead(priv->tfm); in lib80211_ccmp_init()
89 if (_priv && _priv->tfm) in lib80211_ccmp_deinit()
90 crypto_free_aead(_priv->tfm); in lib80211_ccmp_deinit()
209 req = aead_request_alloc(key->tfm, GFP_ATOMIC); in lib80211_ccmp_encrypt()
313 req = aead_request_alloc(key->tfm, GFP_ATOMIC); in lib80211_ccmp_decrypt()
351 struct crypto_aead *tfm = data->tfm; in lib80211_ccmp_set_key() local
356 data->tfm = tfm; in lib80211_ccmp_set_key()
368 if (crypto_aead_setauthsize(data->tfm, CCMP_MIC_LEN) || in lib80211_ccmp_set_key()
369 crypto_aead_setkey(data->tfm, data->key, CCMP_TK_LEN)) in lib80211_ccmp_set_key()