Home
last modified time | relevance | path

Searched refs:pasn (Results 1 – 14 of 14) sorted by relevance

/hostap-latest/src/pasn/
Dpasn_common.c23 struct pasn_data *pasn = os_zalloc(sizeof(struct pasn_data)); in pasn_data_init() local
25 return pasn; in pasn_data_init()
29 void pasn_data_deinit(struct pasn_data *pasn) in pasn_data_deinit() argument
31 bin_clear_free(pasn, sizeof(struct pasn_data)); in pasn_data_deinit()
35 void pasn_register_callbacks(struct pasn_data *pasn, void *cb_ctx, in pasn_register_callbacks() argument
44 if (!pasn) in pasn_register_callbacks()
47 pasn->cb_ctx = cb_ctx; in pasn_register_callbacks()
48 pasn->send_mgmt = send_mgmt; in pasn_register_callbacks()
49 pasn->validate_custom_pmkid = validate_custom_pmkid; in pasn_register_callbacks()
53 void pasn_enable_kdk_derivation(struct pasn_data *pasn) in pasn_enable_kdk_derivation() argument
[all …]
Dpasn_initiator.c29 void pasn_set_initiator_pmksa(struct pasn_data *pasn, in pasn_set_initiator_pmksa() argument
32 if (pasn) in pasn_set_initiator_pmksa()
33 pasn->pmksa = pmksa; in pasn_set_initiator_pmksa()
39 static struct wpabuf * wpas_pasn_wd_sae_commit(struct pasn_data *pasn) in wpas_pasn_wd_sae_commit() argument
44 ret = sae_set_group(&pasn->sae, pasn->group); in wpas_pasn_wd_sae_commit()
50 ret = sae_prepare_commit_pt(&pasn->sae, pasn->pt, in wpas_pasn_wd_sae_commit()
51 pasn->own_addr, pasn->peer_addr, in wpas_pasn_wd_sae_commit()
69 sae_write_commit(&pasn->sae, buf, NULL, 0); in wpas_pasn_wd_sae_commit()
70 pasn->sae.state = SAE_COMMITTED; in wpas_pasn_wd_sae_commit()
76 static int wpas_pasn_wd_sae_rx(struct pasn_data *pasn, struct wpabuf *wd) in wpas_pasn_wd_sae_rx() argument
[all …]
Dpasn_responder.c29 void pasn_set_responder_pmksa(struct pasn_data *pasn, in pasn_set_responder_pmksa() argument
32 if (pasn) in pasn_set_responder_pmksa()
33 pasn->pmksa = pmksa; in pasn_set_responder_pmksa()
40 static int pasn_wd_handle_sae_commit(struct pasn_data *pasn, in pasn_wd_handle_sae_commit() argument
47 int groups[] = { pasn->group, 0 }; in pasn_wd_handle_sae_commit()
75 sae_clear_data(&pasn->sae); in pasn_wd_handle_sae_commit()
76 pasn->sae.state = SAE_NOTHING; in pasn_wd_handle_sae_commit()
78 ret = sae_set_group(&pasn->sae, pasn->group); in pasn_wd_handle_sae_commit()
84 if (!pasn->password || !pasn->pt) { in pasn_wd_handle_sae_commit()
89 ret = sae_prepare_commit_pt(&pasn->sae, pasn->pt, own_addr, peer_addr, in pasn_wd_handle_sae_commit()
[all …]
Dpasn_common.h156 void wpa_pasn_reset(struct pasn_data *pasn);
157 int wpas_pasn_start(struct pasn_data *pasn, const u8 *own_addr,
163 int wpa_pasn_verify(struct pasn_data *pasn, const u8 *own_addr,
169 int wpa_pasn_auth_rx(struct pasn_data *pasn, const u8 *data, size_t len,
171 int wpa_pasn_auth_tx_status(struct pasn_data *pasn,
175 int handle_auth_pasn_1(struct pasn_data *pasn,
178 int handle_auth_pasn_3(struct pasn_data *pasn, const u8 *own_addr,
181 int handle_auth_pasn_resp(struct pasn_data *pasn, const u8 *own_addr,
186 void pasn_data_deinit(struct pasn_data *pasn);
187 void pasn_register_callbacks(struct pasn_data *pasn, void *cb_ctx,
[all …]
/hostap-latest/wpa_supplicant/
Dpasn_supplicant.c430 static void wpas_pasn_initiate_eapol(struct pasn_data *pasn, in wpas_pasn_initiate_eapol() argument
437 eapol_sm_notify_eap_success(pasn->eapol, false); in wpas_pasn_initiate_eapol()
438 eapol_sm_notify_eap_fail(pasn->eapol, false); in wpas_pasn_initiate_eapol()
439 eapol_sm_notify_portControl(pasn->eapol, Auto); in wpas_pasn_initiate_eapol()
442 eapol_conf.fast_reauth = pasn->fast_reauth; in wpas_pasn_initiate_eapol()
445 eapol_sm_notify_config(pasn->eapol, &ssid->eap, &eapol_conf); in wpas_pasn_initiate_eapol()
452 struct pasn_data *pasn = &wpa_s->pasn; in wpas_pasn_reset() local
458 wpa_pasn_reset(pasn); in wpas_pasn_reset()
510 struct pasn_data *pasn = &wpa_s->pasn; in wpas_pasn_auth_start_cb() local
563 pasn_enable_kdk_derivation(pasn); in wpas_pasn_auth_start_cb()
[all …]
Dwpa_supplicant_i.h1595 struct pasn_data pasn; member
/hostap-latest/tests/fuzzing/pasn-resp/
Dpasn-resp.c53 struct pasn_data pasn; in LLVMFuzzerTestOneInput() local
66 os_memset(&pasn, 0, sizeof(pasn)); in LLVMFuzzerTestOneInput()
67 pasn.send_mgmt = pasn_send_mgmt; in LLVMFuzzerTestOneInput()
70 os_memcpy(pasn.own_addr, own_addr, ETH_ALEN); in LLVMFuzzerTestOneInput()
71 os_memcpy(pasn.bssid, bssid, ETH_ALEN); in LLVMFuzzerTestOneInput()
72 pasn.wpa_key_mgmt = WPA_KEY_MGMT_PASN; in LLVMFuzzerTestOneInput()
73 pasn.rsn_pairwise = WPA_CIPHER_CCMP; in LLVMFuzzerTestOneInput()
76 if (handle_auth_pasn_1(&pasn, own_addr, bssid, in LLVMFuzzerTestOneInput()
81 if (handle_auth_pasn_3(&pasn, own_addr, bssid, in LLVMFuzzerTestOneInput()
85 if (pasn.ecdh) { in LLVMFuzzerTestOneInput()
[all …]
DMakefile1 ALL=pasn-resp
29 OBJS += $(SRC)/pasn/pasn_responder.o
31 OBJS += pasn-resp.o
36 pasn-resp: $(OBJS)
40 rm -f pasn-resp *~ *.o *.d ../*~ ../*.o ../*.d
/hostap-latest/tests/fuzzing/pasn-init/
Dpasn-init.c30 struct pasn_data pasn; in LLVMFuzzerTestOneInput() local
39 os_memset(&pasn, 0, sizeof(pasn)); in LLVMFuzzerTestOneInput()
40 pasn.send_mgmt = pasn_send_mgmt; in LLVMFuzzerTestOneInput()
43 if (wpas_pasn_start(&pasn, own_addr, bssid, bssid, WPA_KEY_MGMT_PASN, in LLVMFuzzerTestOneInput()
50 wpa_pasn_auth_rx(&pasn, data, size, &pasn_data); in LLVMFuzzerTestOneInput()
53 wpa_pasn_reset(&pasn); in LLVMFuzzerTestOneInput()
DMakefile1 ALL=pasn-init
30 OBJS += $(SRC)/pasn/pasn_initiator.o
32 OBJS += pasn-init.o
37 pasn-init: $(OBJS)
41 rm -f pasn-init *~ *.o *.d ../*~ ../*.o ../*.d
/hostap-latest/src/ap/
Dieee802_11.c787 if (sta->pasn && sta->pasn->ecdh) in use_anti_clogging()
2429 struct pasn_data *pasn = sta->pasn; in pasn_fils_auth_resp() local
2430 struct pasn_fils *fils = &pasn->fils; in pasn_fils_auth_resp()
2441 if (!pasn->secret) { in pasn_fils_auth_resp()
2454 ret = fils_rmsk_to_pmk(pasn_get_akmp(pasn), msk, msk_len, fils->nonce, in pasn_fils_auth_resp()
2462 wpabuf_head(pasn->secret), in pasn_fils_auth_resp()
2463 wpabuf_len(pasn->secret), in pasn_fils_auth_resp()
2464 pasn_get_ptk(sta->pasn), pasn_get_akmp(sta->pasn), in pasn_fils_auth_resp()
2465 pasn_get_cipher(sta->pasn), sta->pasn->kdk_len); in pasn_fils_auth_resp()
2471 if (pasn->secure_ltf) { in pasn_fils_auth_resp()
[all …]
Dsta_info.c167 if (sta->pasn) { in ap_free_sta_pasn()
171 if (sta->pasn->ecdh) in ap_free_sta_pasn()
172 crypto_ecdh_deinit(sta->pasn->ecdh); in ap_free_sta_pasn()
174 wpabuf_free(sta->pasn->secret); in ap_free_sta_pasn()
175 sta->pasn->secret = NULL; in ap_free_sta_pasn()
178 sae_clear_data(&sta->pasn->sae); in ap_free_sta_pasn()
183 wpabuf_free(sta->pasn->fils.erp_resp); in ap_free_sta_pasn()
184 sta->pasn->fils.erp_resp = NULL; in ap_free_sta_pasn()
187 pasn_data_deinit(sta->pasn); in ap_free_sta_pasn()
188 sta->pasn = NULL; in ap_free_sta_pasn()
Dsta_info.h328 struct pasn_data *pasn; member
/hostap-latest/src/
DMakefile1 …rs eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet p2p pae pasn radius rsn_supp tls…