| /freebsd-12-stable/contrib/wpa/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 | 619 sm->own_addr, sm->bssid, sm->snonce, in wpa_derive_ptk() 725 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4() 732 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4() 830 if (wpa_supplicant_send_2_of_4(sm, sm->bssid, key, ver, sm->snonce, in wpa_supplicant_process_1_of_4() 4574 size_t *kek_len, const u8 **snonce, in fils_build_assoc_req() argument 4692 *snonce = sm->fils_nonce; in fils_build_assoc_req() 4694 *snonce, FILS_NONCE_LEN); in fils_build_assoc_req()
|
| D | wpa.h | 547 size_t *kek_len, const u8 **snonce,
|
| /freebsd-12-stable/contrib/wpa/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 | 702 const u8 snonce[] = { in pasn_test_no_pasn_auth() local 731 spa, aa, snonce, anonce, in pasn_test_no_pasn_auth()
|
| /freebsd-12-stable/contrib/wpa/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 | 1461 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash() 1463 wpa_hexdump(MSG_DEBUG, "WPS: R-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 1465 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_r_hash() 1478 addr[0] = wps->snonce; in wps_build_r_hash() 1494 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_r_hash() 1508 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_snonce1() 1518 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_r_snonce2()
|
| /freebsd-12-stable/contrib/wpa/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 | 505 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, 2292 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, in wpa_derive_ptk() argument 2336 sm->wpa_auth->addr, sm->addr, sm->ANonce, snonce, in wpa_derive_ptk() 2344 size_t pmk_len, const u8 *snonce, const u8 *anonce, in fils_auth_pmk_to_ptk() argument 2362 snonce, anonce, dhss, dhss_len, in fils_auth_pmk_to_ptk() 2402 res = fils_key_auth_sk(ick, ick_len, snonce, anonce, in fils_auth_pmk_to_ptk() 2414 os_memcpy(sm->SNonce, snonce, FILS_NONCE_LEN); in fils_auth_pmk_to_ptk()
|
| /freebsd-12-stable/contrib/wpa/wpa_supplicant/ |
| D | sme.c | 1749 const u8 *snonce, *anonce; in sme_associate() local 1773 ¶ms.fils_kek_len, &snonce, in sme_associate() 1821 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in sme_associate()
|
| /freebsd-12-stable/contrib/bearssl/test/ |
| D | test_crypto.c | 4970 const char *snonce; member 5017 hextobin(nonce, KAT_CHACHA20[u].snonce); in test_ChaCha20_generic() 5090 const char *snonce; member 5123 hextobin(nonce, KAT_POLY1305[u].snonce); in test_Poly1305_inner()
|