Home
last modified time | relevance | path

Searched refs:anonce (Results 1 – 25 of 26) sorted by relevance

12

/hostap-latest/tests/hwsim/
Dtest_ap_psk.py1552 anonce = msg['rsn_key_nonce']
1556 (ptk, kck, kek) = pmk_to_ptk(pmk, addr, bssid, snonce, anonce)
1566 if anonce != msg['rsn_key_nonce']:
1581 anonce = msg1['rsn_key_nonce']
1584 if anonce != msg2['rsn_key_nonce']:
1587 (ptk, kck, kek) = pmk_to_ptk(pmk, addr, bssid, snonce, anonce)
1596 if anonce != msg['rsn_key_nonce']:
1609 anonce = msg1['rsn_key_nonce']
1611 if anonce != msg2['rsn_key_nonce']:
1614 (ptk, kck, kek) = pmk_to_ptk(pmk, addr, bssid, snonce, anonce)
[all …]
Dtest_ocv.py360 self.anonce = None
404 self.anonce = self.msg['rsn_key_nonce']
406 self.snonce, self.anonce)
419 if self.anonce != self.msg['rsn_key_nonce'] or self.msg["rsn_key_info"] != 138:
430 if self.anonce != self.msg['rsn_key_nonce'] or self.msg["rsn_key_info"] != 5066:
714 self.anonce = None
760 self.anonce = self.msg['rsn_key_nonce']
767 self.snonce, self.anonce)
781 msg = build_eapol_key_3_4(self.anonce, self.kck, wrapped,
798 msg = build_eapol_key_3_4(self.anonce, self.kck, wrapped,
/hostap-latest/src/rsn_supp/
Dwpa_ft.c41 const u8 *anonce = key->key_nonce; in wpa_derive_ptk_ft() local
84 anonce, sm->own_addr, wpa_sm_get_auth_addr(sm), in wpa_derive_ptk_ft()
207 const u8 *anonce, const u8 *pmk_name, in wpa_ft_gen_req_ies() argument
345 rsnxe_used = wpa_key_mgmt_sae(sm->key_mgmt) && anonce && in wpa_ft_gen_req_ies()
349 if (anonce && sm->ft_rsnxe_used) { in wpa_ft_gen_req_ies()
367 if (anonce) in wpa_ft_gen_req_ies()
368 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
381 if (anonce) in wpa_ft_gen_req_ies()
382 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
393 if (anonce) in wpa_ft_gen_req_ies()
[all …]
Dwpa_i.h33 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */ member
Dwpa.c943 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4_wpa()
1148 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
2668 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4_wpa()
2836 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4()
5773 return sm->anonce; in wpa_sm_get_anonce()
6360 const u8 **anonce, in fils_build_assoc_req() argument
6480 *anonce = sm->fils_anonce; in fils_build_assoc_req()
6482 *anonce, FILS_NONCE_LEN); in fils_build_assoc_req()
Dwpa.h652 const u8 **anonce,
/hostap-latest/src/ap/
Dieee802_11_auth.c50 u8 *anonce; member
108 os_free(query->anonce); in hostapd_acl_query_free()
175 if (query->anonce && in hostapd_radius_acl_query()
179 query->anonce, WPA_NONCE_LEN)) { in hostapd_radius_acl_query()
722 int key_mgmt, const u8 *anonce, in hostapd_acl_req_radius_psk() argument
735 if (anonce) in hostapd_acl_req_radius_psk()
736 query->anonce = os_memdup(anonce, WPA_NONCE_LEN); in hostapd_acl_req_radius_psk()
Dieee802_11_auth.h40 int key_mgmt, const u8 *anonce,
Dwpa_auth_ft.c814 const u8 *anonce, const u8 *snonce, in wpa_write_ftie() argument
851 if (anonce) in wpa_write_ftie()
852 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
864 if (anonce) in wpa_write_ftie()
865 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
875 if (anonce) in wpa_write_ftie()
876 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
2573 u8 *anonce, *snonce; in wpa_sm_write_assoc_resp_ies() local
2659 anonce = sm->ANonce; in wpa_sm_write_assoc_resp_ies()
2747 anonce = NULL; in wpa_sm_write_assoc_resp_ies()
[all …]
Dwpa_auth_i.h336 const u8 *anonce, const u8 *snonce,
Dwpa_auth.h394 const u8 *anonce,
592 size_t pmk_len, const u8 *snonce, const u8 *anonce,
Dwpa_auth_glue.c1556 const u8 *anonce, in hostapd_request_radius_psk() argument
1563 wpa_hexdump(MSG_DEBUG, "ANonce", anonce, WPA_NONCE_LEN); in hostapd_request_radius_psk()
1565 hostapd_acl_req_radius_psk(hapd, addr, key_mgmt, anonce, eapol, in hostapd_request_radius_psk()
Dwpa_auth.c2954 size_t pmk_len, const u8 *snonce, const u8 *anonce, argument
2973 snonce, anonce, dhss, dhss_len,
3026 res = fils_key_auth_sk(ick, ick_len, snonce, anonce,
3040 os_memcpy(sm->ANonce, anonce, FILS_NONCE_LEN);
7020 const u8 *anonce = sm->ANonce; local
7026 anonce = anonce_buf;
7033 anonce, NULL, 0, 0, 0);
/hostap-latest/src/common/
Dwpa_common.h409 u8 anonce[WPA_NONCE_LEN]; member
417 u8 anonce[WPA_NONCE_LEN]; member
425 u8 anonce[WPA_NONCE_LEN]; member
470 const u8 *snonce, const u8 *anonce, const u8 *dh_ss,
475 const u8 *snonce, const u8 *anonce, const u8 *dhss,
480 const u8 *anonce, const u8 *sta_addr, const u8 *bssid,
509 const u8 *anonce, const u8 *sta_addr, const u8 *bssid,
Dwpa_common.c593 const u8 *snonce, const u8 *anonce, const u8 *dh_ss, in fils_rmsk_to_pmk() argument
614 wpa_hexdump(MSG_DEBUG, "FILS: ANonce", anonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
618 os_memcpy(&nonces[FILS_NONCE_LEN], anonce, FILS_NONCE_LEN); in fils_rmsk_to_pmk()
667 const u8 *snonce, const u8 *anonce, const u8 *dhss, in fils_pmk_to_ptk() argument
705 os_memcpy(pos, anonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
761 wpa_hexdump(MSG_DEBUG, "FILS: ANonce", anonce, FILS_NONCE_LEN); in fils_pmk_to_ptk()
803 const u8 *anonce, const u8 *sta_addr, const u8 *bssid, in fils_key_auth_sk() argument
818 wpa_hexdump(MSG_DEBUG, "FILS: ANonce", anonce, FILS_NONCE_LEN); in fils_key_auth_sk()
829 addr[1] = anonce; in fils_key_auth_sk()
862 addr[0] = anonce; in fils_key_auth_sk()
[all …]
Dcommon_module_tests.c696 const u8 anonce[] = { in pasn_test_no_pasn_auth() local
731 spa, aa, snonce, anonce, in pasn_test_no_pasn_auth()
/hostap-latest/wlantest/
Drx_tdls.c85 wpa_hexdump(MSG_DEBUG, "TDLS ANonce", f->anonce, WPA_NONCE_LEN); in tdls_derive_tpk()
94 if (os_memcmp(f->anonce, f->snonce, WPA_NONCE_LEN) < 0) { in tdls_derive_tpk()
95 nonce[0] = f->anonce; in tdls_derive_tpk()
99 nonce[1] = f->anonce; in tdls_derive_tpk()
341 os_memcpy(tdls->rnonce, f->anonce, WPA_NONCE_LEN); in rx_data_tdls_setup_response()
444 if (os_memcmp(tdls->rnonce, f->anonce, WPA_NONCE_LEN) != 0) { in rx_data_tdls_setup_confirm()
Drx_mgmt.c708 os_memcpy(sta->anonce, elems.fils_nonce, FILS_NONCE_LEN); in process_fils_auth()
775 os_memcpy(sta->anonce, parse.fte_anonce, WPA_NONCE_LEN); in process_ft_auth()
1042 sta->snonce, sta->anonce, NULL, 0, in try_rmsk()
1047 sta->snonce, sta->anonce, NULL, 0, in try_rmsk()
1067 aad[3] = sta->anonce; in try_rmsk()
1285 aad[2] = sta->anonce; in decrypt_fils_assoc_resp()
1567 const u8 *anonce, *snonce, *fte_mic; in rx_mgmt_reassoc_req() local
1632 anonce = fte->anonce; in rx_mgmt_reassoc_req()
1645 anonce = fte->anonce; in rx_mgmt_reassoc_req()
1660 if (os_memcmp(anonce, sta->anonce, WPA_NONCE_LEN) != 0) { in rx_mgmt_reassoc_req()
[all …]
Drx_eapol.c138 os_memcpy(sta->anonce, hdr->key_nonce, WPA_NONCE_LEN); in rx_data_eapol_key_1_of_4()
233 sta->snonce, sta->anonce, sa, in try_pmk()
241 aa, sa, sta->anonce, in try_pmk()
975 if (os_memcmp(sta->anonce, hdr->key_nonce, WPA_NONCE_LEN) != 0) { in rx_data_eapol_key_3_of_4()
980 os_memcpy(sta->anonce, hdr->key_nonce, WPA_NONCE_LEN); in rx_data_eapol_key_3_of_4()
Dwlantest.h78 u8 anonce[WPA_NONCE_LEN]; member
/hostap-latest/tests/
Dcipher-and-key-mgmt-testing.txt279 > raw RESEND_M1 <DUT MAC address> change-anonce
317 > raw RESEND_M1 <DUT MAC address> change-anonce
341 > GET anonce
345 > GET anonce
/hostap-latest/src/pasn/
Dpasn_common.h28 u8 anonce[FILS_NONCE_LEN]; member
Dpasn_initiator.c307 u8 anonce[FILS_NONCE_LEN]; in wpas_pasn_wd_fils_rx() local
378 os_memcpy(anonce, elems.fils_nonce, FILS_NONCE_LEN); in wpas_pasn_wd_fils_rx()
423 pasn->fils.nonce, anonce, NULL, 0, in wpas_pasn_wd_fils_rx()
Dpasn_responder.c248 wpabuf_put_data(buf, fils->anonce, FILS_NONCE_LEN); in pasn_get_fils_wd()
/hostap-latest/wpa_supplicant/
Dsme.c2252 const u8 *snonce, *anonce; in sme_associate() local
2277 &anonce, in sme_associate()
2325 os_memcpy(nonces + FILS_NONCE_LEN, anonce, FILS_NONCE_LEN); in sme_associate()

12