Home
last modified time | relevance | path

Searched refs:keyidx (Results 1 – 25 of 88) sorted by relevance

1234

/Linux-v5.10/net/mac80211/
Dwep.c48 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 …]
Dkey.c203 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()
515 __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()
[all …]
Dwep.h21 const u8 *key, int keylen, int keyidx);
/Linux-v5.10/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c225 u8 keyidx, *pos; in rtllib_ccmp_decrypt() local
238 keyidx = pos[3]; in rtllib_ccmp_decrypt()
239 if (!(keyidx & (1 << 5))) { in rtllib_ccmp_decrypt()
247 keyidx >>= 6; in rtllib_ccmp_decrypt()
248 if (key->key_idx != keyidx) { in rtllib_ccmp_decrypt()
250 key->key_idx, keyidx, priv); in rtllib_ccmp_decrypt()
256 hdr->addr2, keyidx); in rtllib_ccmp_decrypt()
313 return keyidx; in rtllib_ccmp_decrypt()
320 int keyidx; in rtllib_ccmp_set_key() local
323 keyidx = data->key_idx; in rtllib_ccmp_set_key()
[all …]
Drtllib_crypt_tkip.c346 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()
372 if (tkey->key_idx != keyidx) { in rtllib_tkip_decrypt()
375 tkey->key_idx, keyidx, priv); 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
552 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in rtllib_michael_mic_failure()
[all …]
Drtllib_crypt_wep.c31 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-v5.10/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c231 u8 keyidx, *pos; in ieee80211_ccmp_decrypt() local
243 keyidx = pos[3]; in ieee80211_ccmp_decrypt()
244 if (!(keyidx & BIT(5))) { in ieee80211_ccmp_decrypt()
252 keyidx >>= 6; in ieee80211_ccmp_decrypt()
253 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt()
255 key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt()
261 hdr->addr2, keyidx); in ieee80211_ccmp_decrypt()
323 return keyidx; in ieee80211_ccmp_decrypt()
329 int keyidx; in ieee80211_ccmp_set_key() local
332 keyidx = data->key_idx; in ieee80211_ccmp_set_key()
[all …]
Dieee80211_crypt_tkip.c341 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()
367 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in ieee80211_tkip_decrypt()
374 " key\n", hdr->addr2, keyidx); in ieee80211_tkip_decrypt()
443 return keyidx; in ieee80211_tkip_decrypt()
537 int keyidx) in ieee80211_michael_mic_failure() argument
544 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in ieee80211_michael_mic_failure()
[all …]
Dieee80211_crypt_wep.c36 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()
Dieee80211_crypt.h31 void * (*init)(int keyidx);
49 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
/Linux-v5.10/drivers/staging/wlan-ng/
Dp80211wep.c95 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-v5.10/net/wireless/
Dlib80211_crypt_ccmp.c257 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 …]
Dlib80211_crypt_tkip.c380 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()
407 if (tkey->key_idx != keyidx) { in lib80211_tkip_decrypt()
409 tkey->key_idx, keyidx); 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
572 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in lib80211_michael_mic_failure()
[all …]
Dlib80211_crypt_wep.c39 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-v5.10/drivers/staging/rtl8712/
Drtl871x_xmit.h39 #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-v5.10/drivers/net/wireless/ath/wcn36xx/
Dsmd.h100 u8 keyidx,
107 u8 keyidx,
112 u8 keyidx,
117 u8 keyidx);
/Linux-v5.10/drivers/staging/wfx/
Dkey.c47 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-v5.10/drivers/staging/rtl8188eu/include/
Drtw_xmit.h40 #define WEP_IV(pattrib_iv, dot11txpn, keyidx)\ argument
45 pattrib_iv[3] = ((keyidx & 0x3) << 6);\
49 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx)\ argument
54 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6);\
62 #define AES_IV(pattrib_iv, dot11txpn, keyidx)\ argument
67 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6); \
/Linux-v5.10/drivers/staging/rtl8723bs/include/
Drtw_xmit.h42 #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-v5.10/include/net/
Dlib80211.h51 void *(*init) (int keyidx);
68 int (*decrypt_msdu) (struct sk_buff * skb, int keyidx, int hdr_len,
/Linux-v5.10/drivers/net/wireless/broadcom/b43legacy/
Dxmit.c468 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-v5.10/drivers/net/wireless/broadcom/b43/
Dxmit.c696 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-v5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dsta.c1003 keyconf->keyidx); in iwl_remove_default_wep_key()
1005 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0])); in iwl_remove_default_wep_key()
1014 keyconf->keyidx, ret); in iwl_remove_default_wep_key()
1036 ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key()
1037 memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, in iwl_set_default_wep_key()
1042 keyconf->keylen, keyconf->keyidx, ret); in iwl_set_default_wep_key()
1095 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwlagn_send_sta_key()
1182 keyconf->keyidx, sta_id); in iwl_remove_dynamic_key()
1188 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwl_remove_dynamic_key()
1255 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_set_dynamic_key()
/Linux-v5.10/drivers/net/wireless/intel/ipw2x00/
Dlibipw_rx.c300 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-v5.10/drivers/net/wireless/ath/
Dkey.c518 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()

1234