/freebsd/contrib/wpa/src/pasn/ |
H A D | pasn_common.c | 23 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 …]
|
H A D | pasn_initiator.c | 29 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 …]
|
H A D | pasn_responder.c | 29 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 …]
|
H A D | pasn_common.h | 156 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 …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | pasn_supplicant.c | 430 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 …]
|
H A D | wpa_supplicant_i.h | 1584 struct pasn_data pasn; member
|
/freebsd/usr.sbin/wpa/src/pasn/ |
H A D | Makefile | 10 .PATH: ${WPA_DISTDIR}/src/pasn 15 CFLAGS+= -I${WPA_DISTDIR}/src/pasn -I${WPA_DISTDIR}/src
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | ftm-initiator.c | 53 struct iwl_mvm_ftm_pasn_entry *pasn = kzalloc(sizeof(*pasn), in iwl_mvm_ftm_add_pasn_sta() 59 if (!pasn) in iwl_mvm_ftm_add_pasn_sta() 64 pasn->cipher = iwl_mvm_cipher_to_location_cipher(cipher); in iwl_mvm_ftm_add_pasn_sta() 66 switch (pasn->cipher) { in iwl_mvm_ftm_add_pasn_sta() 105 (hltk_len && hltk_len != sizeof(pasn->hltk))) { in iwl_mvm_ftm_add_pasn_sta() 116 memcpy(pasn->addr, addr, sizeof(pasn->addr)); in iwl_mvm_ftm_add_pasn_sta() 119 memcpy(pasn->hltk, hltk, sizeof(pasn in iwl_mvm_ftm_add_pasn_sta() 47 struct iwl_mvm_ftm_pasn_entry *pasn = kzalloc(sizeof(*pasn), iwl_mvm_ftm_add_pasn_sta() local [all...] |
/freebsd/contrib/wpa/src/ap/ |
H A D | ieee802_11.c | 787 if (sta->pasn && sta->pasn->ecdh) in use_anti_clogging() 2427 struct pasn_data *pasn = sta->pasn; in pasn_fils_auth_resp() local 2428 struct pasn_fils *fils = &pasn->fils; in pasn_fils_auth_resp() 2439 if (!pasn->secret) { in pasn_fils_auth_resp() 2452 ret = fils_rmsk_to_pmk(pasn_get_akmp(pasn), msk, msk_len, fils->nonce, in pasn_fils_auth_resp() 2460 wpabuf_head(pasn->secret), in pasn_fils_auth_resp() 2461 wpabuf_len(pasn->secret), in pasn_fils_auth_resp() 2462 pasn_get_ptk(sta->pasn), pasn_get_akmp(sta->pasn), in pasn_fils_auth_resp() 2463 pasn_get_cipher(sta->pasn), sta->pasn->kdk_len); in pasn_fils_auth_resp() 2469 if (pasn->secure_ltf) { in pasn_fils_auth_resp() [all …]
|
H A D | sta_info.c | 163 if (sta->pasn) { in ap_free_sta_pasn() 167 if (sta->pasn->ecdh) in ap_free_sta_pasn() 168 crypto_ecdh_deinit(sta->pasn->ecdh); in ap_free_sta_pasn() 170 wpabuf_free(sta->pasn->secret); in ap_free_sta_pasn() 171 sta->pasn->secret = NULL; in ap_free_sta_pasn() 174 sae_clear_data(&sta->pasn->sae); in ap_free_sta_pasn() 179 wpabuf_free(sta->pasn->fils.erp_resp); in ap_free_sta_pasn() 180 sta->pasn->fils.erp_resp = NULL; in ap_free_sta_pasn() 183 pasn_data_deinit(sta->pasn); in ap_free_sta_pasn() 184 sta->pasn = NULL; in ap_free_sta_pasn()
|
H A D | sta_info.h | 328 struct pasn_data *pasn; member
|
/freebsd/usr.sbin/wpa/src/ |
H A D | Makefile | 11 pasn \
|
/freebsd/contrib/wpa/src/ |
H A D | Makefile | 1 …rs eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet p2p pae pasn radius rsn_supp tls…
|
/freebsd/share/mk/ |
H A D | src.libnames.mk | 684 LIBWPAPASNDIR= ${_LIB_OBJTOP}/usr.sbin/wpa/src/pasn
|