/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa_ft.c | 78 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 …]
|
D | wpa_i.h | 31 u8 snonce[WPA_NONCE_LEN]; member
|
D | wpa.c | 616 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()
|
D | wpa.h | 547 size_t *kek_len, const u8 **snonce,
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_common.h | 345 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,
|
D | wpa_common.c | 518 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 …]
|
D | common_module_tests.c | 735 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/ |
D | wps_enrollee.c | 41 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()
|
D | wps_i.h | 57 u8 snonce[2 * WPS_SECRET_NONCE_LEN]; member
|
D | wps_registrar.c | 1473 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/ |
D | crypto.py | 33 def customPRF512(key, amac, smac, anonce, snonce): argument 36 B = "".join(sorted([amac, smac]) + sorted([anonce, snonce]))
|
D | automaton.py | 169 snonce = client_nonce 174 self.ptk = customPRF512(pmk, amac, smac, anonce, snonce)
|
/external/wpa_supplicant_8/src/ap/ |
D | wpa_auth_ft.c | 810 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 …]
|
D | wpa_auth_i.h | 299 const u8 *anonce, const u8 *snonce,
|
D | wpa_auth.h | 507 size_t pmk_len, const u8 *snonce, const u8 *anonce,
|
D | wpa_auth.c | 59 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/ |
D | sme.c | 1721 const u8 *snonce, *anonce; in sme_associate() local 1745 ¶ms.fils_kek_len, &snonce, in sme_associate() 1793 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in sme_associate()
|