/drivers/staging/rtl8192e/ |
D | rtllib_crypt_ccmp.c | 41 int key_idx; member 50 static void *rtllib_ccmp_init(int key_idx) in rtllib_ccmp_init() argument 57 priv->key_idx = key_idx; in rtllib_ccmp_init() 181 *pos++ = (key->key_idx << 6) | (1 << 5) /* Ext IV included */; in rtllib_ccmp_encrypt() 248 if (key->key_idx != keyidx) { in rtllib_ccmp_decrypt() 250 key->key_idx, keyidx, priv); in rtllib_ccmp_decrypt() 323 keyidx = data->key_idx; in rtllib_ccmp_set_key() 325 data->key_idx = keyidx; in rtllib_ccmp_set_key() 381 ccmp->key_idx, ccmp->key_set, in rtllib_ccmp_print_stats()
|
D | rtllib_crypt_wep.c | 25 u8 key_idx; member 41 priv->key_idx = keyidx; in prism2_wep_init() 102 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt() 150 if (keyidx != wep->key_idx) in prism2_wep_decrypt() 215 seq_printf(m, "key[%d] alg=WEP len=%d\n", wep->key_idx, wep->key_len); in prism2_wep_print_stats()
|
D | rtllib_crypt_tkip.c | 47 int key_idx; member 57 static void *rtllib_tkip_init(int key_idx) in rtllib_tkip_init() argument 67 priv->key_idx = key_idx; in rtllib_tkip_init() 312 *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */; in rtllib_tkip_encrypt() 372 if (tkey->key_idx != keyidx) { in rtllib_tkip_decrypt() 375 tkey->key_idx, keyidx, priv); in rtllib_tkip_decrypt() 620 keyidx = tkey->key_idx; in rtllib_tkip_set_key() 622 tkey->key_idx = keyidx; in rtllib_tkip_set_key() 681 tkip->key_idx, tkip->key_set, in rtllib_tkip_print_stats()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_ccmp.c | 46 int key_idx; member 55 static void *ieee80211_ccmp_init(int key_idx) in ieee80211_ccmp_init() argument 62 priv->key_idx = key_idx; in ieee80211_ccmp_init() 188 *pos++ = (key->key_idx << 6) | BIT(5) /* Ext IV included */; in ieee80211_ccmp_encrypt() 253 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt() 255 key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt() 332 keyidx = data->key_idx; in ieee80211_ccmp_set_key() 334 data->key_idx = keyidx; in ieee80211_ccmp_set_key() 386 ccmp->key_idx, ccmp->key_set, in ieee80211_ccmp_print_stats()
|
D | ieee80211_crypt_wep.c | 30 u8 key_idx; member 46 priv->key_idx = keyidx; in prism2_wep_init() 104 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt() 151 if (keyidx != wep->key_idx) in prism2_wep_decrypt() 217 wep->key_idx, wep->key_len); in prism2_wep_print_stats()
|
D | ieee80211_crypt_tkip.c | 50 int key_idx; member 61 static void *ieee80211_tkip_init(int key_idx) in ieee80211_tkip_init() argument 71 priv->key_idx = key_idx; in ieee80211_tkip_init() 311 *pos++ = (tkey->key_idx << 6) | BIT(5) /* Ext IV included */; in ieee80211_tkip_encrypt() 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() 611 keyidx = tkey->key_idx; in ieee80211_tkip_set_key() 613 tkey->key_idx = keyidx; in ieee80211_tkip_set_key() 674 tkip->key_idx, tkip->key_set, in ieee80211_tkip_print_stats()
|
/drivers/staging/rtl8192u/ |
D | r8192U_wx.c | 502 u32 key_idx = 0; in r8192_wx_set_enc() local 537 key_idx = ieee->tx_keyidx; in r8192_wx_set_enc() 540 key_idx = 0; in r8192_wx_set_enc() 543 key_idx = 1; in r8192_wx_set_enc() 546 key_idx = 2; in r8192_wx_set_enc() 549 key_idx = 3; in r8192_wx_set_enc() 560 key_idx, /* EntryNo */ in r8192_wx_set_enc() 561 key_idx, /* KeyIndex */ in r8192_wx_set_enc() 563 zero_addr[key_idx], in r8192_wx_set_enc() 571 key_idx, /* EntryNo */ in r8192_wx_set_enc() [all …]
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_wx.c | 665 u32 key_idx = 0; in _rtl92e_wx_set_enc() local 709 key_idx = ieee->crypt_info.tx_keyidx; in _rtl92e_wx_set_enc() 712 key_idx = 0; in _rtl92e_wx_set_enc() 715 key_idx = 1; in _rtl92e_wx_set_enc() 718 key_idx = 2; in _rtl92e_wx_set_enc() 721 key_idx = 3; in _rtl92e_wx_set_enc() 734 rtl92e_set_key(dev, key_idx, key_idx, KEY_TYPE_WEP104, in _rtl92e_wx_set_enc() 735 zero_addr[key_idx], 0, hwkey); in _rtl92e_wx_set_enc() 736 rtl92e_set_swcam(dev, key_idx, key_idx, KEY_TYPE_WEP104, in _rtl92e_wx_set_enc() 737 zero_addr[key_idx], 0, hwkey, 0); in _rtl92e_wx_set_enc()
|
/drivers/net/wireless/intersil/orinoco/ |
D | hw.h | 40 int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx, 43 int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx);
|
D | hw.c | 992 int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx, in __orinoco_hw_set_tkip_key() argument 1010 key_idx &= 0x3; in __orinoco_hw_set_tkip_key() 1013 key_idx |= 0x8000; in __orinoco_hw_set_tkip_key() 1015 buf.idx = cpu_to_le16(key_idx); in __orinoco_hw_set_tkip_key() 1055 int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx) in orinoco_clear_tkip_key() argument 1062 key_idx); in orinoco_clear_tkip_key() 1065 priv->ndev->name, err, key_idx); in orinoco_clear_tkip_key()
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | xmit.c | 225 u8 key_idx = info->control.hw_key->hw_key_idx; in generate_txhdr_fw3() local 230 B43legacy_WARN_ON(key_idx >= dev->max_nr_keys); in generate_txhdr_fw3() 231 key = &(dev->key[key_idx]); in generate_txhdr_fw3() 237 key_idx = b43legacy_kidx_to_fw(dev, key_idx); in generate_txhdr_fw3() 238 mac_ctl |= (key_idx << B43legacy_TX4_MAC_KEYIDX_SHIFT) & in generate_txhdr_fw3()
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 738 const int key_idx = is_multicast_ether_addr(pattrib->ra) ? psecuritypriv->dot118021XGrpKeyid : 0; in rtw_aes_encrypt() local 767 key = psecuritypriv->dot118021XGrpKey[key_idx].skey; in rtw_aes_encrypt() 776 crypto_private = crypto_ops->init(key_idx); in rtw_aes_encrypt() 838 int key_idx; in rtw_aes_decrypt() local 854 key_idx = psecuritypriv->dot118021XGrpKeyid; in rtw_aes_decrypt() 855 key = psecuritypriv->dot118021XGrpKey[key_idx].skey; in rtw_aes_decrypt() 857 key_idx = 0; in rtw_aes_decrypt() 869 crypto_private = crypto_ops->init(key_idx); in rtw_aes_decrypt()
|
D | rtw_xmit.c | 526 pattrib->key_idx = (u8)psecuritypriv->dot11PrivacyKeyIndex; in update_attrib() 530 pattrib->key_idx = (u8)psecuritypriv->dot118021XGrpKeyid; in update_attrib() 532 pattrib->key_idx = 0; in update_attrib() 535 pattrib->key_idx = 0; in update_attrib() 964 WEP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in rtw_xmitframe_coalesce() 968 TKIP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in rtw_xmitframe_coalesce() 974 AES_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in rtw_xmitframe_coalesce()
|
/drivers/net/wireless/broadcom/b43/ |
D | xmit.c | 294 u8 key_idx = info->control.hw_key->hw_key_idx; in b43_generate_txhdr() local 299 B43_WARN_ON(key_idx >= ARRAY_SIZE(dev->key)); in b43_generate_txhdr() 300 key = &(dev->key[key_idx]); in b43_generate_txhdr() 314 key_idx = b43_kidx_to_fw(dev, key_idx); in b43_generate_txhdr() 315 mac_ctl |= (key_idx << B43_TXH_MAC_KEYIDX_SHIFT) & in b43_generate_txhdr()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | mac.c | 571 int mt76_mac_shared_key_setup(struct mt7601u_dev *dev, u8 vif_idx, u8 key_idx, in mt76_mac_shared_key_setup() argument 582 trace_set_shared_key(dev, vif_idx, key_idx); in mt76_mac_shared_key_setup() 584 mt7601u_wr_copy(dev, MT_SKEY(vif_idx, key_idx), in mt76_mac_shared_key_setup() 588 val &= ~(MT_SKEY_MODE_MASK << MT_SKEY_MODE_SHIFT(vif_idx, key_idx)); in mt76_mac_shared_key_setup() 589 val |= cipher << MT_SKEY_MODE_SHIFT(vif_idx, key_idx); in mt76_mac_shared_key_setup()
|
D | mac.h | 162 int mt76_mac_shared_key_setup(struct mt7601u_dev *dev, u8 vif_idx, u8 key_idx,
|
/drivers/staging/vt6656/ |
D | mac.c | 58 u32 key_idx, u8 *addr, u8 *key) in vnt_mac_set_keyentry() argument 78 (u16)key_idx, sizeof(struct vnt_mac_set_key), in vnt_mac_set_keyentry()
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | core.c | 1512 u8 key_idx; in rtl_op_set_key() local 1577 key_idx = (u8) (key->keyidx); in rtl_op_set_key() 1578 if (key_idx > 3) in rtl_op_set_key() 1626 memcpy(rtlpriv->sec.key_buf[key_idx], in rtl_op_set_key() 1628 rtlpriv->sec.key_len[key_idx] = key->keylen; in rtl_op_set_key() 1636 memcpy(rtlpriv->sec.key_buf[key_idx], in rtl_op_set_key() 1638 rtlpriv->sec.key_len[key_idx] = key->keylen; in rtl_op_set_key() 1660 rtlpriv->cfg->ops->set_key(hw, key_idx, mac_addr, in rtl_op_set_key() 1666 key->hw_key_idx = key_idx; in rtl_op_set_key() 1682 memset(rtlpriv->sec.key_buf[key_idx], 0, key->keylen); in rtl_op_set_key() [all …]
|
/drivers/crypto/ |
D | sa2ul.c | 926 int key_idx = (keylen >> 3) - 2; in sa_aes_cbc_setkey() local 928 if (key_idx >= 3) in sa_aes_cbc_setkey() 931 ad.mci_enc = mci_cbc_enc_array[key_idx]; in sa_aes_cbc_setkey() 932 ad.mci_dec = mci_cbc_dec_array[key_idx]; in sa_aes_cbc_setkey() 946 int key_idx = (keylen >> 3) - 2; in sa_aes_ecb_setkey() local 948 if (key_idx >= 3) in sa_aes_ecb_setkey() 951 ad.mci_enc = mci_ecb_enc_array[key_idx]; in sa_aes_ecb_setkey() 952 ad.mci_dec = mci_ecb_dec_array[key_idx]; in sa_aes_ecb_setkey() 1787 int key_idx; in sa_aead_setkey() local 1793 key_idx = (keys.enckeylen >> 3) - 2; in sa_aead_setkey() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | main.c | 364 memset(&an->key_idx, 0, sizeof(an->key_idx)); in ath_node_attach() 1618 an->key_idx[0] = key; in ath9k_sta_add() 1636 an->key_idx[0] = 0; in ath9k_del_ps_key() 1691 for (i = 0; i < ARRAY_SIZE(an->key_idx); i++) { in ath9k_sta_set_tx_filter() 1692 if (!an->key_idx[i]) in ath9k_sta_set_tx_filter() 1694 ath9k_hw_set_tx_filter(ah, an->key_idx[i], set); in ath9k_sta_set_tx_filter() 1830 for (i = 0; i < ARRAY_SIZE(an->key_idx); i++) { in ath9k_set_key() 1831 if (an->key_idx[i]) in ath9k_set_key() 1833 an->key_idx[i] = key->hw_key_idx; in ath9k_set_key() 1836 WARN_ON(i == ARRAY_SIZE(an->key_idx)); in ath9k_set_key() [all …]
|
/drivers/net/wireguard/ |
D | messages.h | 107 __le32 key_idx; member
|
/drivers/staging/wlan-ng/ |
D | cfg80211.c | 471 if (sme->key_idx >= NUM_WEPKEYS) in prism2_connect() 476 sme->key_idx); in prism2_connect() 482 sme->key_idx + 1); in prism2_connect()
|
/drivers/net/wireless/microchip/wilc1000/ |
D | cfg80211.c | 324 priv->wep_key_len[sme->key_idx] = sme->key_len; in connect() 325 memcpy(priv->wep_key[sme->key_idx], sme->key, in connect() 328 wilc_set_wep_default_keyid(vif, sme->key_idx); in connect() 330 sme->key_idx); in connect() 334 priv->wep_key_len[sme->key_idx] = sme->key_len; in connect() 335 memcpy(priv->wep_key[sme->key_idx], sme->key, in connect() 338 wilc_set_wep_default_keyid(vif, sme->key_idx); in connect() 340 sme->key_idx); in connect()
|
/drivers/md/bcache/ |
D | writeback.h | 37 int key_idx; member
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | cfg80211.c | 1922 key.index = (u32) sme->key_idx; in brcmf_set_sharedkey() 2359 u8 key_idx, bool unicast, bool multicast) in brcmf_cfg80211_config_default_key() argument 2368 brcmf_dbg(CONN, "key index (%d)\n", key_idx); in brcmf_cfg80211_config_default_key() 2380 index = key_idx; in brcmf_cfg80211_config_default_key() 2393 u8 key_idx, bool pairwise, const u8 *mac_addr) in brcmf_cfg80211_del_key() argument 2400 brcmf_dbg(CONN, "key index (%d)\n", key_idx); in brcmf_cfg80211_del_key() 2405 if (key_idx >= BRCMF_MAX_DEFAULT_KEYS) { in brcmf_cfg80211_del_key() 2410 key = &ifp->vif->profile.key[key_idx]; in brcmf_cfg80211_del_key() 2418 key->index = (u32)key_idx; in brcmf_cfg80211_del_key() 2430 u8 key_idx, bool pairwise, const u8 *mac_addr, in brcmf_cfg80211_add_key() argument [all …]
|