/linux/net/mac80211/ |
A D | wep.c | 48 int keylen, int keyidx, u8 *iv) in ieee80211_wep_get_iv() argument 60 *iv++ = keyidx << 6; in ieee80211_wep_get_iv() 66 int keylen, int keyidx) in ieee80211_wep_add_iv() argument 87 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv() 133 const u8 *key, int keylen, int keyidx) in ieee80211_wep_encrypt() argument 142 iv = ieee80211_wep_add_iv(local, skb, keylen, keyidx); in ieee80211_wep_encrypt() 197 u8 keyidx; in ieee80211_wep_decrypt() local 212 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_wep_decrypt() 214 if (!key || keyidx != key->conf.keyidx) in ieee80211_wep_decrypt() 278 tx->key->conf.keyidx)) in wep_encrypt_skb() [all …]
|
A D | key.c | 203 key->conf.keyidx, in ieee80211_key_enable_hw_accel() 261 key->conf.keyidx, in ieee80211_key_disable_hw_accel() 274 sta->ptk_idx = key->conf.keyidx; in _ieee80211_set_tx_key() 444 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace() 454 idx = old->conf.keyidx; in ieee80211_key_replace() 464 idx = new->conf.keyidx; in ieee80211_key_replace() 512 __ieee80211_set_default_key(sdata, new->conf.keyidx, in ieee80211_key_replace() 519 new->conf.keyidx); in ieee80211_key_replace() 522 new->conf.keyidx); in ieee80211_key_replace() 557 key->conf.keyidx = idx; in ieee80211_key_alloc() [all …]
|
/linux/drivers/staging/rtl8192u/ieee80211/ |
A D | ieee80211_crypt_ccmp.c | 233 u8 keyidx, *pos; in ieee80211_ccmp_decrypt() local 245 keyidx = pos[3]; in ieee80211_ccmp_decrypt() 246 if (!(keyidx & BIT(5))) { in ieee80211_ccmp_decrypt() 254 keyidx >>= 6; in ieee80211_ccmp_decrypt() 255 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt() 257 key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt() 263 hdr->addr2, keyidx); in ieee80211_ccmp_decrypt() 325 return keyidx; in ieee80211_ccmp_decrypt() 331 int keyidx; in ieee80211_ccmp_set_key() local 334 keyidx = data->key_idx; in ieee80211_ccmp_set_key() [all …]
|
A D | ieee80211_crypt_tkip.c | 341 u8 keyidx, *pos; in ieee80211_tkip_decrypt() local 356 keyidx = pos[3]; in ieee80211_tkip_decrypt() 357 if (!(keyidx & BIT(5))) { in ieee80211_tkip_decrypt() 364 keyidx >>= 6; in ieee80211_tkip_decrypt() 365 if (tkey->key_idx != keyidx) { in ieee80211_tkip_decrypt() 443 return keyidx; in ieee80211_tkip_decrypt() 537 int keyidx) in ieee80211_michael_mic_failure() argument 584 hdr->addr2, keyidx); in ieee80211_michael_mic_verify() 607 int keyidx; in ieee80211_tkip_set_key() local 611 keyidx = tkey->key_idx; in ieee80211_tkip_set_key() [all …]
|
A D | ieee80211_crypt_wep.c | 36 static void *prism2_wep_init(int keyidx) in prism2_wep_init() argument 46 priv->key_idx = keyidx; in prism2_wep_init() 138 u8 keyidx, *pos; in prism2_wep_decrypt() local 150 keyidx = *pos++ >> 6; in prism2_wep_decrypt() 151 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
|
A D | ieee80211_crypt.h | 31 void * (*init)(int keyidx); 49 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
|
/linux/drivers/staging/rtl8192e/ |
A D | rtllib_crypt_ccmp.c | 227 u8 keyidx, *pos; in rtllib_ccmp_decrypt() local 240 keyidx = pos[3]; in rtllib_ccmp_decrypt() 241 if (!(keyidx & (1 << 5))) { in rtllib_ccmp_decrypt() 249 keyidx >>= 6; in rtllib_ccmp_decrypt() 250 if (key->key_idx != keyidx) { in rtllib_ccmp_decrypt() 252 key->key_idx, keyidx, priv); in rtllib_ccmp_decrypt() 258 hdr->addr2, keyidx); in rtllib_ccmp_decrypt() 315 return keyidx; in rtllib_ccmp_decrypt() 322 int keyidx; in rtllib_ccmp_set_key() local 325 keyidx = data->key_idx; in rtllib_ccmp_set_key() [all …]
|
A D | rtllib_crypt_tkip.c | 346 u8 keyidx, *pos; in rtllib_tkip_decrypt() local 362 keyidx = pos[3]; in rtllib_tkip_decrypt() 363 if (!(keyidx & (1 << 5))) { in rtllib_tkip_decrypt() 371 keyidx >>= 6; in rtllib_tkip_decrypt() 382 hdr->addr2, keyidx); in rtllib_tkip_decrypt() 453 return keyidx; in rtllib_tkip_decrypt() 545 int keyidx) in rtllib_michael_mic_failure() argument 590 hdr->addr2, keyidx); in rtllib_michael_mic_verify() 616 int keyidx; in rtllib_tkip_set_key() local 620 keyidx = tkey->key_idx; in rtllib_tkip_set_key() [all …]
|
A D | rtllib_crypt_wep.c | 31 static void *prism2_wep_init(int keyidx) in prism2_wep_init() argument 41 priv->key_idx = keyidx; in prism2_wep_init() 136 u8 keyidx, *pos; in prism2_wep_decrypt() local 149 keyidx = *pos++ >> 6; in prism2_wep_decrypt() 150 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
|
/linux/net/wireless/ |
A D | lib80211_crypt_tkip.c | 380 u8 keyidx, *pos; in lib80211_tkip_decrypt() local 400 keyidx = pos[3]; in lib80211_tkip_decrypt() 401 if (!(keyidx & (1 << 5))) { in lib80211_tkip_decrypt() 406 keyidx >>= 6; in lib80211_tkip_decrypt() 414 hdr->addr2, keyidx); in lib80211_tkip_decrypt() 471 return keyidx; in lib80211_tkip_decrypt() 565 int keyidx) in lib80211_michael_mic_failure() argument 603 keyidx); in lib80211_michael_mic_verify() 623 int keyidx; in lib80211_tkip_set_key() local 629 keyidx = tkey->key_idx; in lib80211_tkip_set_key() [all …]
|
A D | lib80211_crypt_ccmp.c | 257 u8 keyidx, *pos; in lib80211_ccmp_decrypt() local 274 keyidx = pos[3]; in lib80211_ccmp_decrypt() 275 if (!(keyidx & (1 << 5))) { in lib80211_ccmp_decrypt() 281 keyidx >>= 6; in lib80211_ccmp_decrypt() 282 if (key->key_idx != keyidx) { in lib80211_ccmp_decrypt() 284 key->key_idx, keyidx); in lib80211_ccmp_decrypt() 289 hdr->addr2, keyidx); in lib80211_ccmp_decrypt() 344 return keyidx; in lib80211_ccmp_decrypt() 350 int keyidx; in lib80211_ccmp_set_key() local 353 keyidx = data->key_idx; in lib80211_ccmp_set_key() [all …]
|
A D | lib80211_crypt_wep.c | 39 static void *lib80211_wep_init(int keyidx) in lib80211_wep_init() argument 49 priv->key_idx = keyidx; in lib80211_wep_init() 156 u8 keyidx, *pos, icv[4]; in lib80211_wep_decrypt() local 165 keyidx = *pos++ >> 6; in lib80211_wep_decrypt() 166 if (keyidx != wep->key_idx) in lib80211_wep_decrypt()
|
/linux/drivers/staging/wlan-ng/ |
A D | p80211wep.c | 95 u8 keyidx; in wep_decrypt() local 105 keyidx = WEP_KEY(iv[3]); in wep_decrypt() 108 keyidx = key_override; in wep_decrypt() 110 if (keyidx >= NUM_WEPKEYS) in wep_decrypt() 113 keylen = wlandev->wep_keylens[keyidx]; in wep_decrypt() 119 memcpy(key + 3, wlandev->wep_keys[keyidx], keylen); in wep_decrypt()
|
/linux/drivers/staging/rtl8712/ |
A D | rtl871x_xmit.h | 39 #define WEP_IV(pattrib_iv, txpn, keyidx)\ argument 44 pattrib_iv[3] = ((keyidx & 0x3) << 6);\ 51 #define TKIP_IV(pattrib_iv, txpn, keyidx)\ argument 56 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6);\ 65 #define AES_IV(pattrib_iv, txpn, keyidx)\ argument 70 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6);\
|
/linux/drivers/staging/wfx/ |
A D | key.c | 47 msg->key_id = key->keyidx; in fill_wep_group() 79 msg->key_id = key->keyidx; in fill_tkip_group() 112 msg->key_id = key->keyidx; in fill_ccmp_group() 127 msg->key_id = key->keyidx; in fill_sms4_pair() 141 msg->key_id = key->keyidx; in fill_sms4_group() 153 msg->key_id = key->keyidx; in fill_aes_cmac_group()
|
/linux/drivers/staging/r8188eu/include/ |
A D | rtw_xmit.h | 37 #define WEP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 42 pattrib_iv[3] = ((keyidx & 0x3)<<6);\ 46 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 51 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\ 59 #define AES_IV(pattrib_iv, dot11txpn, keyidx)\ argument 64 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6); \
|
/linux/drivers/net/wireless/ath/wcn36xx/ |
A D | smd.h | 101 u8 keyidx, 108 u8 keyidx, 113 u8 keyidx, 118 u8 keyidx);
|
/linux/drivers/staging/rtl8723bs/include/ |
A D | rtw_xmit.h | 42 #define WEP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 47 pattrib_iv[3] = ((keyidx & 0x3)<<6);\ 52 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 57 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\ 65 #define AES_IV(pattrib_iv, dot11txpn, keyidx)\ argument 70 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
|
/linux/include/net/ |
A D | lib80211.h | 51 void *(*init) (int keyidx); 68 int (*decrypt_msdu) (struct sk_buff * skb, int keyidx, int hdr_len,
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
A D | xmit.c | 468 unsigned int keyidx; in b43legacy_rx() local 473 keyidx = ((macstat & B43legacy_RX_MAC_KEYIDX) in b43legacy_rx() 478 keyidx = b43legacy_kidx_to_raw(dev, keyidx); in b43legacy_rx() 479 B43legacy_WARN_ON(keyidx >= dev->max_nr_keys); in b43legacy_rx() 481 if (dev->key[keyidx].algorithm != B43legacy_SEC_ALGO_NONE) { in b43legacy_rx()
|
/linux/drivers/net/wireless/intel/ipw2x00/ |
A D | libipw_rx.c | 300 struct sk_buff *skb, int keyidx, in libipw_rx_frame_decrypt_msdu() argument 313 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in libipw_rx_frame_decrypt_msdu() 318 keyidx); in libipw_rx_frame_decrypt_msdu() 349 int keyidx = 0; in libipw_rx() local 422 keyidx = skb->data[hdrlen + 3] >> 6; in libipw_rx() 429 crypt = ieee->crypt_info.crypt[keyidx]; in libipw_rx() 467 (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) { in libipw_rx() 570 (keyidx = libipw_rx_frame_decrypt(ieee, skb, crypt)) < 0) in libipw_rx() 634 libipw_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) in libipw_rx() 667 keyidx = skb->data[hdrlen + 3] >> 6; in libipw_rx() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
A D | sta.c | 998 keyconf->keyidx); in iwl_remove_default_wep_key() 1000 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0])); in iwl_remove_default_wep_key() 1009 keyconf->keyidx, ret); in iwl_remove_default_wep_key() 1031 ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key() 1032 memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, in iwl_set_default_wep_key() 1037 keyconf->keylen, keyconf->keyidx, ret); in iwl_set_default_wep_key() 1090 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwlagn_send_sta_key() 1177 keyconf->keyidx, sta_id); in iwl_remove_dynamic_key() 1183 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwl_remove_dynamic_key() 1250 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_set_dynamic_key()
|
/linux/drivers/net/wireless/broadcom/b43/ |
A D | xmit.c | 696 unsigned int keyidx; in b43_rx() local 699 keyidx = ((macstat & B43_RX_MAC_KEYIDX) in b43_rx() 704 keyidx = b43_kidx_to_raw(dev, keyidx); in b43_rx() 705 B43_WARN_ON(keyidx >= ARRAY_SIZE(dev->key)); in b43_rx() 707 if (dev->key[keyidx].algorithm != B43_SEC_ALGO_NONE) { in b43_rx()
|
/linux/drivers/net/wireless/ath/ |
A D | key.c | 518 idx = key->keyidx; in ath_key_config() 527 idx = key->keyidx; in ath_key_config() 530 } else if (key->keyidx) { in ath_key_config() 538 idx = key->keyidx; in ath_key_config()
|
/linux/drivers/net/wireless/intersil/hostap/ |
A D | hostap_80211_rx.c | 688 int keyidx, struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt_msdu() argument 700 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu() 705 local->dev->name, hdr->addr2, keyidx); in hostap_rx_frame_decrypt_msdu() 735 int keyidx = 0; in hostap_80211_rx() local 823 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx() 912 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx() 976 hostap_rx_frame_decrypt_msdu(local, skb, keyidx, crypt)) in hostap_80211_rx()
|