Home
last modified time | relevance | path

Searched refs:snonce (Results 1 – 17 of 17) sorted by relevance

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ft.c78 return wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->pmk_r1_len, sm->snonce, anonce, in wpa_derive_ptk_ft()
338 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
349 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
489 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
551 const u8 *anonce, *snonce; in wpa_ft_process_response() local
600 snonce = ftie->snonce; in wpa_ft_process_response()
611 snonce = ftie->snonce; in wpa_ft_process_response()
614 if (os_memcmp(snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
617 snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
619 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
[all …]
Dwpa_i.h31 u8 snonce[WPA_NONCE_LEN]; member
Dwpa.c616 sm->own_addr, sm->bssid, sm->snonce, in wpa_derive_ptk()
722 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
729 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
827 if (wpa_supplicant_send_2_of_4(sm, sm->bssid, key, ver, sm->snonce, in wpa_supplicant_process_1_of_4()
4583 size_t *kek_len, const u8 **snonce, in fils_build_assoc_req() argument
4701 *snonce = sm->fils_nonce; in fils_build_assoc_req()
4703 *snonce, FILS_NONCE_LEN); in fils_build_assoc_req()
Dwpa.h547 size_t *kek_len, const u8 **snonce,
/external/wpa_supplicant_8/src/common/
Dwpa_common.h345 u8 snonce[WPA_NONCE_LEN]; member
353 u8 snonce[WPA_NONCE_LEN]; member
394 const u8 *snonce, const u8 *anonce, const u8 *dh_ss,
399 const u8 *snonce, const u8 *anonce, const u8 *dhss,
403 int fils_key_auth_sk(const u8 *ick, size_t ick_len, const u8 *snonce,
430 int wpa_pmk_r1_to_ptk(const u8 *pmk_r1, size_t pmk_r1_len, const u8 *snonce,
Dwpa_common.c518 const u8 *snonce, const u8 *anonce, const u8 *dh_ss, in fils_rmsk_to_pmk() argument
538 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
542 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
592 const u8 *snonce, const u8 *anonce, const u8 *dhss, in fils_pmk_to_ptk() argument
628 os_memcpy(pos, snonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
685 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
727 int fils_key_auth_sk(const u8 *ick, size_t ick_len, const u8 *snonce, in fils_key_auth_sk() argument
742 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_key_auth_sk()
752 addr[0] = snonce; in fils_key_auth_sk()
788 addr[1] = snonce; in fils_key_auth_sk()
[all …]
Dcommon_module_tests.c735 const u8 snonce[] = { in pasn_test_no_pasn_auth() local
764 spa, aa, snonce, anonce, in pasn_test_no_pasn_auth()
/external/wpa_supplicant_8/src/wps/
Dwps_enrollee.c41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash()
43 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_hash()
45 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_e_hash()
58 addr[0] = wps->snonce; in wps_build_e_hash()
74 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_e_hash()
88 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_snonce1()
98 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_e_snonce2()
Dwps_i.h57 u8 snonce[2 * WPS_SECRET_NONCE_LEN]; member
Dwps_registrar.c1473 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash()
1475 wpa_hexdump(MSG_DEBUG, "WPS: R-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_hash()
1477 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_r_hash()
1490 addr[0] = wps->snonce; in wps_build_r_hash()
1506 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_r_hash()
1520 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_snonce1()
1530 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_r_snonce2()
/external/scapy/scapy/modules/krack/
Dcrypto.py33 def customPRF512(key, amac, smac, anonce, snonce): argument
36 B = "".join(sorted([amac, smac]) + sorted([anonce, snonce]))
Dautomaton.py169 snonce = client_nonce
174 self.ptk = customPRF512(pmk, amac, smac, anonce, snonce)
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c810 const u8 *anonce, const u8 *snonce, in wpa_write_ftie() argument
833 if (snonce) in wpa_write_ftie()
834 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
843 if (snonce) in wpa_write_ftie()
844 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
2520 u8 *anonce, *snonce; in wpa_sm_write_assoc_resp_ies() local
2608 snonce = sm->SNonce; in wpa_sm_write_assoc_resp_ies()
2696 snonce = NULL; in wpa_sm_write_assoc_resp_ies()
2708 anonce, snonce, pos, end - pos, in wpa_sm_write_assoc_resp_ies()
3105 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
[all …]
Dwpa_auth_i.h299 const u8 *anonce, const u8 *snonce,
Dwpa_auth.h507 size_t pmk_len, const u8 *snonce, const u8 *anonce,
Dwpa_auth.c59 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
2285 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, in wpa_derive_ptk() argument
2330 sm->wpa_auth->addr, sm->addr, sm->ANonce, snonce, in wpa_derive_ptk()
2338 size_t pmk_len, const u8 *snonce, const u8 *anonce, in fils_auth_pmk_to_ptk() argument
2357 snonce, anonce, dhss, dhss_len, in fils_auth_pmk_to_ptk()
2397 res = fils_key_auth_sk(ick, ick_len, snonce, anonce, in fils_auth_pmk_to_ptk()
2409 os_memcpy(sm->SNonce, snonce, FILS_NONCE_LEN); in fils_auth_pmk_to_ptk()
/external/wpa_supplicant_8/wpa_supplicant/
Dsme.c1721 const u8 *snonce, *anonce; in sme_associate() local
1745 &params.fils_kek_len, &snonce, in sme_associate()
1793 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in sme_associate()