Home
last modified time | relevance | path

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

/drivers/staging/vt6655/
Dtkip.c191 unsigned int p1k[5]; in TKIPvMixKey() local
207 p1k[0] = tsc1; in TKIPvMixKey()
208 p1k[1] = tsc0; in TKIPvMixKey()
209 p1k[2] = (unsigned int)(pbyTA[0] + (pbyTA[1]*256)); in TKIPvMixKey()
210 p1k[3] = (unsigned int)(pbyTA[2] + (pbyTA[3]*256)); in TKIPvMixKey()
211 p1k[4] = (unsigned int)(pbyTA[4] + (pbyTA[5]*256)); in TKIPvMixKey()
216 p1k[0] = (p1k[0] + tkip_sbox((p1k[4] ^ ((256*pbyTKey[1+j]) + pbyTKey[j])) % 65536)) % 65536; in TKIPvMixKey()
217 p1k[1] = (p1k[1] + tkip_sbox((p1k[0] ^ ((256*pbyTKey[5+j]) + pbyTKey[4+j])) % 65536)) % 65536; in TKIPvMixKey()
218 p1k[2] = (p1k[2] + tkip_sbox((p1k[1] ^ ((256*pbyTKey[9+j]) + pbyTKey[8+j])) % 65536)) % 65536; in TKIPvMixKey()
219 p1k[3] = (p1k[3] + tkip_sbox((p1k[2] ^ ((256*pbyTKey[13+j]) + pbyTKey[12+j])) % 65536)) % 65536; in TKIPvMixKey()
[all …]
/drivers/staging/vt6656/
Dtkip.c169 u32 p1k[5]; in TKIPvMixKey() local
183 p1k[0] = tsc1; in TKIPvMixKey()
184 p1k[1] = tsc0; in TKIPvMixKey()
185 p1k[2] = (u32)(pbyTA[0] + (pbyTA[1]*256)); in TKIPvMixKey()
186 p1k[3] = (u32)(pbyTA[2] + (pbyTA[3]*256)); in TKIPvMixKey()
187 p1k[4] = (u32)(pbyTA[4] + (pbyTA[5]*256)); in TKIPvMixKey()
192 p1k[0] = (p1k[0] + tkip_sbox((p1k[4] ^ ((256*pbyTKey[1+j]) + pbyTKey[j])) % 65536)) % 65536; in TKIPvMixKey()
193p1k[1] = (p1k[1] + tkip_sbox((p1k[0] ^ ((256*pbyTKey[5+j]) + pbyTKey[4+j])) % 65536)) % 65536; in TKIPvMixKey()
194p1k[2] = (p1k[2] + tkip_sbox((p1k[1] ^ ((256*pbyTKey[9+j]) + pbyTKey[8+j])) % 65536)) % 65536; in TKIPvMixKey()
195p1k[3] = (p1k[3] + tkip_sbox((p1k[2] ^ ((256*pbyTKey[13+j]) + pbyTKey[12+j])) % 65536)) % 65536; in TKIPvMixKey()
[all …]
/drivers/staging/rtl8712/
Drtl871x_security.c489 static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) in phase1() argument
494 p1k[0] = Lo16(iv32); in phase1()
495 p1k[1] = Hi16(iv32); in phase1()
496 p1k[2] = Mk16(ta[1], ta[0]); /* use TA[] as little-endian */ in phase1()
497 p1k[3] = Mk16(ta[3], ta[2]); in phase1()
498 p1k[4] = Mk16(ta[5], ta[4]); in phase1()
502 p1k[0] += _S_(p1k[4] ^ TK16((i&1) + 0)); in phase1()
503 p1k[1] += _S_(p1k[0] ^ TK16((i&1) + 2)); in phase1()
504 p1k[2] += _S_(p1k[1] ^ TK16((i&1) + 4)); in phase1()
505 p1k[3] += _S_(p1k[2] ^ TK16((i&1) + 6)); in phase1()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Dlib.c897 static void iwlagn_convert_p1k(u16 *p1k, __le16 *out) in iwlagn_convert_p1k() argument
902 out[i] = cpu_to_le16(p1k[i]); in iwlagn_convert_p1k()
929 u16 p1k[IWLAGN_P1K_SIZE]; in iwlagn_wowlan_program_keys() local
958 ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); in iwlagn_wowlan_program_keys()
959 iwlagn_convert_p1k(p1k, data->tkip->tx.p1k); in iwlagn_wowlan_program_keys()
987 ieee80211_get_tkip_rx_p1k(key, data->bssid, cur_rx_iv32, p1k); in iwlagn_wowlan_program_keys()
988 iwlagn_convert_p1k(p1k, rx_p1ks[0].p1k); in iwlagn_wowlan_program_keys()
990 cur_rx_iv32 + 1, p1k); in iwlagn_wowlan_program_keys()
991 iwlagn_convert_p1k(p1k, rx_p1ks[1].p1k); in iwlagn_wowlan_program_keys()
Dsta.c1259 u16 p1k[5]; in iwl_set_dynamic_key() local
1284 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in iwl_set_dynamic_key()
1286 seq.tkip.iv32, p1k, CMD_SYNC); in iwl_set_dynamic_key()
Dcommands.h3875 __le16 p1k[IWLAGN_P1K_SIZE]; member
/drivers/net/wireless/iwlwifi/mvm/
Dd3.c124 static void iwl_mvm_convert_p1k(u16 *p1k, __le16 *out) in iwl_mvm_convert_p1k() argument
129 out[i] = cpu_to_le16(p1k[i]); in iwl_mvm_convert_p1k()
154 u16 p1k[IWL_P1K_SIZE]; in iwl_mvm_wowlan_program_keys() local
229 ieee80211_get_tkip_p1k_iv(key, seq.tkip.iv32, p1k); in iwl_mvm_wowlan_program_keys()
230 iwl_mvm_convert_p1k(p1k, data->tkip->tx.p1k); in iwl_mvm_wowlan_program_keys()
259 cur_rx_iv32, p1k); in iwl_mvm_wowlan_program_keys()
260 iwl_mvm_convert_p1k(p1k, rx_p1ks[0].p1k); in iwl_mvm_wowlan_program_keys()
262 cur_rx_iv32 + 1, p1k); in iwl_mvm_wowlan_program_keys()
263 iwl_mvm_convert_p1k(p1k, rx_p1ks[1].p1k); in iwl_mvm_wowlan_program_keys()
Dfw-api-d3.h218 __le16 p1k[IWL_P1K_SIZE]; member
Dsta.c1097 u16 p1k[5]; in iwl_mvm_set_sta_key() local
1146 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in iwl_mvm_set_sta_key()
1148 seq.tkip.iv32, p1k, CMD_SYNC); in iwl_mvm_set_sta_key()
/drivers/input/misc/
DKconfig362 tristate "Yealink usb-p1k voip phone"
367 Yealink usb-p1k usb phones. The audio part is enabled by the generic