Home
last modified time | relevance | path

Searched refs:iv16 (Results 1 – 22 of 22) sorted by relevance

/linux/net/mac80211/
A Dtkip.c69 *pos++ = iv16 >> 8; in write_tkip_iv()
70 *pos++ = ((iv16 >> 8) | 0x20) & 0x7f; in write_tkip_iv()
71 *pos++ = iv16 & 0xFF; in write_tkip_iv()
206 u16 iv16 = data[2] | (data[0] << 8); in ieee80211_get_tkip_p2k() local
210 tkip_mixing_phase2(tk, ctx, iv16, p2k); in ieee80211_get_tkip_p2k()
246 u32 iv16; in ieee80211_tkip_decrypt_data() local
255 iv16 = (pos[0] << 8) | pos[2]; in ieee80211_tkip_decrypt_data()
277 (iv16 < rx_ctx->iv16 || in ieee80211_tkip_decrypt_data()
278 (iv16 == rx_ctx->iv16 && in ieee80211_tkip_decrypt_data()
279 (rx_ctx->iv32 || rx_ctx->iv16 || in ieee80211_tkip_decrypt_data()
[all …]
A Dkey.h56 u16 iv16; /* current iv16 */ member
A Dkey.c572 key->u.tkip.rx[i].iv16 = in ieee80211_key_alloc()
1158 seq->tkip.iv16 = key->u.tkip.rx[tid].iv16; in ieee80211_get_key_rx_seq()
1211 key->u.tkip.rx[tid].iv16 = seq->tkip.iv16; in ieee80211_set_key_rx_seq()
A Dwpa.c172 rx->key->u.tkip.rx[rx->security_idx].iv16 = rx->tkip.iv16; in ieee80211_rx_h_michael_mic_verify()
299 &rx->tkip.iv16); in ieee80211_crypto_tkip_decrypt()
A Ddebugfs_key.c175 key->u.tkip.rx[i].iv16); in key_rx_spec_read()
A Dcfg.c605 u16 iv16; in ieee80211_get_key() local
638 iv16 = TKIP_PN_TO_IV16(pn64); in ieee80211_get_key()
644 iv16 = kseq.tkip.iv16; in ieee80211_get_key()
647 seq[0] = iv16 & 0xff; in ieee80211_get_key()
648 seq[1] = (iv16 >> 8) & 0xff; in ieee80211_get_key()
A Dieee80211_i.h230 u16 iv16; member
/linux/drivers/staging/rtl8192u/ieee80211/
A Dieee80211_crypt_tkip.c343 u16 iv16; in ieee80211_tkip_decrypt() local
378 iv16 = (pos[0] << 8) | pos[2]; in ieee80211_tkip_decrypt()
384 (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) { in ieee80211_tkip_decrypt()
389 tkey->rx_iv32, tkey->rx_iv16, iv32, iv16); in ieee80211_tkip_decrypt()
399 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in ieee80211_tkip_decrypt()
436 tkey->rx_iv16_new = iv16; in ieee80211_tkip_decrypt()
648 u16 iv16 = tkey->tx_iv16; in ieee80211_tkip_get_key() local
651 if (iv16 == 0) in ieee80211_tkip_get_key()
653 iv16--; in ieee80211_tkip_get_key()
/linux/drivers/staging/rtl8192e/
A Drtllib_crypt_tkip.c348 u16 iv16; in rtllib_tkip_decrypt() local
386 iv16 = (pos[0] << 8) | pos[2]; in rtllib_tkip_decrypt()
392 (iv32 == tkey->rx_iv32 && iv16 <= tkey->rx_iv16)) && in rtllib_tkip_decrypt()
398 tkey->rx_iv16, iv32, iv16); in rtllib_tkip_decrypt()
410 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in rtllib_tkip_decrypt()
446 tkey->rx_iv16_new = iv16; in rtllib_tkip_decrypt()
657 u16 iv16 = tkey->tx_iv16; in rtllib_tkip_get_key() local
660 if (iv16 == 0) in rtllib_tkip_get_key()
662 iv16--; in rtllib_tkip_get_key()
/linux/net/wireless/
A Dlib80211_crypt_tkip.c382 u16 iv16; in lib80211_tkip_decrypt() local
417 iv16 = (pos[0] << 8) | pos[2]; 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()
435 tkip_mixing_phase2(rc4key, tkey->key, tkey->rx_ttak, iv16); in lib80211_tkip_decrypt()
464 tkey->rx_iv16_new = iv16; in lib80211_tkip_decrypt()
666 u16 iv16 = tkey->tx_iv16; in lib80211_tkip_get_key() local
668 if (iv16 == 0) in lib80211_tkip_get_key()
670 iv16--; in lib80211_tkip_get_key()
/linux/drivers/staging/wfx/
A Dkey.c81 &seq->tkip.iv16, sizeof(seq->tkip.iv16)); in fill_tkip_group()
/linux/drivers/staging/r8188eu/core/
A Drtw_security.c394 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
402 PPK[5] = p1k[4] + iv16; /* next, add in IV16 */ in phase2()
425 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
426 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
427 rc4key[2] = Lo8(iv16); in phase2()
/linux/drivers/staging/rtl8723bs/core/
A Drtw_security.c411 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
420 PPK[5] = p1k[4]+iv16; /* next, add in IV16 */ in phase2()
443 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
444 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
445 rc4key[2] = Lo8(iv16); in phase2()
/linux/drivers/staging/rtl8712/
A Drtl871x_security.c519 static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) in phase2() argument
527 PPK[5] = p1k[4] + iv16; /* next, add in IV16 */ in phase2()
547 rc4key[0] = Hi8(iv16); /* RC4KEY[0..2] is the WEP IV */ in phase2()
548 rc4key[1] = (Hi8(iv16) | 0x20) & 0x7F; /* Help avoid weak (FMS) keys */ in phase2()
549 rc4key[2] = Lo8(iv16); in phase2()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dd3.c245 tkip_tx_sc->iv16 = cpu_to_le16(TKIP_PN_TO_IV16(pn64)); in iwl_mvm_wowlan_get_rsc_tsc_data()
259 tkip_sc[i].iv16 = cpu_to_le16(seq.tkip.iv16); in iwl_mvm_wowlan_get_rsc_tsc_data()
397 seq.tkip.iv16); in iwl_mvm_wowlan_get_rsc_v5_data()
1577 seq->tkip.iv16 = le16_to_cpu(sc->iv16); in iwl_mvm_tkip_sc_to_seq()
1639 status->ptk.tkip.tx_pn = (u64)le16_to_cpu(sc->tkip.tsc.iv16) | in iwl_mvm_convert_key_counters()
A Dsta.c3315 rx_pn[0] = seq.tkip.iv16; in iwl_mvm_send_sta_key()
3316 rx_pn[1] = seq.tkip.iv16 >> 8; in iwl_mvm_send_sta_key()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
A Dlib.c914 tkip_tx_sc->iv16 = cpu_to_le16(TKIP_PN_TO_IV16(pn64)); in iwlagn_wowlan_program_keys()
939 tkip_sc[i].iv16 = cpu_to_le16(seq.tkip.iv16); in iwlagn_wowlan_program_keys()
A Dcommands.h3748 __le16 iv16; member
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
A Dd3.h402 __le16 iv16; member
/linux/drivers/net/wireless/st/cw1200/
A Dsta.c754 wsm_key->tkip_group.rx_seqnum[0] = seq.tkip.iv16 & 0xff; in cw1200_set_key()
755 wsm_key->tkip_group.rx_seqnum[1] = (seq.tkip.iv16 >> 8) & 0xff; in cw1200_set_key()
/linux/include/net/
A Dmac80211.h1912 u16 iv16; member
/linux/drivers/net/wireless/ralink/rt2x00/
A Drt2800lib.c10354 memcpy(&seq->tkip.iv16, &iveiv_entry.iv[0], 2); in rt2800_get_key_seq()

Completed in 250 milliseconds