Home
last modified time | relevance | path

Searched refs:iv32 (Results 1 – 31 of 31) sorted by relevance

/linux-4.1.27/net/mac80211/
Dtkip.c151 put_unaligned_le32(key->u.tkip.tx.iv32, pos); in ieee80211_tkip_add_iv()
155 static void ieee80211_compute_tkip_p1k(struct ieee80211_key *key, u32 iv32) in ieee80211_compute_tkip_p1k() argument
170 if (ctx->p1k_iv32 != iv32 || ctx->state == TKIP_STATE_NOT_INIT) in ieee80211_compute_tkip_p1k()
171 tkip_mixing_phase1(tk, ctx, sdata->vif.addr, iv32); in ieee80211_compute_tkip_p1k()
175 u32 iv32, u16 *p1k) in ieee80211_get_tkip_p1k_iv() argument
182 ieee80211_compute_tkip_p1k(key, iv32); in ieee80211_get_tkip_p1k_iv()
189 const u8 *ta, u32 iv32, u16 *p1k) in ieee80211_get_tkip_rx_p1k() argument
194 tkip_mixing_phase1(tk, &ctx, ta, iv32); in ieee80211_get_tkip_rx_p1k()
208 u32 iv32 = get_unaligned_le32(&data[4]); in ieee80211_get_tkip_p2k() local
212 ieee80211_compute_tkip_p1k(key, iv32); in ieee80211_get_tkip_p2k()
[all …]
Dkey.c410 key->u.tkip.rx[i].iv32 = in ieee80211_key_alloc()
897 seq->tkip.iv32 = key->u.tkip.tx.iv32; in ieee80211_get_key_tx_seq()
958 seq->tkip.iv32 = key->u.tkip.rx[tid].iv32; in ieee80211_get_key_rx_seq()
1009 key->u.tkip.tx.iv32 = seq->tkip.iv32; in ieee80211_set_key_tx_seq()
1071 key->u.tkip.rx[tid].iv32 = seq->tkip.iv32; in ieee80211_set_key_rx_seq()
Dtrace.h551 struct ieee80211_sta *sta, u32 iv32),
553 TP_ARGS(local, sdata, conf, sta, iv32),
559 __field(u32, iv32)
566 __entry->iv32 = iv32;
571 LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->iv32
661 u8 hw_key_idx, u32 *iv32, u16 *iv16),
663 TP_ARGS(local, hw_key_idx, iv32, iv16),
668 __field(u32, iv32)
675 __entry->iv32 = *iv32;
Dkey.h48 u32 iv32; /* current iv32 */ member
Ddriver-ops.h297 struct sta_info *sta, u32 iv32, in drv_update_tkip_key() argument
309 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
312 ista, iv32, phase1key); in drv_update_tkip_key()
421 u8 hw_key_idx, u32 *iv32, u16 *iv16) in drv_get_tkip_seq() argument
424 local->ops->get_tkip_seq(&local->hw, hw_key_idx, iv32, iv16); in drv_get_tkip_seq()
425 trace_drv_get_tkip_seq(local, hw_key_idx, iv32, iv16); in drv_get_tkip_seq()
Ddebugfs_key.c93 key->u.tkip.tx.iv32, in key_tx_spec_read()
148 key->u.tkip.rx[i].iv32, in key_rx_spec_read()
Dcfg.c309 u32 iv32; in ieee80211_get_key() local
339 iv32 = key->u.tkip.tx.iv32; in ieee80211_get_key()
345 &iv32, &iv16); in ieee80211_get_key()
349 seq[2] = iv32 & 0xff; in ieee80211_get_key()
350 seq[3] = (iv32 >> 8) & 0xff; in ieee80211_get_key()
351 seq[4] = (iv32 >> 16) & 0xff; in ieee80211_get_key()
352 seq[5] = (iv32 >> 24) & 0xff; in ieee80211_get_key()
Dwpa.c163 rx->key->u.tkip.rx[rx->security_idx].iv32 = rx->tkip_iv32; in ieee80211_rx_h_michael_mic_verify()
225 key->u.tkip.tx.iv32++; in tkip_encrypt_skb()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c391 u32 iv32; in ieee80211_tkip_decrypt() local
429 iv32 = pos[4] | (pos[5] << 8) | (pos[6] << 16) | (pos[7] << 24); in ieee80211_tkip_decrypt()
434 if (iv32 < tkey->rx_iv32 || in ieee80211_tkip_decrypt()
435 (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) { in ieee80211_tkip_decrypt()
440 tkey->rx_iv32, tkey->rx_iv16, iv32, iv16); in ieee80211_tkip_decrypt()
446 if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { in ieee80211_tkip_decrypt()
447 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in ieee80211_tkip_decrypt()
473 if (iv32 != tkey->rx_iv32) { in ieee80211_tkip_decrypt()
490 tkey->rx_iv32_new = iv32; in ieee80211_tkip_decrypt()
704 u32 iv32 = tkey->tx_iv32; in ieee80211_tkip_get_key() local
[all …]
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c384 u32 iv32; in rtllib_tkip_decrypt() local
426 iv32 = pos[4] | (pos[5] << 8) | (pos[6] << 16) | (pos[7] << 24); in rtllib_tkip_decrypt()
430 if ((iv32 < tkey->rx_iv32 || in rtllib_tkip_decrypt()
431 (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) && in rtllib_tkip_decrypt()
437 iv32, iv16); in rtllib_tkip_decrypt()
444 if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { in rtllib_tkip_decrypt()
446 hdr->addr2, iv32); in rtllib_tkip_decrypt()
472 if (iv32 != tkey->rx_iv32) { in rtllib_tkip_decrypt()
493 tkey->rx_iv32_new = iv32; in rtllib_tkip_decrypt()
706 u32 iv32 = tkey->tx_iv32; in rtllib_tkip_get_key() local
[all …]
/linux-4.1.27/net/wireless/
Dlib80211_crypt_tkip.c409 u32 iv32; in lib80211_tkip_decrypt() local
447 iv32 = pos[4] | (pos[5] << 8) | (pos[6] << 16) | (pos[7] << 24); in lib80211_tkip_decrypt()
450 if (tkip_replay_check(iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) { in lib80211_tkip_decrypt()
454 iv32, iv16); in lib80211_tkip_decrypt()
460 if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { in lib80211_tkip_decrypt()
461 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in lib80211_tkip_decrypt()
482 if (iv32 != tkey->rx_iv32) { in lib80211_tkip_decrypt()
497 tkey->rx_iv32_new = iv32; in lib80211_tkip_decrypt()
691 u32 iv32 = tkey->tx_iv32; in lib80211_tkip_get_key() local
693 iv32--; in lib80211_tkip_get_key()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dlib.c955 tkip_tx_sc->iv32 = cpu_to_le32(seq.tkip.iv32); in iwlagn_wowlan_program_keys()
957 ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); in iwlagn_wowlan_program_keys()
980 tkip_sc[i].iv32 = cpu_to_le32(seq.tkip.iv32); in iwlagn_wowlan_program_keys()
982 if (seq.tkip.iv32 > cur_rx_iv32) in iwlagn_wowlan_program_keys()
983 cur_rx_iv32 = seq.tkip.iv32; in iwlagn_wowlan_program_keys()
Dsta.c1186 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key) in iwl_update_tkip_key() argument
1200 iv32, phase1key, CMD_ASYNC); in iwl_update_tkip_key()
1282 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in iwl_set_dynamic_key()
1284 seq.tkip.iv32, p1k, 0); in iwl_set_dynamic_key()
Dagn.h373 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key);
Dmac80211.c589 u32 iv32, u16 *phase1key) in iwlagn_mac_update_tkip_key() argument
593 iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); in iwlagn_mac_update_tkip_key()
Dcommands.h3828 __le32 iv32; member
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dd3.c230 tkip_tx_sc->iv32 = cpu_to_le32(seq.tkip.iv32); in iwl_mvm_wowlan_program_keys()
232 ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); in iwl_mvm_wowlan_program_keys()
255 tkip_sc[i].iv32 = cpu_to_le32(seq.tkip.iv32); in iwl_mvm_wowlan_program_keys()
257 if (seq.tkip.iv32 > cur_rx_iv32) in iwl_mvm_wowlan_program_keys()
258 cur_rx_iv32 = seq.tkip.iv32; in iwl_mvm_wowlan_program_keys()
1347 seq->tkip.iv32 = le32_to_cpu(sc->iv32); in iwl_mvm_tkip_sc_to_seq()
Dsta.h378 struct ieee80211_sta *sta, u32 iv32,
Dfw-api-d3.h262 __le32 iv32; member
Dsta.c1339 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in __iwl_mvm_set_sta_key()
1341 seq.tkip.iv32, p1k, 0); in __iwl_mvm_set_sta_key()
1538 struct ieee80211_sta *sta, u32 iv32, in iwl_mvm_update_tkip_key() argument
1560 iv32, phase1key, CMD_ASYNC); in iwl_mvm_update_tkip_key()
Dmac80211.c2964 u32 iv32, u16 *phase1key) in iwl_mvm_mac_update_tkip_key() argument
2971 iwl_mvm_update_tkip_key(mvm, vif, keyconf, sta, iv32, phase1key); in iwl_mvm_mac_update_tkip_key()
/linux-4.1.27/include/net/
Dmac80211.h3200 u32 iv32, u16 *phase1key);
3224 u32 *iv32, u16 *iv16);
4193 u32 iv32, u16 *p1k);
4211 u32 iv32 = get_unaligned_le32(&data[4]); in ieee80211_get_tkip_p1k() local
4213 ieee80211_get_tkip_p1k_iv(keyconf, iv32, p1k); in ieee80211_get_tkip_p1k()
4228 const u8 *ta, u32 iv32, u16 *p1k);
4273 u32 iv32; member
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D4965.h144 struct ieee80211_sta *sta, u32 iv32,
182 struct ieee80211_sta *sta, u32 iv32,
D4965-mac.c3393 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key) in il4965_update_tkip_key() argument
3411 il->stations[sta_id].sta.key.tkip_rx_tsc_byte2 = (u8) iv32; in il4965_update_tkip_key()
5894 struct ieee80211_sta *sta, u32 iv32, u16 * phase1key) in il4965_mac_update_tkip_key() argument
5900 il4965_update_tkip_key(il, keyconf, sta, iv32, phase1key); in il4965_mac_update_tkip_key()
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2800lib.h212 void rt2800_get_tkip_seq(struct ieee80211_hw *hw, u8 hw_key_idx, u32 *iv32,
Drt2800lib.c7821 void rt2800_get_tkip_seq(struct ieee80211_hw *hw, u8 hw_key_idx, u32 *iv32, in rt2800_get_tkip_seq() argument
7833 memcpy(iv32, &iveiv_entry.iv[4], sizeof(*iv32)); in rt2800_get_tkip_seq()
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_security.c488 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
493 p1k[0] = Lo16(iv32); in phase1()
494 p1k[1] = Hi16(iv32); in phase1()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_security.c504 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
509 p1k[0] = Lo16(iv32); in phase1()
510 p1k[1] = Hi16(iv32); in phase1()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_security.c474 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
478 p1k[0] = Lo16(iv32); in phase1()
479 p1k[1] = Hi16(iv32); in phase1()
/linux-4.1.27/drivers/net/wireless/cw1200/
Dsta.c763 wsm_key->tkip_group.rx_seqnum[2] = seq.tkip.iv32 & 0xff; in cw1200_set_key()
764 wsm_key->tkip_group.rx_seqnum[3] = (seq.tkip.iv32 >> 8) & 0xff; in cw1200_set_key()
765 wsm_key->tkip_group.rx_seqnum[4] = (seq.tkip.iv32 >> 16) & 0xff; in cw1200_set_key()
766 wsm_key->tkip_group.rx_seqnum[5] = (seq.tkip.iv32 >> 24) & 0xff; in cw1200_set_key()
/linux-4.1.27/drivers/net/wireless/b43/
Dmain.c903 static void rx_tkip_phase1_write(struct b43_wldev *dev, u8 index, u32 iv32, in rx_tkip_phase1_write() argument
927 index, iv32); in rx_tkip_phase1_write()
935 b43_shm_write16(dev, B43_SHM_SHARED, offset + i, iv32); in rx_tkip_phase1_write()
936 b43_shm_write16(dev, B43_SHM_SHARED, offset + i + 2, iv32 >> 16); in rx_tkip_phase1_write()
943 u32 iv32, u16 *phase1key) in b43_op_update_tkip_key() argument
960 rx_tkip_phase1_write(dev, index, iv32, phase1key); in b43_op_update_tkip_key()