/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa_ft.c | 46 wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->snonce, anonce, sm->own_addr, in wpa_derive_ptk_ft() 263 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies() 363 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request() 437 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response() 440 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 442 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 476 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 487 wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->snonce, ftie->anonce, sm->own_addr, in wpa_ft_process_response() 719 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp() 722 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc_resp() [all …]
|
D | wpa_i.h | 26 u8 snonce[WPA_NONCE_LEN]; member
|
D | wpa.c | 360 sm->own_addr, sm->bssid, sm->snonce, key->key_nonce, in wpa_derive_ptk() 414 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4() 421 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4() 434 if (wpa_supplicant_send_2_of_4(sm, sm->bssid, key, ver, sm->snonce, in wpa_supplicant_process_1_of_4()
|
/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/ |
D | wpa_ft.c | 51 wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->snonce, anonce, sm->own_addr, in wpa_derive_ptk_ft() 234 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies() 437 if (os_get_random(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request() 539 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 549 wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->snonce, ftie->anonce, sm->own_addr, in wpa_ft_process_response() 855 if (os_get_random(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_start_over_ds()
|
D | wpa_i.h | 30 u8 snonce[WPA_NONCE_LEN]; member
|
D | wpa.c | 369 sm->own_addr, sm->bssid, sm->snonce, key->key_nonce, in wpa_derive_ptk() 422 if (os_get_random(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4() 429 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4() 442 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 | 77 const u8 *anonce, const u8 *snonce, in wpa_write_ftie() argument 97 if (snonce) in wpa_write_ftie() 98 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie() 592 u8 *anonce, *snonce; in wpa_sm_write_assoc_resp_ies() local 632 snonce = sm->SNonce; in wpa_sm_write_assoc_resp_ies() 659 snonce = NULL; in wpa_sm_write_assoc_resp_ies() 661 res = wpa_write_ftie(conf, r0kh_id, r0kh_id_len, anonce, snonce, pos, in wpa_sm_write_assoc_resp_ies() 791 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req() 984 if (os_memcmp(ftie->snonce, sm->SNonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc() 987 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc()
|
D | wpa_auth_i.h | 221 const u8 *anonce, const u8 *snonce,
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
D | wps_enrollee.c | 55 if (os_get_random(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash() 57 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_hash() 59 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_e_hash() 72 addr[0] = wps->snonce; in wps_build_e_hash() 88 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_e_hash() 102 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_snonce1() 112 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_e_snonce2()
|
D | wps_registrar.c | 931 if (os_get_random(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash() 933 wpa_hexdump(MSG_DEBUG, "WPS: R-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 935 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 948 addr[0] = wps->snonce; in wps_build_r_hash() 964 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_r_hash() 978 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_snonce1() 988 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_r_snonce2()
|
D | wps_i.h | 55 u8 snonce[2 * WPS_SECRET_NONCE_LEN]; member
|
/external/wpa_supplicant_6/wpa_supplicant/src/common/ |
D | wpa_common.h | 276 u8 snonce[WPA_NONCE_LEN]; member 314 void wpa_pmk_r1_to_ptk(const u8 *pmk_r1, const u8 *snonce, const u8 *anonce,
|
D | wpa_common.c | 523 void wpa_pmk_r1_to_ptk(const u8 *pmk_r1, const u8 *snonce, const u8 *anonce, in wpa_pmk_r1_to_ptk() argument 538 os_memcpy(pos, snonce, WPA_NONCE_LEN); in wpa_pmk_r1_to_ptk() 557 addr[2] = snonce; in wpa_pmk_r1_to_ptk()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_enrollee.c | 51 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash() 53 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_hash() 55 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_e_hash() 68 addr[0] = wps->snonce; in wps_build_e_hash() 84 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_e_hash() 98 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_snonce1() 108 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_e_snonce2()
|
D | wps_i.h | 54 u8 snonce[2 * WPS_SECRET_NONCE_LEN]; member
|
D | wps_registrar.c | 1279 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash() 1281 wpa_hexdump(MSG_DEBUG, "WPS: R-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 1283 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 1296 addr[0] = wps->snonce; in wps_build_r_hash() 1312 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_r_hash() 1326 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_snonce1() 1336 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 | 278 u8 snonce[WPA_NONCE_LEN]; member 322 void wpa_pmk_r1_to_ptk(const u8 *pmk_r1, const u8 *snonce, const u8 *anonce,
|
D | wpa_common.c | 805 void wpa_pmk_r1_to_ptk(const u8 *pmk_r1, const u8 *snonce, const u8 *anonce, in wpa_pmk_r1_to_ptk() argument 820 os_memcpy(pos, snonce, WPA_NONCE_LEN); in wpa_pmk_r1_to_ptk() 839 addr[2] = snonce; in wpa_pmk_r1_to_ptk()
|