Home
last modified time | relevance | path

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

/net/mac80211/
Dwep.c74 int keylen, int keyidx, u8 *iv) in ieee80211_wep_get_iv() argument
86 *iv++ = keyidx << 6; in ieee80211_wep_get_iv()
92 int keylen, int keyidx) in ieee80211_wep_add_iv() argument
113 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv()
163 const u8 *key, int keylen, int keyidx) in ieee80211_wep_encrypt() argument
172 iv = ieee80211_wep_add_iv(local, skb, keylen, keyidx); in ieee80211_wep_encrypt()
231 u8 keyidx; in ieee80211_wep_decrypt() local
246 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_wep_decrypt()
248 if (!key || keyidx != key->conf.keyidx) in ieee80211_wep_decrypt()
312 tx->key->conf.keyidx)) in wep_encrypt_skb()
[all …]
Dkey.c194 key->conf.keyidx, in ieee80211_key_enable_hw_accel()
250 key->conf.keyidx, in ieee80211_key_disable_hw_accel()
327 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace()
330 idx = old->conf.keyidx; in ieee80211_key_replace()
332 idx = new->conf.keyidx; in ieee80211_key_replace()
362 __ieee80211_set_default_key(sdata, new->conf.keyidx, in ieee80211_key_replace()
365 __ieee80211_set_default_key(sdata, new->conf.keyidx, in ieee80211_key_replace()
369 new->conf.keyidx); in ieee80211_key_replace()
400 key->conf.keyidx = idx; in ieee80211_key_alloc()
651 int idx = key->conf.keyidx; in ieee80211_key_link()
[all …]
Dwep.h25 const u8 *key, int keylen, int keyidx);
Dwpa.c131 if (rx->sdata->vif.type == NL80211_IFTYPE_AP && rx->key->conf.keyidx) { in ieee80211_rx_h_michael_mic_verify()
182 rx->key ? rx->key->conf.keyidx : -1, in ieee80211_rx_h_michael_mic_verify()
461 ccmp_pn2hdr(pos, pn, key->conf.keyidx); in ccmp_encrypt_skb()
701 gcmp_pn2hdr(pos, pn, key->conf.keyidx); in gcmp_encrypt_skb()
972 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt()
1016 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_256_encrypt()
1161 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_gmac_encrypt()
Dtkip.c150 *pos++ = (key->conf.keyidx << 6) | (1 << 5) /* Ext IV */; in ieee80211_tkip_add_iv()
265 if ((keyid >> 6) != key->conf.keyidx) in ieee80211_tkip_decrypt_data()
Ddebugfs_key.c66 KEY_CONF_FILE(keyidx, D);
357 DEBUGFS_ADD(keyidx); in ieee80211_debugfs_key_add()
Dtrace.h75 __field(s8, keyidx)
78 __entry->keyidx = (k)->keyidx; \
81 #define KEY_PR_ARG __entry->cipher, __entry->flags, __entry->keyidx, __entry->hw_key_idx
Drx.c1526 int keyidx; in ieee80211_rx_h_decrypt() local
1654 keyidx = iwl80211_get_cs_keyid(cs, rx->skb); in ieee80211_rx_h_decrypt()
1656 if (unlikely(keyidx < 0)) in ieee80211_rx_h_decrypt()
1666 keyidx = keyid >> 6; in ieee80211_rx_h_decrypt()
1671 rx->key = rcu_dereference(rx->sta->gtk[keyidx]); in ieee80211_rx_h_decrypt()
1675 rx->key = rcu_dereference(rx->sdata->keys[keyidx]); in ieee80211_rx_h_decrypt()
Dtx.c2589 0x20 | (build.key->conf.keyidx << 6); in ieee80211_check_fast_xmit()
2600 0x20 | (build.key->conf.keyidx << 6); in ieee80211_check_fast_xmit()
/net/wireless/
Dlib80211_crypt_tkip.c408 u8 keyidx, *pos; in lib80211_tkip_decrypt() local
429 keyidx = pos[3]; in lib80211_tkip_decrypt()
430 if (!(keyidx & (1 << 5))) { in lib80211_tkip_decrypt()
435 keyidx >>= 6; in lib80211_tkip_decrypt()
436 if (tkey->key_idx != keyidx) { in lib80211_tkip_decrypt()
438 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in lib80211_tkip_decrypt()
443 hdr->addr2, keyidx); in lib80211_tkip_decrypt()
505 return keyidx; in lib80211_tkip_decrypt()
589 int keyidx) in lib80211_michael_mic_failure() argument
596 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in lib80211_michael_mic_failure()
[all …]
Dlib80211_crypt_ccmp.c288 u8 keyidx, *pos; in lib80211_ccmp_decrypt() local
305 keyidx = pos[3]; in lib80211_ccmp_decrypt()
306 if (!(keyidx & (1 << 5))) { in lib80211_ccmp_decrypt()
312 keyidx >>= 6; in lib80211_ccmp_decrypt()
313 if (key->key_idx != keyidx) { in lib80211_ccmp_decrypt()
315 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv); in lib80211_ccmp_decrypt()
320 hdr->addr2, keyidx); in lib80211_ccmp_decrypt()
377 return keyidx; in lib80211_ccmp_decrypt()
383 int keyidx; in lib80211_ccmp_set_key() local
386 keyidx = data->key_idx; in lib80211_ccmp_set_key()
[all …]
Dlib80211_crypt_wep.c42 static void *lib80211_wep_init(int keyidx) in lib80211_wep_init() argument
49 priv->key_idx = keyidx; in lib80211_wep_init()
186 u8 keyidx, *pos, icv[4]; in lib80211_wep_decrypt() local
196 keyidx = *pos++ >> 6; in lib80211_wep_decrypt()
197 if (keyidx != wep->key_idx) in lib80211_wep_decrypt()
Dlib80211.c228 static void *lib80211_crypt_null_init(int keyidx) in lib80211_crypt_null_init() argument