Searched refs:wps (Results 1 - 25 of 151) sorted by relevance

1234567

/external/wpa_supplicant_8/hostapd/src/wps/
H A Dwps_enrollee.c19 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) argument
22 if (wps->wps->ap)
23 state = wps->wps->wps_state;
35 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) argument
41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0)
43 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN);
45 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN);
47 if (wps
83 wps_build_e_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
93 wps_build_e_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
104 wps_build_m1(struct wps_data *wps) argument
166 wps_build_m3(struct wps_data *wps) argument
203 wps_build_m5(struct wps_data *wps) argument
238 wps_build_cred_ssid(struct wps_data *wps, struct wpabuf *msg) argument
248 wps_build_cred_auth_type(struct wps_data *wps, struct wpabuf *msg) argument
259 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument
270 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument
308 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument
318 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
346 wps_build_m7(struct wps_data *wps) argument
392 wps_build_wsc_done(struct wps_data *wps) argument
421 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
482 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
497 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
513 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument
527 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
565 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument
579 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument
593 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument
633 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument
673 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len, int wps2) argument
735 wps_process_creds(struct wps_data *wps, const u8 *cred[], size_t cred_len[], size_t num_cred, int wps2) argument
771 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs, int wps2) argument
861 wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) argument
918 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
999 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument
1054 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1109 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1166 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1236 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
1321 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
1367 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
1445 wps_enrollee_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument
[all...]
H A Dwps_registrar.c142 struct wps_context *wps; member in struct:wps_registrar
446 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg) argument
449 wps->wps_state);
452 wpabuf_put_u8(msg, wps->wps_state);
458 static void wps_registrar_free_pending_m2(struct wps_context *wps) argument
461 p = wps->upnp_msgs;
465 wps->upnp_msgs = p->next;
482 static int wps_build_ap_setup_locked(struct wps_context *wps, argument
485 if (wps->ap_setup_locked && wps
637 wps_registrar_init(struct wps_context *wps, const struct wps_registrar_config *cfg) argument
1341 wps_get_dev_password(struct wps_data *wps) argument
1404 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument
1414 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument
1462 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
1472 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
1578 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument
1749 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument
1760 wps_build_ap_cred(struct wps_data *wps) argument
1789 wps_build_m2(struct wps_data *wps) argument
1862 wps_build_m2d(struct wps_data *wps) argument
1901 wps_build_m4(struct wps_data *wps) argument
1939 wps_build_m6(struct wps_data *wps) argument
1975 wps_build_m8(struct wps_data *wps) argument
2011 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
2109 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
2124 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
2140 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument
2154 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument
2168 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument
2182 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument
2196 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument
2236 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument
2286 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument
2302 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
2319 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument
2359 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument
2399 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument
2414 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument
2452 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument
2467 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument
2483 wps_process_config_error(struct wps_data *wps, const u8 *err) argument
2499 wps_registrar_p2p_dev_addr_match(struct wps_data *wps) argument
2520 wps_registrar_skip_overlap(struct wps_data *wps) argument
2538 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument
2667 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2702 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2764 wps_sta_cred_cb(struct wps_data *wps) argument
2799 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument
2853 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2918 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
3001 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
3068 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
3150 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument
3270 wps_registrar_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument
[all...]
H A Dwps_attr_build.c21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) argument
26 wpabuf_free(wps->dh_privkey);
27 wps->dh_privkey = NULL;
28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey &&
29 wps->wps->dh_ctx) {
31 if (wps->wps
158 wps_build_authenticator(struct wps_data *wps, struct wpabuf *msg) argument
274 wps_build_enrollee_nonce(struct wps_data *wps, struct wpabuf *msg) argument
284 wps_build_registrar_nonce(struct wps_data *wps, struct wpabuf *msg) argument
294 wps_build_auth_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
309 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
321 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
331 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument
341 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument
356 wps_build_encr_settings(struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain) argument
[all...]
H A Dwps_i.h12 #include "wps.h"
25 * wps - Pointer to long term WPS context
27 struct wps_context *wps; member in struct:wps_data
134 int wps_derive_keys(struct wps_data *wps);
135 void wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd,
137 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
139 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg,
141 void wps_success_event(struct wps_context *wps, const u8 *mac_addr);
142 void wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part,
144 void wps_pbc_overlap_event(struct wps_context *wps);
[all...]
H A Dwps_common.c62 int wps_derive_keys(struct wps_data *wps) argument
70 if (wps->dh_privkey == NULL) {
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey);
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
84 dh5_free(wps->dh_ctx);
85 wps
132 wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, size_t dev_passwd_len) argument
152 wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, size_t encr_len) argument
271 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr) argument
288 wps_success_event(struct wps_context *wps, const u8 *mac_addr) argument
301 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, const u8 *mac_addr) argument
317 wps_pbc_overlap_event(struct wps_context *wps) argument
326 wps_pbc_timeout_event(struct wps_context *wps) argument
335 wps_pbc_active_event(struct wps_context *wps) argument
344 wps_pbc_disable_event(struct wps_context *wps) argument
355 wps_get_oob_cred(struct wps_context *wps, int rf_band, int channel) argument
434 wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr) argument
569 wps_build_wsc_ack(struct wps_data *wps) argument
592 wps_build_wsc_nack(struct wps_data *wps) argument
733 wps_build_ssid(struct wpabuf *msg, struct wps_context *wps) argument
[all...]
H A Dwps_upnp.h19 struct wps_data *wps; member in struct:upnp_wps_peer
37 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
H A Dwps_er.c34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta, argument
40 if (wps->event_cb == NULL)
55 wps->event_cb(wps->cb_ctx, event, &data);
76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE);
77 if (sta->wps)
78 wps_deinit(sta->wps);
127 static void wps_er_ap_event(struct wps_context *wps, struct wps_er_ap *ap, argument
133 if (wps->event_cb == NULL)
150 wps
1250 wps_er_init(struct wps_context *wps, const char *ifname, const char *filter) argument
2027 wps_er_config_token_from_cred(struct wps_context *wps, struct wps_credential *cred) argument
2071 wps_er_nfc_handover_sel(struct wps_er *er, struct wps_context *wps, const u8 *uuid, const u8 *addr, struct wpabuf *pubkey) argument
[all...]
/external/wpa_supplicant_8/src/wps/
H A Dwps_enrollee.c19 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) argument
22 if (wps->wps->ap)
23 state = wps->wps->wps_state;
35 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) argument
41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0)
43 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN);
45 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN);
47 if (wps
83 wps_build_e_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
93 wps_build_e_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
104 wps_build_m1(struct wps_data *wps) argument
166 wps_build_m3(struct wps_data *wps) argument
203 wps_build_m5(struct wps_data *wps) argument
238 wps_build_cred_ssid(struct wps_data *wps, struct wpabuf *msg) argument
248 wps_build_cred_auth_type(struct wps_data *wps, struct wpabuf *msg) argument
259 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument
270 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument
308 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument
318 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
346 wps_build_m7(struct wps_data *wps) argument
392 wps_build_wsc_done(struct wps_data *wps) argument
421 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
482 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
497 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
513 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument
527 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
565 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument
579 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument
593 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument
633 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument
673 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len, int wps2) argument
735 wps_process_creds(struct wps_data *wps, const u8 *cred[], size_t cred_len[], size_t num_cred, int wps2) argument
771 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs, int wps2) argument
861 wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) argument
918 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
999 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument
1054 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1109 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1166 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1236 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
1321 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
1367 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
1445 wps_enrollee_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument
[all...]
H A Dwps_registrar.c142 struct wps_context *wps; member in struct:wps_registrar
446 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg) argument
449 wps->wps_state);
452 wpabuf_put_u8(msg, wps->wps_state);
458 static void wps_registrar_free_pending_m2(struct wps_context *wps) argument
461 p = wps->upnp_msgs;
465 wps->upnp_msgs = p->next;
482 static int wps_build_ap_setup_locked(struct wps_context *wps, argument
485 if (wps->ap_setup_locked && wps
637 wps_registrar_init(struct wps_context *wps, const struct wps_registrar_config *cfg) argument
1341 wps_get_dev_password(struct wps_data *wps) argument
1404 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument
1414 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument
1462 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
1472 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
1578 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument
1749 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument
1760 wps_build_ap_cred(struct wps_data *wps) argument
1789 wps_build_m2(struct wps_data *wps) argument
1862 wps_build_m2d(struct wps_data *wps) argument
1901 wps_build_m4(struct wps_data *wps) argument
1939 wps_build_m6(struct wps_data *wps) argument
1975 wps_build_m8(struct wps_data *wps) argument
2011 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
2109 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
2124 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
2140 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument
2154 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument
2168 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument
2182 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument
2196 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument
2236 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument
2286 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument
2302 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
2319 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument
2359 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument
2399 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument
2414 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument
2452 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument
2467 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument
2483 wps_process_config_error(struct wps_data *wps, const u8 *err) argument
2499 wps_registrar_p2p_dev_addr_match(struct wps_data *wps) argument
2520 wps_registrar_skip_overlap(struct wps_data *wps) argument
2538 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument
2667 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2702 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2764 wps_sta_cred_cb(struct wps_data *wps) argument
2799 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument
2853 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2918 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
3001 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
3068 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
3150 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument
3270 wps_registrar_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument
[all...]
H A Dwps_attr_build.c21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) argument
26 wpabuf_free(wps->dh_privkey);
27 wps->dh_privkey = NULL;
28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey &&
29 wps->wps->dh_ctx) {
31 if (wps->wps
158 wps_build_authenticator(struct wps_data *wps, struct wpabuf *msg) argument
274 wps_build_enrollee_nonce(struct wps_data *wps, struct wpabuf *msg) argument
284 wps_build_registrar_nonce(struct wps_data *wps, struct wpabuf *msg) argument
294 wps_build_auth_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
309 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
321 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
331 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument
341 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument
356 wps_build_encr_settings(struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain) argument
[all...]
H A Dwps_i.h12 #include "wps.h"
25 * wps - Pointer to long term WPS context
27 struct wps_context *wps; member in struct:wps_data
134 int wps_derive_keys(struct wps_data *wps);
135 void wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd,
137 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
139 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg,
141 void wps_success_event(struct wps_context *wps, const u8 *mac_addr);
142 void wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part,
144 void wps_pbc_overlap_event(struct wps_context *wps);
[all...]
H A Dwps_common.c62 int wps_derive_keys(struct wps_data *wps) argument
70 if (wps->dh_privkey == NULL) {
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey);
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
84 dh5_free(wps->dh_ctx);
85 wps
132 wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, size_t dev_passwd_len) argument
152 wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, size_t encr_len) argument
271 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr) argument
288 wps_success_event(struct wps_context *wps, const u8 *mac_addr) argument
301 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, const u8 *mac_addr) argument
317 wps_pbc_overlap_event(struct wps_context *wps) argument
326 wps_pbc_timeout_event(struct wps_context *wps) argument
335 wps_pbc_active_event(struct wps_context *wps) argument
344 wps_pbc_disable_event(struct wps_context *wps) argument
355 wps_get_oob_cred(struct wps_context *wps, int rf_band, int channel) argument
434 wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr) argument
569 wps_build_wsc_ack(struct wps_data *wps) argument
592 wps_build_wsc_nack(struct wps_data *wps) argument
733 wps_build_ssid(struct wpabuf *msg, struct wps_context *wps) argument
[all...]
H A Dwps_upnp.h19 struct wps_data *wps; member in struct:upnp_wps_peer
37 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
H A Dwps_er.c34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta, argument
40 if (wps->event_cb == NULL)
55 wps->event_cb(wps->cb_ctx, event, &data);
76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE);
77 if (sta->wps)
78 wps_deinit(sta->wps);
127 static void wps_er_ap_event(struct wps_context *wps, struct wps_er_ap *ap, argument
133 if (wps->event_cb == NULL)
150 wps
1250 wps_er_init(struct wps_context *wps, const char *ifname, const char *filter) argument
2027 wps_er_config_token_from_cred(struct wps_context *wps, struct wps_credential *cred) argument
2071 wps_er_nfc_handover_sel(struct wps_er *er, struct wps_context *wps, const u8 *uuid, const u8 *addr, struct wpabuf *pubkey) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dwps_enrollee.c19 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) argument
22 if (wps->wps->ap)
23 state = wps->wps->wps_state;
35 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) argument
41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0)
43 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN);
45 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN);
47 if (wps
83 wps_build_e_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
93 wps_build_e_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
104 wps_build_m1(struct wps_data *wps) argument
166 wps_build_m3(struct wps_data *wps) argument
203 wps_build_m5(struct wps_data *wps) argument
238 wps_build_cred_ssid(struct wps_data *wps, struct wpabuf *msg) argument
248 wps_build_cred_auth_type(struct wps_data *wps, struct wpabuf *msg) argument
259 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument
270 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument
308 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument
318 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
346 wps_build_m7(struct wps_data *wps) argument
392 wps_build_wsc_done(struct wps_data *wps) argument
421 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
482 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
497 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
513 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument
527 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
565 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument
579 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument
593 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument
633 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument
673 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len, int wps2) argument
735 wps_process_creds(struct wps_data *wps, const u8 *cred[], size_t cred_len[], size_t num_cred, int wps2) argument
771 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs, int wps2) argument
861 wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) argument
918 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
999 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument
1054 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1109 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1166 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1236 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
1321 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
1367 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
1445 wps_enrollee_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument
[all...]
H A Dwps_registrar.c142 struct wps_context *wps; member in struct:wps_registrar
446 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg) argument
449 wps->wps_state);
452 wpabuf_put_u8(msg, wps->wps_state);
458 static void wps_registrar_free_pending_m2(struct wps_context *wps) argument
461 p = wps->upnp_msgs;
465 wps->upnp_msgs = p->next;
482 static int wps_build_ap_setup_locked(struct wps_context *wps, argument
485 if (wps->ap_setup_locked && wps
637 wps_registrar_init(struct wps_context *wps, const struct wps_registrar_config *cfg) argument
1341 wps_get_dev_password(struct wps_data *wps) argument
1404 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument
1414 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument
1462 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
1472 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
1578 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument
1749 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument
1760 wps_build_ap_cred(struct wps_data *wps) argument
1789 wps_build_m2(struct wps_data *wps) argument
1862 wps_build_m2d(struct wps_data *wps) argument
1901 wps_build_m4(struct wps_data *wps) argument
1939 wps_build_m6(struct wps_data *wps) argument
1975 wps_build_m8(struct wps_data *wps) argument
2011 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
2109 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
2124 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
2140 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument
2154 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument
2168 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument
2182 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument
2196 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument
2236 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument
2286 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument
2302 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
2319 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument
2359 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument
2399 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument
2414 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument
2452 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument
2467 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument
2483 wps_process_config_error(struct wps_data *wps, const u8 *err) argument
2499 wps_registrar_p2p_dev_addr_match(struct wps_data *wps) argument
2520 wps_registrar_skip_overlap(struct wps_data *wps) argument
2538 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument
2667 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2702 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2764 wps_sta_cred_cb(struct wps_data *wps) argument
2799 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument
2853 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2918 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
3001 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
3068 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
3150 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument
3270 wps_registrar_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument
[all...]
H A Dwps_attr_build.c21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) argument
26 wpabuf_free(wps->dh_privkey);
27 wps->dh_privkey = NULL;
28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey &&
29 wps->wps->dh_ctx) {
31 if (wps->wps
158 wps_build_authenticator(struct wps_data *wps, struct wpabuf *msg) argument
274 wps_build_enrollee_nonce(struct wps_data *wps, struct wpabuf *msg) argument
284 wps_build_registrar_nonce(struct wps_data *wps, struct wpabuf *msg) argument
294 wps_build_auth_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
309 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
321 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
331 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument
341 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument
356 wps_build_encr_settings(struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain) argument
[all...]
H A Dwps_i.h12 #include "wps.h"
25 * wps - Pointer to long term WPS context
27 struct wps_context *wps; member in struct:wps_data
134 int wps_derive_keys(struct wps_data *wps);
135 void wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd,
137 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
139 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg,
141 void wps_success_event(struct wps_context *wps, const u8 *mac_addr);
142 void wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part,
144 void wps_pbc_overlap_event(struct wps_context *wps);
[all...]
H A Dwps_common.c62 int wps_derive_keys(struct wps_data *wps) argument
70 if (wps->dh_privkey == NULL) {
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey);
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
84 dh5_free(wps->dh_ctx);
85 wps
132 wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, size_t dev_passwd_len) argument
152 wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, size_t encr_len) argument
271 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr) argument
288 wps_success_event(struct wps_context *wps, const u8 *mac_addr) argument
301 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, const u8 *mac_addr) argument
317 wps_pbc_overlap_event(struct wps_context *wps) argument
326 wps_pbc_timeout_event(struct wps_context *wps) argument
335 wps_pbc_active_event(struct wps_context *wps) argument
344 wps_pbc_disable_event(struct wps_context *wps) argument
355 wps_get_oob_cred(struct wps_context *wps, int rf_band, int channel) argument
434 wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr) argument
569 wps_build_wsc_ack(struct wps_data *wps) argument
592 wps_build_wsc_nack(struct wps_data *wps) argument
733 wps_build_ssid(struct wpabuf *msg, struct wps_context *wps) argument
[all...]
H A Dwps_upnp.h19 struct wps_data *wps; member in struct:upnp_wps_peer
37 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
H A Dwps_er.c34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta, argument
40 if (wps->event_cb == NULL)
55 wps->event_cb(wps->cb_ctx, event, &data);
76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE);
77 if (sta->wps)
78 wps_deinit(sta->wps);
127 static void wps_er_ap_event(struct wps_context *wps, struct wps_er_ap *ap, argument
133 if (wps->event_cb == NULL)
150 wps
1250 wps_er_init(struct wps_context *wps, const char *ifname, const char *filter) argument
2027 wps_er_config_token_from_cred(struct wps_context *wps, struct wps_credential *cred) argument
2071 wps_er_nfc_handover_sel(struct wps_er *er, struct wps_context *wps, const u8 *uuid, const u8 *addr, struct wpabuf *pubkey) argument
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dwps_hostapd.c19 #include "wps/wps.h"
20 #include "wps/wps_defs.h"
21 #include "wps/wps_dev_attr.h"
22 #include "wps/wps_attr_parse.h"
32 #include "wps/wps_upnp.h"
34 struct wps_context *wps);
43 static void hostapd_wps_nfc_clear(struct wps_context *wps);
220 if (hapd != data->current_hapd && hapd->wps != NULL)
221 wps_registrar_complete(hapd->wps
920 hostapd_wps_set_vendor_ext(struct hostapd_data *hapd, struct wps_context *wps) argument
945 hostapd_free_wps(struct wps_context *wps) argument
963 struct wps_context *wps; local
1161 struct wps_context *wps = hapd->wps; local
1180 hostapd_wps_nfc_clear(struct wps_context *wps) argument
1453 hostapd_wps_upnp_init(struct hostapd_data *hapd, struct wps_context *wps) argument
1693 hostapd_wps_nfc_tag_process(struct hostapd_data *hapd, const struct wpabuf *wps) argument
1716 const struct wpabuf *wps = data; local
1770 struct wps_context *wps = hapd->wps; local
1807 struct wpabuf *wps; local
1915 struct wps_context *wps = hapd->wps; local
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dwps_hostapd.c19 #include "wps/wps.h"
20 #include "wps/wps_defs.h"
21 #include "wps/wps_dev_attr.h"
22 #include "wps/wps_attr_parse.h"
32 #include "wps/wps_upnp.h"
34 struct wps_context *wps);
43 static void hostapd_wps_nfc_clear(struct wps_context *wps);
220 if (hapd != data->current_hapd && hapd->wps != NULL)
221 wps_registrar_complete(hapd->wps
920 hostapd_wps_set_vendor_ext(struct hostapd_data *hapd, struct wps_context *wps) argument
945 hostapd_free_wps(struct wps_context *wps) argument
963 struct wps_context *wps; local
1161 struct wps_context *wps = hapd->wps; local
1180 hostapd_wps_nfc_clear(struct wps_context *wps) argument
1453 hostapd_wps_upnp_init(struct hostapd_data *hapd, struct wps_context *wps) argument
1693 hostapd_wps_nfc_tag_process(struct hostapd_data *hapd, const struct wpabuf *wps) argument
1716 const struct wpabuf *wps = data; local
1770 struct wps_context *wps = hapd->wps; local
1807 struct wpabuf *wps; local
1915 struct wps_context *wps = hapd->wps; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dwps_hostapd.c19 #include "wps/wps.h"
20 #include "wps/wps_defs.h"
21 #include "wps/wps_dev_attr.h"
22 #include "wps/wps_attr_parse.h"
32 #include "wps/wps_upnp.h"
34 struct wps_context *wps);
43 static void hostapd_wps_nfc_clear(struct wps_context *wps);
220 if (hapd != data->current_hapd && hapd->wps != NULL)
221 wps_registrar_complete(hapd->wps
920 hostapd_wps_set_vendor_ext(struct hostapd_data *hapd, struct wps_context *wps) argument
945 hostapd_free_wps(struct wps_context *wps) argument
963 struct wps_context *wps; local
1161 struct wps_context *wps = hapd->wps; local
1180 hostapd_wps_nfc_clear(struct wps_context *wps) argument
1453 hostapd_wps_upnp_init(struct hostapd_data *hapd, struct wps_context *wps) argument
1693 hostapd_wps_nfc_tag_process(struct hostapd_data *hapd, const struct wpabuf *wps) argument
1716 const struct wpabuf *wps = data; local
1770 struct wps_context *wps = hapd->wps; local
1807 struct wpabuf *wps; local
1915 struct wps_context *wps = hapd->wps; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/
H A Dwps_supplicant.c24 #include "wps/wps_attr_parse.h"
132 struct wpabuf *wps; local
135 wps = wpa_bss_get_vendor_ie_multi(bss,
137 if (wps && wps_parse_msg(wps, &attr) == 0 &&
141 wpabuf_free(wps);
1195 /* Cancel the wps pbc/pin requests */
1356 struct wps_context *wps)
1367 if (wps != wpa_s->global->ifaces->wps)
1355 wpas_wps_set_uuid(struct wpa_supplicant *wpa_s, struct wps_context *wps) argument
1386 wpas_wps_set_vendor_ext_m1(struct wpa_supplicant *wpa_s, struct wps_context *wps) argument
1405 struct wps_context *wps; local
1488 wpas_wps_nfc_clear(struct wps_context *wps) argument
1725 unsigned int pbc = 0, auth = 0, pin = 0, wps = 0; local
2045 struct wps_context *wps = wpa_s->wps; local
2174 struct wps_context *wps = wpa_s->wps; local
2293 wpas_wps_nfc_tag_process(struct wpa_supplicant *wpa_s, const struct wpabuf *wps) argument
2321 const struct wpabuf *wps = data; local
2389 struct wps_context *wps = wpa_s->wps; local
2453 struct wpabuf *wps; local
2588 struct wpabuf *wps; local
2728 struct wpabuf *wps; local
[all...]

Completed in 520 milliseconds

1234567