Home
last modified time | relevance | path

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

12

/Linux-v5.4/net/mac80211/
Dtkip.c152 static void ieee80211_compute_tkip_p1k(struct ieee80211_key *key, u32 iv32) in ieee80211_compute_tkip_p1k() argument
167 if (ctx->p1k_iv32 != iv32 || ctx->state == TKIP_STATE_NOT_INIT) in ieee80211_compute_tkip_p1k()
168 tkip_mixing_phase1(tk, ctx, sdata->vif.addr, iv32); in ieee80211_compute_tkip_p1k()
172 u32 iv32, u16 *p1k) in ieee80211_get_tkip_p1k_iv() argument
179 ieee80211_compute_tkip_p1k(key, iv32); in ieee80211_get_tkip_p1k_iv()
186 const u8 *ta, u32 iv32, u16 *p1k) in ieee80211_get_tkip_rx_p1k() argument
191 tkip_mixing_phase1(tk, &ctx, ta, iv32); in ieee80211_get_tkip_rx_p1k()
205 u32 iv32 = get_unaligned_le32(&data[4]); in ieee80211_get_tkip_p2k() local
209 ieee80211_compute_tkip_p1k(key, iv32); in ieee80211_get_tkip_p2k()
245 u32 iv32; in ieee80211_tkip_decrypt_data() local
[all …]
Dkey.h54 u32 iv32; /* current iv32 */ member
Dkey.c531 key->u.tkip.rx[i].iv32 = in ieee80211_key_alloc()
1110 seq->tkip.iv32 = key->u.tkip.rx[tid].iv32; in ieee80211_get_key_rx_seq()
1163 key->u.tkip.rx[tid].iv32 = seq->tkip.iv32; in ieee80211_set_key_rx_seq()
Dtrace.h610 struct ieee80211_sta *sta, u32 iv32),
612 TP_ARGS(local, sdata, conf, sta, iv32),
618 __field(u32, iv32)
625 __entry->iv32 = iv32;
630 LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->iv32
Ddriver-ops.h261 struct sta_info *sta, u32 iv32, in drv_update_tkip_key() argument
273 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
276 ista, iv32, phase1key); in drv_update_tkip_key()
Dcfg.c554 u32 iv32; in ieee80211_get_key() local
586 iv32 = TKIP_PN_TO_IV32(pn64); in ieee80211_get_key()
592 iv32 = kseq.tkip.iv32; in ieee80211_get_key()
598 seq[2] = iv32 & 0xff; in ieee80211_get_key()
599 seq[3] = (iv32 >> 8) & 0xff; in ieee80211_get_key()
600 seq[4] = (iv32 >> 16) & 0xff; in ieee80211_get_key()
601 seq[5] = (iv32 >> 24) & 0xff; in ieee80211_get_key()
Ddebugfs_key.c174 key->u.tkip.rx[i].iv32, in key_rx_spec_read()
/Linux-v5.4/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c371 u32 iv32; in rtllib_tkip_decrypt() local
413 iv32 = pos[4] | (pos[5] << 8) | (pos[6] << 16) | (pos[7] << 24); in rtllib_tkip_decrypt()
419 if ((iv32 < tkey->rx_iv32 || in rtllib_tkip_decrypt()
420 (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) && in rtllib_tkip_decrypt()
426 tkey->rx_iv16, iv32, iv16); in rtllib_tkip_decrypt()
433 if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { in rtllib_tkip_decrypt()
435 hdr->addr2, iv32); in rtllib_tkip_decrypt()
466 if (iv32 != tkey->rx_iv32) { in rtllib_tkip_decrypt()
487 tkey->rx_iv32_new = iv32; in rtllib_tkip_decrypt()
704 u32 iv32 = tkey->tx_iv32; in rtllib_tkip_get_key() local
[all …]
/Linux-v5.4/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c372 u32 iv32; in ieee80211_tkip_decrypt() local
411 iv32 = pos[4] | (pos[5] << 8) | (pos[6] << 16) | (pos[7] << 24); in ieee80211_tkip_decrypt()
417 if (iv32 < tkey->rx_iv32 || in ieee80211_tkip_decrypt()
418 (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) { in ieee80211_tkip_decrypt()
423 tkey->rx_iv32, tkey->rx_iv16, iv32, iv16); in ieee80211_tkip_decrypt()
429 if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { in ieee80211_tkip_decrypt()
430 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in ieee80211_tkip_decrypt()
462 if (iv32 != tkey->rx_iv32) { in ieee80211_tkip_decrypt()
484 tkey->rx_iv32_new = iv32; in ieee80211_tkip_decrypt()
703 u32 iv32 = tkey->tx_iv32; in ieee80211_tkip_get_key() local
[all …]
/Linux-v5.4/net/wireless/
Dlib80211_crypt_tkip.c381 u32 iv32; in lib80211_tkip_decrypt() local
418 iv32 = pos[4] | (pos[5] << 8) | (pos[6] << 16) | (pos[7] << 24); in lib80211_tkip_decrypt()
421 if (tkip_replay_check(iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) { in lib80211_tkip_decrypt()
425 iv32, iv16); in lib80211_tkip_decrypt()
431 if (iv32 != tkey->rx_iv32 || !tkey->rx_phase1_done) { in lib80211_tkip_decrypt()
432 tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32); in lib80211_tkip_decrypt()
448 if (iv32 != tkey->rx_iv32) { in lib80211_tkip_decrypt()
463 tkey->rx_iv32_new = iv32; in lib80211_tkip_decrypt()
667 u32 iv32 = tkey->tx_iv32; in lib80211_tkip_get_key() local
669 iv32--; in lib80211_tkip_get_key()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/dvm/
Dlib.c920 tkip_tx_sc->iv32 = cpu_to_le32(TKIP_PN_TO_IV32(pn64)); in iwlagn_wowlan_program_keys()
922 ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); in iwlagn_wowlan_program_keys()
945 tkip_sc[i].iv32 = cpu_to_le32(seq.tkip.iv32); in iwlagn_wowlan_program_keys()
947 if (seq.tkip.iv32 > cur_rx_iv32) in iwlagn_wowlan_program_keys()
948 cur_rx_iv32 = seq.tkip.iv32; in iwlagn_wowlan_program_keys()
Dsta.c1138 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key) in iwl_update_tkip_key() argument
1152 iv32, phase1key, CMD_ASYNC); in iwl_update_tkip_key()
1234 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in iwl_set_dynamic_key()
1236 seq.tkip.iv32, p1k, 0); in iwl_set_dynamic_key()
Dagn.h361 struct ieee80211_sta *sta, u32 iv32, u16 *phase1key);
Dmac80211.c593 u32 iv32, u16 *phase1key) in iwlagn_mac_update_tkip_key() argument
597 iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); in iwlagn_mac_update_tkip_key()
/Linux-v5.4/drivers/net/wireless/intel/iwlegacy/
D4965.h126 struct ieee80211_sta *sta, u32 iv32,
164 struct ieee80211_sta *sta, u32 iv32,
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c260 tkip_tx_sc->iv32 = cpu_to_le32(TKIP_PN_TO_IV32(pn64)); in iwl_mvm_wowlan_program_keys()
286 tkip_sc[i].iv32 = cpu_to_le32(seq.tkip.iv32); in iwl_mvm_wowlan_program_keys()
288 if (seq.tkip.iv32 > cur_rx_iv32) in iwl_mvm_wowlan_program_keys()
289 cur_rx_iv32 = seq.tkip.iv32; in iwl_mvm_wowlan_program_keys()
1271 seq->tkip.iv32 = le32_to_cpu(sc->iv32); in iwl_mvm_tkip_sc_to_seq()
1407 ((u64)seq.tkip.iv32 << 16)); in iwl_mvm_d3_update_keys()
Dsta.h521 struct ieee80211_sta *sta, u32 iv32,
Dsta.c3432 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in __iwl_mvm_set_sta_key()
3434 seq.tkip.iv32, p1k, 0, key_offset, in __iwl_mvm_set_sta_key()
3616 struct ieee80211_sta *sta, u32 iv32, in iwl_mvm_update_tkip_key() argument
3629 iv32, phase1key, CMD_ASYNC, keyconf->hw_key_idx, in iwl_mvm_update_tkip_key()
/Linux-v5.4/include/net/
Dmac80211.h1788 u32 iv32; member
3802 u32 iv32, u16 *phase1key);
4977 u32 iv32, u16 *p1k);
4995 u32 iv32 = get_unaligned_le32(&data[4]); in ieee80211_get_tkip_p1k() local
4997 ieee80211_get_tkip_p1k_iv(keyconf, iv32, p1k); in ieee80211_get_tkip_p1k()
5012 const u8 *ta, u32 iv32, u16 *p1k);
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/api/
Dd3.h422 __le32 iv32; member
/Linux-v5.4/drivers/staging/rtl8188eu/core/
Drtw_security.c487 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
491 p1k[0] = Lo16(iv32); in phase1()
492 p1k[1] = Hi16(iv32); in phase1()
/Linux-v5.4/drivers/crypto/stm32/
Dstm32-cryp.c1138 u32 *iv32 = (u32 *)iv; in stm32_cryp_read_auth_tag() local
1145 *iv32 = cpu_to_be32(*iv32); in stm32_cryp_read_auth_tag()
1146 stm32_cryp_write(cryp, CRYP_DIN, *iv32++); in stm32_cryp_read_auth_tag()
/Linux-v5.4/drivers/staging/rtl8712/
Drtl871x_security.c474 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
479 p1k[0] = Lo16(iv32); in phase1()
480 p1k[1] = Hi16(iv32); in phase1()
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dsta.c756 wsm_key->tkip_group.rx_seqnum[2] = seq.tkip.iv32 & 0xff; in cw1200_set_key()
757 wsm_key->tkip_group.rx_seqnum[3] = (seq.tkip.iv32 >> 8) & 0xff; in cw1200_set_key()
758 wsm_key->tkip_group.rx_seqnum[4] = (seq.tkip.iv32 >> 16) & 0xff; in cw1200_set_key()
759 wsm_key->tkip_group.rx_seqnum[5] = (seq.tkip.iv32 >> 24) & 0xff; in cw1200_set_key()
/Linux-v5.4/drivers/staging/rtl8723bs/core/
Drtw_security.c555 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
560 p1k[0] = Lo16(iv32); in phase1()
561 p1k[1] = Hi16(iv32); in phase1()

12