/hostap-latest/src/common/ |
D | dpp_auth.c | 42 static void dpp_auth_success(struct dpp_authentication *auth) in dpp_auth_success() argument 46 os_memset(auth->Mx, 0, sizeof(auth->Mx)); in dpp_auth_success() 47 auth->Mx_len = 0; in dpp_auth_success() 48 os_memset(auth->Nx, 0, sizeof(auth->Nx)); in dpp_auth_success() 49 auth->Nx_len = 0; in dpp_auth_success() 50 os_memset(auth->Lx, 0, sizeof(auth->Lx)); in dpp_auth_success() 51 auth->Lx_len = 0; in dpp_auth_success() 52 os_memset(auth->k1, 0, sizeof(auth->k1)); in dpp_auth_success() 53 os_memset(auth->k2, 0, sizeof(auth->k2)); in dpp_auth_success() 55 auth->auth_success = 1; in dpp_auth_success() [all …]
|
D | dpp_reconfig.c | 130 static struct wpabuf * dpp_reconfig_build_req(struct dpp_authentication *auth) in dpp_reconfig_build_req() argument 137 attr_len = 4 + 1 + 4 + 1 + 4 + os_strlen(auth->conf->connector) + in dpp_reconfig_build_req() 138 4 + auth->curve->nonce_len; in dpp_reconfig_build_req() 146 wpabuf_put_u8(msg, auth->transaction_id); in dpp_reconfig_build_req() 170 wpabuf_put_le16(msg, os_strlen(auth->conf->connector)); in dpp_reconfig_build_req() 171 wpabuf_put_str(msg, auth->conf->connector); in dpp_reconfig_build_req() 175 wpabuf_put_le16(msg, auth->curve->nonce_len); in dpp_reconfig_build_req() 176 wpabuf_put_data(msg, auth->c_nonce, auth->curve->nonce_len); in dpp_reconfig_build_req() 243 struct dpp_authentication *auth; in dpp_reconfig_init() local 292 auth = dpp_alloc_auth(dpp, msg_ctx); in dpp_reconfig_init() [all …]
|
D | dpp.c | 42 void dpp_auth_fail(struct dpp_authentication *auth, const char *txt) in dpp_auth_fail() argument 44 wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_FAIL "%s", txt); in dpp_auth_fail() 580 static int dpp_channel_intersect(struct dpp_authentication *auth, in dpp_channel_intersect() argument 584 struct dpp_bootstrap_info *peer_bi = auth->peer_bi; in dpp_channel_intersect() 589 if (freq_included(auth->freq, auth->num_freq, freq)) in dpp_channel_intersect() 592 auth->freq[auth->num_freq++] = freq; in dpp_channel_intersect() 594 if (!auth->num_freq) { in dpp_channel_intersect() 599 auth->curr_freq = auth->freq[0]; in dpp_channel_intersect() 604 static int dpp_channel_local_list(struct dpp_authentication *auth, in dpp_channel_local_list() argument 612 auth->num_freq = 0; in dpp_channel_local_list() [all …]
|
D | dpp_tcp.c | 29 struct dpp_authentication *auth; member 32 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 34 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth); 86 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 87 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth); 121 dpp_auth_deinit(conn->auth); in dpp_connection_free() 228 struct dpp_authentication *auth = conn->auth; in dpp_controller_gas_done() local 230 if (auth->waiting_csr) { in dpp_controller_gas_done() 237 if (auth->waiting_new_key) { in dpp_controller_gas_done() 244 if (auth->peer_version >= 2 && in dpp_controller_gas_done() [all …]
|
D | dpp_crypto.c | 444 int dpp_derive_bk_ke(struct dpp_authentication *auth) in dpp_derive_bk_ke() argument 446 unsigned int hash_len = auth->curve->hash_len; in dpp_derive_bk_ke() 447 size_t nonce_len = auth->curve->nonce_len; in dpp_derive_bk_ke() 455 if (!auth->Mx_len || !auth->Nx_len) { in dpp_derive_bk_ke() 462 os_memcpy(nonces, auth->i_nonce, nonce_len); in dpp_derive_bk_ke() 463 os_memcpy(&nonces[nonce_len], auth->r_nonce, nonce_len); in dpp_derive_bk_ke() 464 addr[num_elem] = auth->Mx; in dpp_derive_bk_ke() 465 len[num_elem] = auth->Mx_len; in dpp_derive_bk_ke() 467 addr[num_elem] = auth->Nx; in dpp_derive_bk_ke() 468 len[num_elem] = auth->Nx_len; in dpp_derive_bk_ke() [all …]
|
D | dpp_i.h | 33 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 34 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth); 55 int dpp_prepare_channel_list(struct dpp_authentication *auth, 58 void dpp_auth_fail(struct dpp_authentication *auth, const char *txt); 66 struct wpabuf * dpp_build_enveloped_data(struct dpp_authentication *auth); 67 int dpp_conf_resp_env_data(struct dpp_authentication *auth, 111 int dpp_derive_bk_ke(struct dpp_authentication *auth); 112 int dpp_gen_r_auth(struct dpp_authentication *auth, u8 *r_auth); 113 int dpp_gen_i_auth(struct dpp_authentication *auth, u8 *i_auth); 114 int dpp_auth_derive_l_responder(struct dpp_authentication *auth); [all …]
|
D | dpp.h | 449 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 450 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth); 602 dpp_auth_resp_rx(struct dpp_authentication *auth, const u8 *hdr, 604 struct wpabuf * dpp_build_conf_req(struct dpp_authentication *auth, 606 struct wpabuf * dpp_build_conf_req_helper(struct dpp_authentication *auth, 612 int dpp_auth_conf_rx(struct dpp_authentication *auth, const u8 *hdr, 614 int dpp_notify_new_qr_code(struct dpp_authentication *auth, 629 int dpp_set_configurator(struct dpp_authentication *auth, const char *cmd); 630 void dpp_auth_deinit(struct dpp_authentication *auth); 632 dpp_build_conf_resp(struct dpp_authentication *auth, const u8 *e_nonce, [all …]
|
D | dpp_backup.c | 151 static struct wpabuf * dpp_build_key_pkg(struct dpp_authentication *auth) in dpp_build_key_pkg() argument 155 priv_key = crypto_ec_key_get_ecprivate_key(auth->conf->csign, false); in dpp_build_key_pkg() 159 alg = dpp_build_key_alg(auth->conf->curve); in dpp_build_key_pkg() 162 attr = dpp_build_attribute(auth->conf); in dpp_build_key_pkg() 264 dpp_build_pw_recipient_info(struct dpp_authentication *auth, size_t hash_len, in dpp_build_pw_recipient_info() argument 279 key_len = auth->curve->hash_len; in dpp_build_pw_recipient_info() 281 res = dpp_hkdf_expand(key_len, auth->bk, key_len, in dpp_build_pw_recipient_info() 348 dpp_build_recipient_info(struct dpp_authentication *auth, size_t hash_len, in dpp_build_recipient_info() argument 364 pwri = dpp_build_pw_recipient_info(auth, hash_len, cont_enc_key); in dpp_build_recipient_info() 370 dpp_build_enc_cont_info(struct dpp_authentication *auth, size_t hash_len, in dpp_build_enc_cont_info() argument [all …]
|
/hostap-latest/wpa_supplicant/ |
D | dpp_supplicant.c | 58 struct dpp_authentication *auth); 59 static bool wpas_dpp_tcp_msg_sent(void *ctx, struct dpp_authentication *auth); 78 struct dpp_authentication *auth = wpa_s->dpp_auth; in wpas_dpp_qr_code() local 84 if (auth && auth->response_pending && in wpas_dpp_qr_code() 85 dpp_notify_new_qr_code(auth, bi) == 1) { in wpas_dpp_qr_code() 90 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in wpas_dpp_qr_code() 92 offchannel_send_action(wpa_s, auth->curr_freq, in wpas_dpp_qr_code() 93 auth->peer_mac_addr, wpa_s->own_addr, in wpas_dpp_qr_code() 95 wpabuf_head(auth->resp_msg), in wpas_dpp_qr_code() 96 wpabuf_len(auth->resp_msg), in wpas_dpp_qr_code() [all …]
|
D | wpa_priv.c | 248 struct privsep_cmd_authenticate *auth; in wpa_priv_cmd_authenticate() local 254 if (len < sizeof(*auth)) { in wpa_priv_cmd_authenticate() 259 auth = buf; in wpa_priv_cmd_authenticate() 260 if (sizeof(*auth) + auth->ie_len + auth->auth_data_len > len) { in wpa_priv_cmd_authenticate() 266 params.freq = auth->freq; in wpa_priv_cmd_authenticate() 267 params.bssid = auth->bssid; in wpa_priv_cmd_authenticate() 268 params.ssid = auth->ssid; in wpa_priv_cmd_authenticate() 269 if (auth->ssid_len > SSID_MAX_LEN) in wpa_priv_cmd_authenticate() 271 params.ssid_len = auth->ssid_len; in wpa_priv_cmd_authenticate() 272 params.auth_alg = auth->auth_alg; in wpa_priv_cmd_authenticate() [all …]
|
D | ibss_rsn.c | 42 wpa_auth_sta_deinit(peer->auth); in ibss_rsn_free() 378 if (peer->auth && cb(peer->auth, cb_ctx)) in auth_for_each_sta() 475 peer->auth = wpa_auth_sta_init(ibss_rsn->auth_group, peer->addr, NULL); in ibss_rsn_auth_init() 476 if (peer->auth == NULL) { in ibss_rsn_auth_init() 482 if (wpa_validate_wpa_ie(ibss_rsn->auth_group, peer->auth, 0, in ibss_rsn_auth_init() 493 if (wpa_auth_sm_event(peer->auth, WPA_ASSOC)) in ibss_rsn_auth_init() 496 if (wpa_auth_sta_associated(ibss_rsn->auth_group, peer->auth)) in ibss_rsn_auth_init() 505 struct ieee80211_mgmt auth; in ibss_rsn_send_auth() local 506 const size_t auth_length = IEEE80211_HDRLEN + sizeof(auth.u.auth); in ibss_rsn_send_auth() 509 os_memset(&auth, 0, sizeof(auth)); in ibss_rsn_send_auth() [all …]
|
D | eap_testing.txt | 103 EAP-FAST/GTC(auth) - - - + - + - - - + + + 110 EAP-FAST/MSCHAPv2(auth) - - - - - + - - - - + + 111 EAP-FAST/MD5(auth) - - - - - + - - - - + - 112 EAP-FAST/TLS(auth) - - - - - - - - - - + + 113 EAP-FAST/SIM(auth) - - - - - - - - - - + - 114 EAP-FAST/AKA(auth) - - - - - - - - - - + - 123 2) used FreeRADIUS as inner auth server 176 - EAP-TTLS / CHAP (using FreeRADIUS as inner auth srv) 180 - EAP-TTLS / EAP-MD5-Challenge (using FreeRADIUS as inner auth srv) 181 - EAP-TTLS / EAP-GTC (using FreeRADIUS as inner auth srv) [all …]
|
D | sme.c | 483 u16 status_code = data->auth.status_code; in wpas_sme_ml_auth() 488 if (ieee802_11_parse_elems(data->auth.ies + ie_offset, in wpas_sme_ml_auth() 489 data->auth.ies_len - ie_offset, in wpas_sme_ml_auth() 1351 u.auth.variable)); in sme_external_auth_build_buf() 1358 resp->u.auth.auth_alg = host_to_le16(WLAN_AUTH_SAE); in sme_external_auth_build_buf() 1360 resp->u.auth.auth_transaction = host_to_le16(auth_transaction); in sme_external_auth_build_buf() 1361 resp->u.auth.status_code = host_to_le16(status_code); in sme_external_auth_build_buf() 1950 auth_length = IEEE80211_HDRLEN + sizeof(header->u.auth); in sme_external_auth_mgmt_rx() 1959 if (le_to_host16(header->u.auth.auth_alg) == WLAN_AUTH_SAE) { in sme_external_auth_mgmt_rx() 1964 wpa_s, le_to_host16(header->u.auth.auth_transaction), in sme_external_auth_mgmt_rx() [all …]
|
/hostap-latest/src/ap/ |
D | dpp_hostapd.c | 35 struct dpp_authentication *auth); 41 struct dpp_authentication *auth, 44 struct dpp_authentication *auth); 59 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code() local 65 if (auth && auth->response_pending && in hostapd_dpp_qr_code() 66 dpp_notify_new_qr_code(auth, bi) == 1) { in hostapd_dpp_qr_code() 71 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in hostapd_dpp_qr_code() 73 hostapd_drv_send_action(hapd, auth->curr_freq, 0, in hostapd_dpp_qr_code() 74 auth->peer_mac_addr, in hostapd_dpp_qr_code() 174 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_resp_retry_timeout() local [all …]
|
D | wpa_auth_ft.c | 76 const u8 *auth, const size_t auth_len, in wpa_ft_rrb_decrypt() argument 80 const u8 *ad[3] = { src_addr, auth, &type }; in wpa_ft_rrb_decrypt() 87 wpa_hexdump(MSG_DEBUG, "FT(RRB): authenticated TLVs", auth, auth_len); in wpa_ft_rrb_decrypt() 480 const u8 *auth, const size_t auth_len, in wpa_ft_rrb_encrypt() argument 483 const u8 *ad[3] = { src_addr, auth, &type }; in wpa_ft_rrb_encrypt() 491 wpa_hexdump(MSG_DEBUG, "FT(RRB): authenticated TLVs", auth, auth_len); in wpa_ft_rrb_encrypt() 531 u8 *plain = NULL, *auth = NULL, *pos, *tmp; in wpa_ft_rrb_build() local 540 if (wpa_ft_rrb_lin(tlvs_auth, NULL, NULL, &auth, &auth_len) < 0) in wpa_ft_rrb_build() 555 tmp = os_realloc(auth, auth_len + pad_len); in wpa_ft_rrb_build() 558 auth = tmp; in wpa_ft_rrb_build() [all …]
|
/hostap-latest/wpa_supplicant/wpa_gui-qt4/ |
D | networkconfig.cpp | 72 int auth, encr = 0; in paramsFromScanResults() local 74 auth = AUTH_WPA2_EAP; in paramsFromScanResults() 76 auth = AUTH_WPA_EAP; in paramsFromScanResults() 78 auth = AUTH_WPA2_PSK; in paramsFromScanResults() 80 auth = AUTH_WPA_PSK; in paramsFromScanResults() 82 auth = AUTH_NONE_OPEN; in paramsFromScanResults() 90 if (auth == AUTH_NONE_OPEN) in paramsFromScanResults() 91 auth = AUTH_NONE_WEP; in paramsFromScanResults() 95 authSelect->setCurrentIndex(auth); in paramsFromScanResults() 96 authChanged(auth); in paramsFromScanResults() [all …]
|
/hostap-latest/src/crypto/ |
D | aes-ccm.c | 117 static void aes_ccm_encr_auth(void *aes, size_t M, u8 *x, u8 *a, u8 *auth) in aes_ccm_encr_auth() argument 127 auth[i] = x[i] ^ tmp[i]; in aes_ccm_encr_auth() 128 wpa_hexdump_key(MSG_EXCESSIVE, "CCM U", auth, M); in aes_ccm_encr_auth() 132 static void aes_ccm_decr_auth(void *aes, size_t M, u8 *a, const u8 *auth, u8 *t) in aes_ccm_decr_auth() argument 137 wpa_hexdump_key(MSG_EXCESSIVE, "CCM U", auth, M); in aes_ccm_decr_auth() 142 t[i] = auth[i] ^ tmp[i]; in aes_ccm_decr_auth() 150 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument 169 aes_ccm_encr_auth(aes, M, x, a, auth); in aes_ccm_ae() 180 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) in aes_ccm_ad() argument 196 aes_ccm_decr_auth(aes, M, a, auth, t); in aes_ccm_ad()
|
/hostap-latest/hostapd/ |
D | eap_testing.txt | 59 EAP-FAST/GTC(auth) + - + - + 66 EAP-FAST/MSCHAPv2(auth) + - + - + 67 EAP-FAST/MD5(auth) + - + - - 68 EAP-FAST/TLS(auth) + - - - - 69 EAP-FAST/SIM(auth) + - - - - 70 EAP-FAST/AKA(auth) + - - - -
|
/hostap-latest/src/drivers/ |
D | driver_privsep.c | 390 struct privsep_event_auth *auth; in wpa_driver_privsep_event_auth() local 393 if (len < sizeof(*auth)) in wpa_driver_privsep_event_auth() 395 auth = (struct privsep_event_auth *) buf; in wpa_driver_privsep_event_auth() 396 if (len < sizeof(*auth) + auth->ies_len) in wpa_driver_privsep_event_auth() 399 os_memcpy(data.auth.peer, auth->peer, ETH_ALEN); in wpa_driver_privsep_event_auth() 400 os_memcpy(data.auth.bssid, auth->bssid, ETH_ALEN); in wpa_driver_privsep_event_auth() 401 data.auth.auth_type = auth->auth_type; in wpa_driver_privsep_event_auth() 402 data.auth.auth_transaction = auth->auth_transaction; in wpa_driver_privsep_event_auth() 403 data.auth.status_code = auth->status_code; in wpa_driver_privsep_event_auth() 404 if (auth->ies_len) { in wpa_driver_privsep_event_auth() [all …]
|
/hostap-latest/tests/fuzzing/eapol-key-auth/ |
D | eapol-key-auth.c | 33 struct wpa_state_machine *auth; member 89 wpa_receive(wpa->auth_group, wpa->auth, wpa->supp_eapol, in auth_eapol_rx() 258 wpa->auth = wpa_auth_sta_init(wpa->auth_group, wpa->supp_addr, NULL); in auth_init() 259 if (!wpa->auth) { in auth_init() 264 if (wpa_validate_wpa_ie(wpa->auth_group, wpa->auth, 2412, supp_ie, in auth_init() 271 wpa_auth_sm_event(wpa->auth, WPA_ASSOC); in auth_init() 273 wpa_auth_sta_associated(wpa->auth_group, wpa->auth); in auth_init() 281 wpa_auth_sta_deinit(wpa->auth); in deinit()
|
D | Makefile | 1 ALL=eapol-key-auth 22 OBJS += eapol-key-auth.o 30 eapol-key-auth: $(OBJS) $(LIBS) 34 rm -f eapol-key-auth *~ *.o *.d ../*~ ../*.o ../*.d
|
/hostap-latest/tests/ |
D | README | 65 mkdir eapol-auth-examples 66 ./test-eapol auth write eapol-auth-examples/auth.msg 67 afl-fuzz -i eapol-auth-examples -o eapol-auth-findings -- $PWD/test-eapol auth read @@
|
/hostap-latest/src/eap_peer/ |
D | ikev2.c | 523 u8 method, const u8 *auth, size_t auth_len) in ikev2_process_auth_cert() argument 537 u8 method, const u8 *auth, in ikev2_process_auth_secret() argument 569 os_memcmp_const(auth, auth_data, auth_len) != 0) { in ikev2_process_auth_secret() 572 auth, auth_len); in ikev2_process_auth_secret() 588 const u8 *auth, size_t auth_len) in ikev2_process_auth() argument 592 if (auth == NULL) { in ikev2_process_auth() 603 auth_method = auth[0]; in ikev2_process_auth() 604 auth += 4; in ikev2_process_auth() 608 wpa_hexdump(MSG_MSGDUMP, "IKEV2: Authentication Data", auth, auth_len); in ikev2_process_auth() 612 return ikev2_process_auth_cert(data, auth_method, auth, in ikev2_process_auth() [all …]
|
/hostap-latest/src/eap_server/ |
D | ikev2.c | 589 u8 method, const u8 *auth, size_t auth_len) in ikev2_process_auth_cert() argument 603 u8 method, const u8 *auth, in ikev2_process_auth_secret() argument 635 os_memcmp_const(auth, auth_data, auth_len) != 0) { in ikev2_process_auth_secret() 638 auth, auth_len); in ikev2_process_auth_secret() 652 const u8 *auth, size_t auth_len) in ikev2_process_auth() argument 656 if (auth == NULL) { in ikev2_process_auth() 667 auth_method = auth[0]; in ikev2_process_auth() 668 auth += 4; in ikev2_process_auth() 672 wpa_hexdump(MSG_MSGDUMP, "IKEV2: Authentication Data", auth, auth_len); in ikev2_process_auth() 676 return ikev2_process_auth_cert(data, auth_method, auth, in ikev2_process_auth() [all …]
|
/hostap-latest/tests/hwsim/vm/ |
D | dbus.conf | 10 <auth>EXTERNAL</auth>
|