Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ft.c54 return wpa_pmk_r1_to_ptk(sm->pmk_r1, sm->pmk_r1_len, sm->snonce, anonce, in wpa_derive_ptk_ft()
304 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
314 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
428 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
490 const u8 *anonce, *snonce; in wpa_ft_process_response() local
539 snonce = ftie->snonce; in wpa_ft_process_response()
550 snonce = ftie->snonce; in wpa_ft_process_response()
553 if (os_memcmp(snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
556 snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
558 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
[all …]
Dwpa.c553 sm->own_addr, sm->bssid, sm->snonce, in wpa_derive_ptk()
605 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
612 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
680 if (wpa_supplicant_send_2_of_4(sm, sm->bssid, key, ver, sm->snonce, in wpa_supplicant_process_1_of_4()
4050 size_t *kek_len, const u8 **snonce, in fils_build_assoc_req() argument
4159 *snonce = sm->fils_nonce; in fils_build_assoc_req()
4161 *snonce, FILS_NONCE_LEN); in fils_build_assoc_req()
Dwpa_i.h26 u8 snonce[WPA_NONCE_LEN]; member
Dwpa.h456 size_t *kek_len, const u8 **snonce,
/external/wpa_supplicant_8/src/common/
Dwpa_common.h315 u8 snonce[WPA_NONCE_LEN]; member
323 u8 snonce[WPA_NONCE_LEN]; member
353 const u8 *snonce, const u8 *anonce, const u8 *dh_ss,
358 const u8 *snonce, const u8 *anonce, const u8 *dhss,
362 int fils_key_auth_sk(const u8 *ick, size_t ick_len, const u8 *snonce,
387 int wpa_pmk_r1_to_ptk(const u8 *pmk_r1, size_t pmk_r1_len, const u8 *snonce,
Dwpa_common.c478 const u8 *snonce, const u8 *anonce, const u8 *dh_ss, in fils_rmsk_to_pmk() argument
498 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
502 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
552 const u8 *snonce, const u8 *anonce, const u8 *dhss, in fils_pmk_to_ptk() argument
584 os_memcpy(pos, snonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
628 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
662 int fils_key_auth_sk(const u8 *ick, size_t ick_len, const u8 *snonce, in fils_key_auth_sk() argument
677 wpa_hexdump(MSG_DEBUG, "FILS: SNonce", snonce, FILS_NONCE_LEN); in fils_key_auth_sk()
687 addr[0] = snonce; in fils_key_auth_sk()
723 addr[1] = snonce; in fils_key_auth_sk()
[all …]
/external/wpa_supplicant_8/src/wps/
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()
Dwps_i.h57 u8 snonce[2 * WPS_SECRET_NONCE_LEN]; member
Dwps_registrar.c1483 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash()
1485 wpa_hexdump(MSG_DEBUG, "WPS: R-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_hash()
1487 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_r_hash()
1500 addr[0] = wps->snonce; in wps_build_r_hash()
1516 addr[0] = wps->snonce + WPS_SECRET_NONCE_LEN; in wps_build_r_hash()
1530 wpabuf_put_data(msg, wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_r_snonce1()
1540 wpabuf_put_data(msg, wps->snonce + WPS_SECRET_NONCE_LEN, in wps_build_r_snonce2()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c808 const u8 *anonce, const u8 *snonce, in wpa_write_ftie() argument
831 if (snonce) in wpa_write_ftie()
832 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
841 if (snonce) in wpa_write_ftie()
842 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
2418 u8 *anonce, *snonce; in wpa_sm_write_assoc_resp_ies() local
2480 snonce = sm->SNonce; in wpa_sm_write_assoc_resp_ies()
2538 snonce = NULL; in wpa_sm_write_assoc_resp_ies()
2541 anonce, snonce, pos, end - pos, in wpa_sm_write_assoc_resp_ies()
2905 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
[all …]
Dwpa_auth_i.h290 const u8 *anonce, const u8 *snonce,
Dwpa_auth.c57 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
2167 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, in wpa_derive_ptk() argument
2187 sm->wpa_auth->addr, sm->addr, sm->ANonce, snonce, in wpa_derive_ptk()
2195 size_t pmk_len, const u8 *snonce, const u8 *anonce, in fils_auth_pmk_to_ptk() argument
2206 snonce, anonce, dhss, dhss_len, in fils_auth_pmk_to_ptk()
2251 res = fils_key_auth_sk(ick, ick_len, snonce, anonce, in fils_auth_pmk_to_ptk()
2263 os_memcpy(sm->SNonce, snonce, FILS_NONCE_LEN); in fils_auth_pmk_to_ptk()
Dwpa_auth.h446 size_t pmk_len, const u8 *snonce, const u8 *anonce,
/external/scapy/scapy/modules/krack/
Dcrypto.py33 def customPRF512(key, amac, smac, anonce, snonce): argument
36 B = "".join(sorted([amac, smac]) + sorted([anonce, snonce]))
Dautomaton.py169 snonce = client_nonce
174 self.ptk = customPRF512(pmk, amac, smac, anonce, snonce)
/external/wpa_supplicant_8/wpa_supplicant/
Dsme.c1458 const u8 *snonce, *anonce; in sme_associate() local
1482 &params.fils_kek_len, &snonce, in sme_associate()
1530 os_memcpy(nonces, snonce, FILS_NONCE_LEN); in sme_associate()