Home
last modified time | relevance | path

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

12

/drivers/staging/wlan-ng/
Dp80211wep.c158 u8 keyidx; in wep_decrypt() local
168 keyidx = WEP_KEY(iv[3]); in wep_decrypt()
171 keyidx = key_override; in wep_decrypt()
173 if (keyidx >= NUM_WEPKEYS) in wep_decrypt()
176 keylen = wlandev->wep_keylens[keyidx]; in wep_decrypt()
182 memcpy(key + 3, wlandev->wep_keys[keyidx], keylen); in wep_decrypt()
189 key[0], key[1], key[2], keyidx, keylen, key[3], key[4], key[5], in wep_decrypt()
/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c380 u8 keyidx, *pos; in rtllib_tkip_decrypt() local
397 keyidx = pos[3]; in rtllib_tkip_decrypt()
398 if (!(keyidx & (1 << 5))) { in rtllib_tkip_decrypt()
405 keyidx >>= 6; in rtllib_tkip_decrypt()
406 if (tkey->key_idx != keyidx) { in rtllib_tkip_decrypt()
408 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in rtllib_tkip_decrypt()
415 " key\n", hdr->addr2, keyidx); in rtllib_tkip_decrypt()
492 return keyidx; in rtllib_tkip_decrypt()
579 int keyidx) in rtllib_michael_mic_failure() argument
586 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in rtllib_michael_mic_failure()
[all …]
Drtllib_crypt_ccmp.c263 u8 keyidx, *pos; in rtllib_ccmp_decrypt() local
276 keyidx = pos[3]; in rtllib_ccmp_decrypt()
277 if (!(keyidx & (1 << 5))) { in rtllib_ccmp_decrypt()
285 keyidx >>= 6; in rtllib_ccmp_decrypt()
286 if (key->key_idx != keyidx) { in rtllib_ccmp_decrypt()
288 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv); in rtllib_ccmp_decrypt()
295 " key\n", hdr->addr2, keyidx); in rtllib_ccmp_decrypt()
356 return keyidx; in rtllib_ccmp_decrypt()
363 int keyidx; in rtllib_ccmp_set_key() local
366 keyidx = data->key_idx; in rtllib_ccmp_set_key()
[all …]
Drtllib_crypt_wep.c36 static void *prism2_wep_init(int keyidx) in prism2_wep_init() argument
43 priv->key_idx = keyidx; in prism2_wep_init()
173 u8 keyidx, *pos; in prism2_wep_decrypt() local
187 keyidx = *pos++ >> 6; in prism2_wep_decrypt()
188 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
Drtllib_crypt.c186 static void * rtllib_crypt_null_init(int keyidx) { return (void *) 1; } in rtllib_crypt_null_init() argument
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c391 u8 keyidx, *pos; in ieee80211_tkip_decrypt() local
407 keyidx = pos[3]; in ieee80211_tkip_decrypt()
408 if (!(keyidx & (1 << 5))) { in ieee80211_tkip_decrypt()
415 keyidx >>= 6; in ieee80211_tkip_decrypt()
416 if (tkey->key_idx != keyidx) { in ieee80211_tkip_decrypt()
418 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in ieee80211_tkip_decrypt()
425 " key\n", hdr->addr2, keyidx); in ieee80211_tkip_decrypt()
499 return keyidx; in ieee80211_tkip_decrypt()
590 int keyidx) in ieee80211_michael_mic_failure() argument
597 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in ieee80211_michael_mic_failure()
[all …]
Dieee80211_crypt_ccmp.c273 u8 keyidx, *pos; in ieee80211_ccmp_decrypt() local
285 keyidx = pos[3]; in ieee80211_ccmp_decrypt()
286 if (!(keyidx & (1 << 5))) { in ieee80211_ccmp_decrypt()
294 keyidx >>= 6; in ieee80211_ccmp_decrypt()
295 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt()
297 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt()
304 " key\n", hdr->addr2, keyidx); in ieee80211_ccmp_decrypt()
371 return keyidx; in ieee80211_ccmp_decrypt()
378 int keyidx; in ieee80211_ccmp_set_key() local
381 keyidx = data->key_idx; in ieee80211_ccmp_set_key()
[all …]
Dieee80211_crypt_wep.c41 static void * prism2_wep_init(int keyidx) in prism2_wep_init() argument
48 priv->key_idx = keyidx; in prism2_wep_init()
177 u8 keyidx, *pos; in prism2_wep_decrypt() local
190 keyidx = *pos++ >> 6; in prism2_wep_decrypt()
191 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
Dieee80211_crypt.h34 void * (*init)(int keyidx);
51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_tkip.c367 u8 keyidx, *pos; in ieee80211_tkip_decrypt() local
382 keyidx = pos[3]; in ieee80211_tkip_decrypt()
383 if (!(keyidx & (1 << 5))) { in ieee80211_tkip_decrypt()
390 keyidx >>= 6; in ieee80211_tkip_decrypt()
391 if (tkey->key_idx != keyidx) { in ieee80211_tkip_decrypt()
393 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in ieee80211_tkip_decrypt()
400 " key\n", hdr->addr2, keyidx); in ieee80211_tkip_decrypt()
467 return keyidx; in ieee80211_tkip_decrypt()
558 int keyidx) in ieee80211_michael_mic_failure() argument
565 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in ieee80211_michael_mic_failure()
[all …]
Dieee80211_crypt_ccmp.c265 u8 keyidx, *pos; in ieee80211_ccmp_decrypt() local
282 keyidx = pos[3]; in ieee80211_ccmp_decrypt()
283 if (!(keyidx & (1 << 5))) { in ieee80211_ccmp_decrypt()
291 keyidx >>= 6; in ieee80211_ccmp_decrypt()
292 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt()
294 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt()
301 " key\n", hdr->addr2, keyidx); in ieee80211_ccmp_decrypt()
359 return keyidx; in ieee80211_ccmp_decrypt()
366 int keyidx; in ieee80211_ccmp_set_key() local
369 keyidx = data->key_idx; in ieee80211_ccmp_set_key()
[all …]
Dieee80211_crypt_wep.c43 static void * prism2_wep_init(int keyidx) in prism2_wep_init() argument
50 priv->key_idx = keyidx; in prism2_wep_init()
175 u8 keyidx, *pos; in prism2_wep_decrypt() local
187 keyidx = *pos++ >> 6; in prism2_wep_decrypt()
188 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
Dieee80211_crypt.h34 void * (*init)(int keyidx);
51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
Dieee80211_rx.c343 int keyidx, struct ieee80211_crypt_data *crypt) in ieee80211_rx_frame_decrypt_msdu() argument
355 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt_msdu()
360 ieee->dev->name, hdr->addr2, keyidx); in ieee80211_rx_frame_decrypt_msdu()
489 int keyidx = 0; in ieee80211_rtl_rx() local
630 (keyidx = ieee80211_rx_frame_decrypt(ieee, skb, crypt)) < 0) in ieee80211_rtl_rx()
693 ieee80211_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) in ieee80211_rtl_rx()
Dieee80211_crypt.c185 static void * ieee80211_crypt_null_init(int keyidx) { return (void *) 1; } in ieee80211_crypt_null_init() argument
/drivers/staging/rtl8712/
Drtl871x_xmit.h51 #define WEP_IV(pattrib_iv, txpn, keyidx)\ argument
56 pattrib_iv[3] = ((keyidx & 0x3)<<6);\
62 #define TKIP_IV(pattrib_iv, txpn, keyidx)\ argument
67 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
76 #define AES_IV(pattrib_iv, txpn, keyidx)\ argument
81 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
/drivers/staging/rtl8192u/
Dieee80211_crypt.h34 void * (*init)(int keyidx);
51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
/drivers/net/wireless/b43legacy/
Dxmit.c494 unsigned int keyidx; in b43legacy_rx() local
499 keyidx = ((macstat & B43legacy_RX_MAC_KEYIDX) in b43legacy_rx()
504 keyidx = b43legacy_kidx_to_raw(dev, keyidx); in b43legacy_rx()
505 B43legacy_WARN_ON(keyidx >= dev->max_nr_keys); in b43legacy_rx()
507 if (dev->key[keyidx].algorithm != B43legacy_SEC_ALGO_NONE) { in b43legacy_rx()
/drivers/net/wireless/iwlwifi/
Diwl-agn-sta.c1033 keyconf->keyidx); in iwl_remove_default_wep_key()
1035 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0])); in iwl_remove_default_wep_key()
1044 keyconf->keyidx, ret); in iwl_remove_default_wep_key()
1066 ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key()
1067 memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, in iwl_set_default_wep_key()
1072 keyconf->keylen, keyconf->keyidx, ret); in iwl_set_default_wep_key()
1125 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwlagn_send_sta_key()
1212 keyconf->keyidx, sta_id); in iwl_remove_dynamic_key()
1218 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwl_remove_dynamic_key()
1285 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_set_dynamic_key()
/drivers/net/wireless/b43/
Dxmit.c719 unsigned int keyidx; in b43_rx() local
722 keyidx = ((macstat & B43_RX_MAC_KEYIDX) in b43_rx()
727 keyidx = b43_kidx_to_raw(dev, keyidx); in b43_rx()
728 B43_WARN_ON(keyidx >= ARRAY_SIZE(dev->key)); in b43_rx()
730 if (dev->key[keyidx].algorithm != B43_SEC_ALGO_NONE) { in b43_rx()
/drivers/net/wireless/ipw2x00/
Dlibipw_rx.c304 struct sk_buff *skb, int keyidx, in libipw_rx_frame_decrypt_msdu() argument
317 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in libipw_rx_frame_decrypt_msdu()
322 keyidx); in libipw_rx_frame_decrypt_msdu()
353 int keyidx = 0; in libipw_rx() local
426 keyidx = skb->data[hdrlen + 3] >> 6; in libipw_rx()
433 crypt = ieee->crypt_info.crypt[keyidx]; in libipw_rx()
471 (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) { in libipw_rx()
574 (keyidx = libipw_rx_frame_decrypt(ieee, skb, crypt)) < 0) in libipw_rx()
638 libipw_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) in libipw_rx()
671 keyidx = skb->data[hdrlen + 3] >> 6; in libipw_rx()
[all …]
/drivers/net/wireless/hostap/
Dhostap_80211_rx.c689 int keyidx, struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt_msdu() argument
701 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu()
706 local->dev->name, hdr->addr2, keyidx); in hostap_rx_frame_decrypt_msdu()
736 int keyidx = 0; in hostap_80211_rx() local
824 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
913 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
977 hostap_rx_frame_decrypt_msdu(local, skb, keyidx, crypt)) in hostap_80211_rx()
/drivers/net/wireless/ath/
Dkey.c515 idx = key->keyidx; in ath_key_config()
524 idx = key->keyidx; in ath_key_config()
527 } else if (key->keyidx) { in ath_key_config()
535 idx = key->keyidx; in ath_key_config()
/drivers/net/wireless/ath/carl9170/
Dmac.c459 const u8 ktype, const u8 keyidx, const u8 *keydata, in carl9170_upload_key() argument
469 key.keyId = cpu_to_le16(keyidx); in carl9170_upload_key()
/drivers/net/wireless/wl1251/
Dmain.c750 mac80211_key->hw_key_idx = mac80211_key->keyidx; in wl1251_set_key_type()
758 mac80211_key->hw_key_idx = mac80211_key->keyidx; in wl1251_set_key_type()
801 key->cipher, key->keyidx, key->keylen, key->flags); in wl1251_op_set_key()
854 wl_cmd->id = key->keyidx; in wl1251_op_set_key()

12