Home
last modified time | relevance | path

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

/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa_ft.c83 ret = wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->pmk_r1_len, sm->snonce, in wpa_derive_ptk_ft()
366 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
380 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
392 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
536 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
643 if (os_memcmp(parse.fte_snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
648 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
690 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
711 if (wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->pmk_r1_len, sm->snonce, in wpa_ft_process_response()
1080 if (os_memcmp(parse.fte_snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp()
[all …]
H A Dwpa.c721 sm->own_addr, wpa_sm_get_auth_addr(sm), sm->snonce, in wpa_derive_ptk()
886 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4_wpa()
893 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4_wpa()
906 sm->snonce, sm->assoc_wpa_ie, in wpa_supplicant_process_1_of_4_wpa()
988 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
995 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
1109 sm->snonce, kde, kde_len, ptk) < 0) in wpa_supplicant_process_1_of_4()
5990 size_t *kek_len, const u8 **snonce, in fils_build_assoc_req() argument
6108 *snonce = sm->fils_nonce; in fils_build_assoc_req()
6110 *snonce, FILS_NONCE_LEN); in fils_build_assoc_req()
H A Dwpa_i.h32 u8 snonce[WPA_NONCE_LEN]; member
H A Dwpa.h603 size_t *kek_len, const u8 **snonce,
/freebsd/contrib/wpa/src/common/
H A Dwpa_common.h409 u8 snonce[WPA_NONCE_LEN]; member
417 u8 snonce[WPA_NONCE_LEN]; member
425 u8 snonce[WPA_NONCE_LEN]; member
469 const u8 *snonce, const u8 *anonce, const u8 *dh_ss,
474 const u8 *snonce, const u8 *anonce, const u8 *dhss,
478 int fils_key_auth_sk(const u8 *ick, size_t ick_len, const u8 *snonce,
507 int wpa_pmk_r1_to_ptk(const u8 *pmk_r1, size_t pmk_r1_len, const u8 *snonce,
H A Dwpa_common.c593 const u8 *snonce, const u8 *anonce, const u8 *dh_ss, in fils_rmsk_to_pmk() argument
613 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
617 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
667 const u8 *snonce, const u8 *anonce, const u8 *dhss, in fils_pmk_to_ptk() argument
703 os_memcpy(pos, snonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
760 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
802 int fils_key_auth_sk(const u8 *ick, size_t ick_len, const u8 *snonce, in fils_key_auth_sk() argument
817 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_key_auth_sk()
827 addr[0] = snonce; in fils_key_auth_sk()
863 addr[1] = snonce; in fils_key_auth_sk()
[all …]
H A Dcommon_module_tests.c702 const u8 snonce[] = { in pasn_test_no_pasn_auth() local
731 spa, aa, snonce, anonce, in pasn_test_no_pasn_auth()
/freebsd/contrib/wpa/src/wps/
H A 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()
H A Dwps_i.h57 u8 snonce[2 * WPS_SECRET_NONCE_LEN]; member
H A Dwps_registrar.c1460 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash()
1462 wpa_hexdump(MSG_DEBUG, "WPS: R-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_hash()
1464 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_r_hash()
1477 addr[0] = wps->snonce; in wps_build_r_hash()
1493 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_r_hash()
1507 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_snonce1()
1517 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_r_snonce2()
/freebsd/contrib/wpa/src/ap/
H A Dwpa_auth_ft.c814 const u8 *anonce, const u8 *snonce, in wpa_write_ftie() argument
853 if (snonce) in wpa_write_ftie()
854 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
866 if (snonce) in wpa_write_ftie()
867 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
877 if (snonce) in wpa_write_ftie()
878 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
2573 u8 *anonce, *snonce; in wpa_sm_write_assoc_resp_ies() local
2660 snonce = sm->SNonce; in wpa_sm_write_assoc_resp_ies()
2748 snonce = NULL; in wpa_sm_write_assoc_resp_ies()
[all …]
H A Dwpa_auth_i.h331 const u8 *anonce, const u8 *snonce,
H A Dwpa_auth.h569 size_t pmk_len, const u8 *snonce, const u8 *anonce,
H A Dwpa_auth.c61 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
2859 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, argument
2927 sm->ANonce, snonce, ptk, akmp,
2952 size_t pmk_len, const u8 *snonce, const u8 *anonce, argument
2971 snonce, anonce, dhss, dhss_len,
3024 res = fils_key_auth_sk(ick, ick_len, snonce, anonce,
3037 os_memcpy(sm->SNonce, snonce, FILS_NONCE_LEN);
/freebsd/contrib/bearssl/test/
H A Dtest_crypto.c4970 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()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dsme.c2249 const u8 *snonce, *anonce; in sme_associate() local
2273 &params.fils_kek_len, &snonce, in sme_associate()
2321 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in sme_associate()