/net/mac80211/ |
D | wep.c | 74 int keylen, int keyidx, u8 *iv) in ieee80211_wep_get_iv() argument 86 *iv++ = keyidx << 6; in ieee80211_wep_get_iv() 92 int keylen, int keyidx) in ieee80211_wep_add_iv() argument 113 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv() 163 const u8 *key, int keylen, int keyidx) in ieee80211_wep_encrypt() argument 172 iv = ieee80211_wep_add_iv(local, skb, keylen, keyidx); in ieee80211_wep_encrypt() 231 u8 keyidx; in ieee80211_wep_decrypt() local 246 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_wep_decrypt() 248 if (!key || keyidx != key->conf.keyidx) in ieee80211_wep_decrypt() 312 tx->key->conf.keyidx)) in wep_encrypt_skb() [all …]
|
D | key.c | 194 key->conf.keyidx, in ieee80211_key_enable_hw_accel() 250 key->conf.keyidx, in ieee80211_key_disable_hw_accel() 327 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace() 330 idx = old->conf.keyidx; in ieee80211_key_replace() 332 idx = new->conf.keyidx; in ieee80211_key_replace() 363 __ieee80211_set_default_key(sdata, new->conf.keyidx, in ieee80211_key_replace() 366 __ieee80211_set_default_key(sdata, new->conf.keyidx, in ieee80211_key_replace() 370 new->conf.keyidx); in ieee80211_key_replace() 401 key->conf.keyidx = idx; in ieee80211_key_alloc() 655 idx = key->conf.keyidx; in ieee80211_key_link() [all …]
|
D | wpa.c | 132 if (rx->sdata->vif.type == NL80211_IFTYPE_AP && rx->key->conf.keyidx) { in ieee80211_rx_h_michael_mic_verify() 183 rx->key ? rx->key->conf.keyidx : -1, in ieee80211_rx_h_michael_mic_verify() 458 ccmp_pn2hdr(pos, pn, key->conf.keyidx); in ccmp_encrypt_skb() 691 gcmp_pn2hdr(pos, pn, key->conf.keyidx); in gcmp_encrypt_skb() 955 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt() 999 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_256_encrypt() 1144 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_gmac_encrypt()
|
D | wep.h | 25 const u8 *key, int keylen, int keyidx);
|
D | tkip.c | 149 *pos++ = (keyconf->keyidx << 6) | (1 << 5) /* Ext IV */; in ieee80211_tkip_add_iv() 266 if ((keyid >> 6) != key->conf.keyidx) in ieee80211_tkip_decrypt_data()
|
D | debugfs_key.c | 66 KEY_CONF_FILE(keyidx, D); 358 DEBUGFS_ADD(keyidx); in ieee80211_debugfs_key_add()
|
D | trace.h | 80 __field(s8, keyidx) 83 __entry->keyidx = (k)->keyidx; \ 86 #define KEY_PR_ARG __entry->cipher, __entry->flags, __entry->keyidx, __entry->hw_key_idx
|
D | rx.c | 1656 int keyidx; in ieee80211_rx_h_decrypt() local 1789 keyidx = ieee80211_get_cs_keyid(cs, rx->skb); in ieee80211_rx_h_decrypt() 1791 if (unlikely(keyidx < 0)) in ieee80211_rx_h_decrypt() 1801 keyidx = keyid >> 6; in ieee80211_rx_h_decrypt() 1806 rx->key = rcu_dereference(rx->sta->gtk[keyidx]); in ieee80211_rx_h_decrypt() 1810 rx->key = rcu_dereference(rx->sdata->keys[keyidx]); in ieee80211_rx_h_decrypt()
|
D | tx.c | 2900 0x20 | (build.key->conf.keyidx << 6); in ieee80211_check_fast_xmit() 2911 0x20 | (build.key->conf.keyidx << 6); in ieee80211_check_fast_xmit()
|
/net/wireless/ |
D | lib80211_crypt_tkip.c | 407 u8 keyidx, *pos; in lib80211_tkip_decrypt() local 429 keyidx = pos[3]; in lib80211_tkip_decrypt() 430 if (!(keyidx & (1 << 5))) { in lib80211_tkip_decrypt() 435 keyidx >>= 6; in lib80211_tkip_decrypt() 436 if (tkey->key_idx != keyidx) { in lib80211_tkip_decrypt() 438 tkey->key_idx, keyidx); in lib80211_tkip_decrypt() 443 hdr->addr2, keyidx); in lib80211_tkip_decrypt() 510 return keyidx; in lib80211_tkip_decrypt() 598 int keyidx) in lib80211_michael_mic_failure() argument 605 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in lib80211_michael_mic_failure() [all …]
|
D | lib80211_crypt_ccmp.c | 288 u8 keyidx, *pos; in lib80211_ccmp_decrypt() local 305 keyidx = pos[3]; in lib80211_ccmp_decrypt() 306 if (!(keyidx & (1 << 5))) { in lib80211_ccmp_decrypt() 312 keyidx >>= 6; in lib80211_ccmp_decrypt() 313 if (key->key_idx != keyidx) { in lib80211_ccmp_decrypt() 315 key->key_idx, keyidx); in lib80211_ccmp_decrypt() 320 hdr->addr2, keyidx); in lib80211_ccmp_decrypt() 377 return keyidx; in lib80211_ccmp_decrypt() 383 int keyidx; in lib80211_ccmp_set_key() local 386 keyidx = data->key_idx; in lib80211_ccmp_set_key() [all …]
|
D | lib80211_crypt_wep.c | 42 static void *lib80211_wep_init(int keyidx) in lib80211_wep_init() argument 49 priv->key_idx = keyidx; in lib80211_wep_init() 188 u8 keyidx, *pos, icv[4]; in lib80211_wep_decrypt() local 199 keyidx = *pos++ >> 6; in lib80211_wep_decrypt() 200 if (keyidx != wep->key_idx) in lib80211_wep_decrypt()
|
D | lib80211.c | 228 static void *lib80211_crypt_null_init(int keyidx) in lib80211_crypt_null_init() argument
|