Home
last modified time | relevance | path

Searched refs:p1k (Results 1 – 10 of 10) sorted by relevance

/drivers/staging/rtl8712/
Drtl871x_security.c486 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()
493 p1k[2] = Mk16(ta[1], ta[0]); /* use TA[] as little-endian */ in phase1()
494 p1k[3] = Mk16(ta[3], ta[2]); in phase1()
495 p1k[4] = Mk16(ta[5], ta[4]); in phase1()
499 p1k[0] += _S_(p1k[4] ^ TK16((i & 1) + 0)); in phase1()
500 p1k[1] += _S_(p1k[0] ^ TK16((i & 1) + 2)); in phase1()
501 p1k[2] += _S_(p1k[1] ^ TK16((i & 1) + 4)); in phase1()
502 p1k[3] += _S_(p1k[2] ^ TK16((i & 1) + 6)); in phase1()
[all …]
/drivers/staging/rtl8723au/core/
Drtw_security.c506 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
511 p1k[0] = Lo16(iv32); in phase1()
512 p1k[1] = Hi16(iv32); in phase1()
513 p1k[2] = Mk16(ta[1], ta[0]); /* use TA[] as little-endian */ in phase1()
514 p1k[3] = Mk16(ta[3], ta[2]); in phase1()
515 p1k[4] = Mk16(ta[5], ta[4]); in phase1()
521 p1k[0] += _S_(p1k[4] ^ TK16((i & 1) + 0)); in phase1()
522 p1k[1] += _S_(p1k[0] ^ TK16((i & 1) + 2)); in phase1()
523 p1k[2] += _S_(p1k[1] ^ TK16((i & 1) + 4)); in phase1()
524 p1k[3] += _S_(p1k[2] ^ TK16((i & 1) + 6)); in phase1()
[all …]
/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()
480 p1k[2] = Mk16(ta[1], ta[0]); /* use TA[] as little-endian */ in phase1()
481 p1k[3] = Mk16(ta[3], ta[2]); in phase1()
482 p1k[4] = Mk16(ta[5], ta[4]); in phase1()
487 p1k[0] += _S_(p1k[4] ^ TK16((i&1)+0)); in phase1()
488 p1k[1] += _S_(p1k[0] ^ TK16((i&1)+2)); in phase1()
489 p1k[2] += _S_(p1k[1] ^ TK16((i&1)+4)); in phase1()
490 p1k[3] += _S_(p1k[2] ^ TK16((i&1)+6)); in phase1()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Dlib.c894 static void iwlagn_convert_p1k(u16 *p1k, __le16 *out) in iwlagn_convert_p1k() argument
899 out[i] = cpu_to_le16(p1k[i]); in iwlagn_convert_p1k()
926 u16 p1k[IWLAGN_P1K_SIZE]; in iwlagn_wowlan_program_keys() local
955 ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); in iwlagn_wowlan_program_keys()
956 iwlagn_convert_p1k(p1k, data->tkip->tx.p1k); in iwlagn_wowlan_program_keys()
984 ieee80211_get_tkip_rx_p1k(key, data->bssid, cur_rx_iv32, p1k); in iwlagn_wowlan_program_keys()
985 iwlagn_convert_p1k(p1k, rx_p1ks[0].p1k); in iwlagn_wowlan_program_keys()
987 cur_rx_iv32 + 1, p1k); in iwlagn_wowlan_program_keys()
988 iwlagn_convert_p1k(p1k, rx_p1ks[1].p1k); in iwlagn_wowlan_program_keys()
Dsta.c1224 u16 p1k[5]; in iwl_set_dynamic_key() local
1249 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in iwl_set_dynamic_key()
1251 seq.tkip.iv32, p1k, 0); in iwl_set_dynamic_key()
Dcommands.h3868 __le16 p1k[IWLAGN_P1K_SIZE]; member
/drivers/net/wireless/iwlwifi/mvm/
Dd3.c128 static void iwl_mvm_convert_p1k(u16 *p1k, __le16 *out) in iwl_mvm_convert_p1k() argument
133 out[i] = cpu_to_le16(p1k[i]); in iwl_mvm_convert_p1k()
158 u16 p1k[IWL_P1K_SIZE]; in iwl_mvm_wowlan_program_keys() local
232 ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); in iwl_mvm_wowlan_program_keys()
233 iwl_mvm_convert_p1k(p1k, data->tkip->tx.p1k); in iwl_mvm_wowlan_program_keys()
262 cur_rx_iv32, p1k); in iwl_mvm_wowlan_program_keys()
263 iwl_mvm_convert_p1k(p1k, rx_p1ks[0].p1k); in iwl_mvm_wowlan_program_keys()
265 cur_rx_iv32 + 1, p1k); in iwl_mvm_wowlan_program_keys()
266 iwl_mvm_convert_p1k(p1k, rx_p1ks[1].p1k); in iwl_mvm_wowlan_program_keys()
Dfw-api-d3.h299 __le16 p1k[IWL_P1K_SIZE]; member
Dsta.c1385 u16 p1k[5]; in __iwl_mvm_set_sta_key() local
1392 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in __iwl_mvm_set_sta_key()
1394 seq.tkip.iv32, p1k, 0, key_offset); in __iwl_mvm_set_sta_key()
/drivers/input/misc/
DKconfig404 tristate "Yealink usb-p1k voip phone"
409 Yealink usb-p1k usb phones. The audio part is enabled by the generic