Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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.c207 key->conf.keyidx, in ieee80211_key_enable_hw_accel()
269 key->conf.keyidx, in ieee80211_key_disable_hw_accel()
282 sta->ptk_idx = key->conf.keyidx; in _ieee80211_set_tx_key()
460 idx = new->conf.keyidx; in ieee80211_key_replace()
465 idx = old->conf.keyidx; in ieee80211_key_replace()
496 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace()
567 __ieee80211_set_default_key(link, new->conf.keyidx, in ieee80211_key_replace()
570 __ieee80211_set_default_key(link, new->conf.keyidx, in ieee80211_key_replace()
574 new->conf.keyidx); in ieee80211_key_replace()
577 new->conf.keyidx); in ieee80211_key_replace()
[all …]
Dwep.h21 const u8 *key, int keylen, int keyidx);
/linux-6.1.9/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c227 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 …]
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-6.1.9/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c233 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 …]
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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/net/wireless/silabs/wfx/
Dkey.c47 msg->key_id = key->keyidx; in fill_wep_group()
76 msg->key_id = key->keyidx; in fill_tkip_group()
106 msg->key_id = key->keyidx; in fill_ccmp_group()
121 msg->key_id = key->keyidx; in fill_sms4_pair()
135 msg->key_id = key->keyidx; in fill_sms4_group()
146 msg->key_id = key->keyidx; in fill_aes_cmac_group()
/linux-6.1.9/drivers/net/wireless/ath/wcn36xx/
Dsmd.h101 u8 keyidx,
108 u8 keyidx,
113 u8 keyidx,
118 u8 keyidx);
/linux-6.1.9/drivers/staging/r8188eu/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-6.1.9/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-6.1.9/include/net/
Dlib80211.h51 void *(*init) (int keyidx);
68 int (*decrypt_msdu) (struct sk_buff * skb, int keyidx, int hdr_len,
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Dsta.c998 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-6.1.9/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-6.1.9/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