/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa_ft.c | 45 return wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->snonce, anonce, sm->own_addr, in wpa_derive_ptk_ft() 258 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies() 352 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request() 425 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response() 428 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 430 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 466 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 476 if (wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->snonce, ftie->anonce, in wpa_ft_process_response() 703 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp() 706 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc_resp() [all …]
|
D | wpa_i.h | 28 u8 snonce[WPA_NONCE_LEN]; member
|
D | wpa.c | 438 sm->own_addr, sm->bssid, sm->snonce, in wpa_derive_ptk() 490 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4() 497 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4() 538 if (wpa_supplicant_send_2_of_4(sm, sm->bssid, key, ver, sm->snonce, in wpa_supplicant_process_1_of_4()
|
/external/wpa_supplicant_8/src/ap/ |
D | wpa_auth_ft.c | 98 const u8 *anonce, const u8 *snonce, in wpa_write_ftie() argument 118 if (snonce) in wpa_write_ftie() 119 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie() 646 u8 *anonce, *snonce; in wpa_sm_write_assoc_resp_ies() local 685 snonce = sm->SNonce; in wpa_sm_write_assoc_resp_ies() 712 snonce = NULL; in wpa_sm_write_assoc_resp_ies() 714 res = wpa_write_ftie(conf, r0kh_id, r0kh_id_len, anonce, snonce, pos, in wpa_sm_write_assoc_resp_ies() 842 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req() 1038 if (os_memcmp(ftie->snonce, sm->SNonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc() 1041 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc()
|
D | wpa_auth_i.h | 251 const u8 *anonce, const u8 *snonce,
|
D | wpa_auth.c | 46 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, 2030 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, in wpa_derive_ptk() argument 2040 sm->wpa_auth->addr, sm->addr, sm->ANonce, snonce, in wpa_derive_ptk()
|
/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 | 1433 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash() 1435 wpa_hexdump(MSG_DEBUG, "WPS: R-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 1437 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 1450 addr[0] = wps->snonce; in wps_build_r_hash() 1466 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_r_hash() 1480 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_snonce1() 1490 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_r_snonce2()
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_common.h | 316 u8 snonce[WPA_NONCE_LEN]; member 360 int wpa_pmk_r1_to_ptk(const u8 *pmk_r1, const u8 *snonce, const u8 *anonce,
|
D | wpa_common.c | 962 int wpa_pmk_r1_to_ptk(const u8 *pmk_r1, const u8 *snonce, const u8 *anonce, in wpa_pmk_r1_to_ptk() argument 979 os_memcpy(pos, snonce, WPA_NONCE_LEN); in wpa_pmk_r1_to_ptk() 1003 addr[2] = snonce; in wpa_pmk_r1_to_ptk()
|