/hal_espressif-latest/components/wpa_supplicant/src/wps/ |
D | wps_enrollee.c | 21 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) in wps_build_wps_state() argument 24 if (wps->wps->ap) in wps_build_wps_state() 25 state = wps->wps->wps_state; in wps_build_wps_state() 37 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) in wps_build_e_hash() argument 43 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash() 45 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_hash() 47 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_e_hash() 49 if (wps->dh_pubkey_e == NULL || wps->dh_pubkey_r == NULL) { in wps_build_e_hash() 60 addr[0] = wps->snonce; in wps_build_e_hash() 62 addr[1] = wps->psk1; in wps_build_e_hash() [all …]
|
D | wps_registrar.c | 141 struct wps_context *wps; member 477 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg) in wps_build_wps_state() argument 480 wps->wps_state); in wps_build_wps_state() 483 wpabuf_put_u8(msg, wps->wps_state); in wps_build_wps_state() 489 static void wps_registrar_free_pending_m2(struct wps_context *wps) in wps_registrar_free_pending_m2() argument 492 p = wps->upnp_msgs; in wps_registrar_free_pending_m2() 496 wps->upnp_msgs = p->next; in wps_registrar_free_pending_m2() 513 static int wps_build_ap_setup_locked(struct wps_context *wps, in wps_build_ap_setup_locked() argument 516 if (wps->ap_setup_locked && wps->ap_setup_locked != 2) { in wps_build_ap_setup_locked() 565 return wps_build_uuid_e(msg, reg->wps->uuid); in wps_build_sel_pbc_reg_uuid_e() [all …]
|
D | wps_attr_build.c | 21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument 26 wpabuf_clear_free(wps->dh_privkey); in wps_build_public_key() 27 wps->dh_privkey = NULL; in wps_build_public_key() 28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey && in wps_build_public_key() 29 wps->wps->dh_ctx) { in wps_build_public_key() 31 if (wps->wps->dh_pubkey == NULL) { in wps_build_public_key() 36 wps->dh_privkey = wpabuf_dup(wps->wps->dh_privkey); in wps_build_public_key() 37 wps->dh_ctx = wps->wps->dh_ctx; in wps_build_public_key() 38 wps->wps->dh_ctx = NULL; in wps_build_public_key() 39 pubkey = wpabuf_dup(wps->wps->dh_pubkey); in wps_build_public_key() [all …]
|
D | wps_common.c | 62 int wps_derive_keys(struct wps_data *wps) in wps_derive_keys() argument 70 if (wps->dh_privkey == NULL) { in wps_derive_keys() 75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; in wps_derive_keys() 81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_derive_keys() 83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys() 84 dh5_free(wps->dh_ctx); in wps_derive_keys() 85 wps->dh_ctx = NULL; in wps_derive_keys() 98 wpabuf_clear_free(wps->dh_privkey); in wps_derive_keys() 99 wps->dh_privkey = NULL; in wps_derive_keys() 112 addr[0] = wps->nonce_e; in wps_derive_keys() [all …]
|
D | wps_i.h | 28 struct wps_context *wps; member 137 int wps_derive_keys(struct wps_data *wps); 138 int wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, 140 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, 142 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, 144 void wps_success_event(struct wps_context *wps, const u8 *mac_addr); 145 void wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, 147 void wps_pbc_overlap_event(struct wps_context *wps); 148 void wps_selected_registrar_timeout_event(struct wps_context *wps); 149 void wps_pbc_timeout_event(struct wps_context *wps); [all …]
|
D | wps.c | 44 data->wps = cfg->wps; in wps_init() 47 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN); in wps_init() 49 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN); in wps_init() 50 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN); in wps_init() 69 if (cfg->wps->ap && !cfg->registrar && cfg->wps->ap_nfc_dev_pw_id) { in wps_init() 75 data->dev_pw_id = cfg->wps->ap_nfc_dev_pw_id; in wps_init() 77 os_memdup(wpabuf_head(cfg->wps->ap_nfc_dev_pw), in wps_init() 78 wpabuf_len(cfg->wps->ap_nfc_dev_pw)); in wps_init() 83 data->dev_password_len = wpabuf_len(cfg->wps->ap_nfc_dev_pw); in wps_init() 164 wps_registrar_remove_nfc_pw_token(data->wps->registrar, in wps_deinit() [all …]
|
D | wps_attr_process.c | 16 int wps_process_authenticator(struct wps_data *wps, const u8 *authenticator, in wps_process_authenticator() argument 29 if (wps->last_msg == NULL) { in wps_process_authenticator() 38 addr[0] = wpabuf_head(wps->last_msg); in wps_process_authenticator() 39 len[0] = wpabuf_len(wps->last_msg); in wps_process_authenticator() 43 if (hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 2, addr, len, in wps_process_authenticator() 54 int wps_process_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg, in wps_process_key_wrap_auth() argument 74 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, head, len, hash) < 0 || in wps_process_key_wrap_auth()
|
D | wps.h | 114 struct wps_context *wps; member 233 enum wps_process_res wps_process_msg(struct wps_data *wps, 237 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code); 857 wps_registrar_init(struct wps_context *wps, 874 bool esp_wps_registrar_check_pbc_overlap(struct wps_context *wps); 908 struct wpabuf * wps_get_oob_cred(struct wps_context *wps, int rf_band, 910 int wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr); 915 struct wps_er * wps_er_init(struct wps_context *wps, const char *ifname, 930 struct wpabuf * wps_er_config_token_from_cred(struct wps_context *wps, 935 struct wps_context *wps, const u8 *uuid,
|
/hal_espressif-latest/components/wpa_supplicant/src/ap/ |
D | wps_hostapd.c | 67 if (hapd != data->current_hapd && hapd->wps != NULL) in wps_stop_registrar() 68 wps_registrar_complete(hapd->wps->registrar, data->uuid_e, in wps_stop_registrar() 109 hapd->wps->ap_setup_locked = 0; in hostapd_wps_reenable_ap_pin() 110 wps_registrar_update_ie(hapd->wps->registrar); in hostapd_wps_reenable_ap_pin() 132 if (hapd->conf->ap_pin == NULL || hapd->wps == NULL) in wps_ap_pin_success() 268 static void hostapd_free_wps(struct wps_context *wps) in hostapd_free_wps() argument 273 wpabuf_free(wps->dev.vendor_ext[i]); in hostapd_free_wps() 274 wps_device_data_free(&wps->dev); in hostapd_free_wps() 275 os_free(wps->network_key); in hostapd_free_wps() 276 wpabuf_free(wps->dh_pubkey); in hostapd_free_wps() [all …]
|
D | wps_hostapd.h | 14 int hostapd_init_wps(struct hostapd_data *hapd, struct wps_data *wps_data, struct wps_context *wps); 36 …int hostapd_init_wps(struct hostapd_data *hapd, struct wps_data *wps_data, struct wps_context *wps) in hostapd_init_wps() argument
|
D | hostapd.h | 118 struct wps_context *wps; member
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/ |
D | esp_hostpad_wps.c | 74 cfg.wps = sm->wps_ctx; in wifi_ap_wps_init() 78 os_memcpy(cfg.wps->uuid, sm->uuid, WPS_UUID_LEN); in wifi_ap_wps_init() 79 if ((sm->wps = wps_init(&cfg)) == NULL) { /* alloc wps_data */ in wifi_ap_wps_init() 83 hostapd_init_wps(hapd, sm->wps, sm->wps_ctx); in wifi_ap_wps_init() 88 os_memcpy(evt.pin_code, sm->wps->dev_password, 8); in wifi_ap_wps_init() 103 if (sm->wps) { in wifi_ap_wps_init() 104 wps_deinit(sm->wps); in wifi_ap_wps_init() 105 sm->wps = NULL; in wifi_ap_wps_init() 123 if (sm->wps) { in wifi_ap_wps_deinit() 124 sm->wps->registrar = 0; in wifi_ap_wps_deinit() [all …]
|
D | esp_wps.c | 393 if (scan->wps) { in wps_parse_scan_result() 395 struct wpabuf *buf = wpabuf_alloc_copy(scan->wps + 6, scan->wps[1] - 4); in wps_parse_scan_result() 433 sm->wps->wps->config_methods |= WPS_CONFIG_DISPLAY | WPS_CONFIG_VIRT_DISPLAY; in wps_parse_scan_result() 648 *res = wps_enrollee_process_msg(sm->wps, expd->opcode, wps_buf); in wps_process_wps_mX_req() 677 wps_buf = wps_enrollee_get_msg(sm->wps, &opcode); in wps_send_wps_mX_rsp() 783 sm->wps->state = SEND_M1; in wps_stop_process() 804 if (sm->wps->state == WPS_FINISHED) { in wps_finish() 861 if (gWpsSm && gWpsSm->wps->state != WPS_FINISHED) { in wps_sm_notify_deauth() 898 if (sm->wps->state == WPS_FINISHED) { in wps_start_msg_timer() 904 } else if (sm->wps->state == RECV_M2) { in wps_start_msg_timer() [all …]
|
D | esp_wps_i.h | 66 struct wps_data *wps; member
|
D | esp_wifi_driver.h | 104 uint8_t *wps; member
|
D | esp_wpa_main.c | 301 if (esp_wps_registrar_check_pbc_overlap(hapd->wps)) { in check_n_add_wps_sta()
|
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/ |
D | eap_server_wsc.c | 27 struct wps_data *wps; member 88 data->wps = wps_sm->wps; in eap_wsc_init() 89 if (data->wps == NULL) { in eap_wsc_init() 202 data->out_buf = wps_get_msg(data->wps, in eap_wsc_buildReq() 386 res = wps_process_msg(data->wps, op_code, data->in_buf); in eap_wsc_process()
|
D | eap.h | 238 struct wps_context *wps; member
|
/hal_espressif-latest/components/wpa_supplicant/ |
D | CMakeLists.txt | 66 "src/wps/wps.c" 67 "src/wps/wps_attr_build.c" 68 "src/wps/wps_attr_parse.c" 69 "src/wps/wps_attr_process.c" 70 "src/wps/wps_common.c" 71 "src/wps/wps_dev_attr.c" 72 "src/wps/wps_enrollee.c") 215 "src/wps/wps_registrar.c")
|
/hal_espressif-latest/zephyr/esp32/ |
D | CMakeLists.txt | 481 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps.c" 482 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_build.c" 483 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_parse.c" 484 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_process.c" 485 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_common.c" 486 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_dev_attr.c" 487 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_enrollee.c"
|
/hal_espressif-latest/zephyr/esp32c2/ |
D | CMakeLists.txt | 439 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps.c" 440 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_build.c" 441 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_parse.c" 442 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_process.c" 443 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_common.c" 444 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_dev_attr.c" 445 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_enrollee.c"
|
/hal_espressif-latest/zephyr/esp32s2/ |
D | CMakeLists.txt | 442 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps.c" 443 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_build.c" 444 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_parse.c" 445 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_process.c" 446 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_common.c" 447 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_dev_attr.c" 448 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_enrollee.c"
|
/hal_espressif-latest/zephyr/esp32c3/ |
D | CMakeLists.txt | 494 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps.c" 495 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_build.c" 496 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_parse.c" 497 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_process.c" 498 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_common.c" 499 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_dev_attr.c" 500 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_enrollee.c"
|
/hal_espressif-latest/zephyr/esp32c6/ |
D | CMakeLists.txt | 447 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps.c" 448 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_build.c" 449 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_parse.c" 450 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_process.c" 451 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_common.c" 452 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_dev_attr.c" 453 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_enrollee.c"
|
/hal_espressif-latest/zephyr/esp32s3/ |
D | CMakeLists.txt | 511 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps.c" 512 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_build.c" 513 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_parse.c" 514 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_attr_process.c" 515 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_common.c" 516 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_dev_attr.c" 517 "${WPA_SUPPLICANT_COMPONENT_DIR}/src/wps/wps_enrollee.c"
|