Searched refs:wps (Results 1 - 25 of 159) 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
272 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument
296 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument
334 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument
344 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
372 wps_build_m7(struct wps_data *wps) argument
418 wps_build_wsc_done(struct wps_data *wps) argument
447 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
508 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
523 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
539 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument
553 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
591 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument
605 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument
619 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument
659 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument
699 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len, int wps2) argument
761 wps_process_creds(struct wps_data *wps, const u8 *cred[], u16 cred_len[], unsigned int num_cred, int wps2) argument
797 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs, int wps2) argument
888 wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) argument
945 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1026 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument
1081 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1136 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1193 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1263 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
1348 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
1394 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
1472 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
1354 wps_get_dev_password(struct wps_data *wps) argument
1417 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument
1427 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument
1475 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
1485 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
1591 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument
1773 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument
1784 wps_build_ap_cred(struct wps_data *wps) argument
1813 wps_build_m2(struct wps_data *wps) argument
1886 wps_build_m2d(struct wps_data *wps) argument
1925 wps_build_m4(struct wps_data *wps) argument
1963 wps_build_m6(struct wps_data *wps) argument
1999 wps_build_m8(struct wps_data *wps) argument
2035 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
2133 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
2148 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
2164 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument
2178 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument
2192 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument
2206 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument
2220 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument
2260 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument
2310 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument
2326 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
2343 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument
2400 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument
2440 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument
2455 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument
2493 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument
2508 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument
2524 wps_process_config_error(struct wps_data *wps, const u8 *err) argument
2540 wps_registrar_p2p_dev_addr_match(struct wps_data *wps) argument
2561 wps_registrar_skip_overlap(struct wps_data *wps) argument
2579 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument
2712 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2747 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2809 wps_sta_cred_cb(struct wps_data *wps) argument
2844 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument
2898 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2963 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
3046 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
3113 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
3195 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument
3320 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
318 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
339 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
349 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument
359 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument
374 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
269 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr) argument
286 wps_success_event(struct wps_context *wps, const u8 *mac_addr) argument
299 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, const u8 *mac_addr) argument
315 wps_pbc_overlap_event(struct wps_context *wps) argument
324 wps_pbc_timeout_event(struct wps_context *wps) argument
333 wps_pbc_active_event(struct wps_context *wps) argument
342 wps_pbc_disable_event(struct wps_context *wps) argument
353 wps_get_oob_cred(struct wps_context *wps, int rf_band, int channel) argument
432 wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr) argument
572 wps_build_wsc_ack(struct wps_data *wps) argument
595 wps_build_wsc_nack(struct wps_data *wps) argument
736 wps_build_ssid(struct wpabuf *msg, struct wps_context *wps) argument
[all...]
H A Dwps_upnp.h22 struct wps_data *wps; member in struct:upnp_wps_peer
40 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
2040 wps_er_config_token_from_cred(struct wps_context *wps, struct wps_credential *cred) argument
2084 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
272 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument
296 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument
334 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument
344 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
372 wps_build_m7(struct wps_data *wps) argument
418 wps_build_wsc_done(struct wps_data *wps) argument
447 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
508 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
523 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
539 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument
553 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
591 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument
605 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument
619 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument
659 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument
699 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len, int wps2) argument
761 wps_process_creds(struct wps_data *wps, const u8 *cred[], u16 cred_len[], unsigned int num_cred, int wps2) argument
797 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs, int wps2) argument
888 wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) argument
945 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1026 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument
1081 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1136 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1193 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1263 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
1348 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
1394 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
1472 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
1354 wps_get_dev_password(struct wps_data *wps) argument
1417 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument
1427 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument
1475 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
1485 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
1591 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument
1773 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument
1784 wps_build_ap_cred(struct wps_data *wps) argument
1813 wps_build_m2(struct wps_data *wps) argument
1886 wps_build_m2d(struct wps_data *wps) argument
1925 wps_build_m4(struct wps_data *wps) argument
1963 wps_build_m6(struct wps_data *wps) argument
1999 wps_build_m8(struct wps_data *wps) argument
2035 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
2133 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
2148 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
2164 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument
2178 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument
2192 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument
2206 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument
2220 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument
2260 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument
2310 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument
2326 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
2343 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument
2400 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument
2440 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument
2455 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument
2493 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument
2508 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument
2524 wps_process_config_error(struct wps_data *wps, const u8 *err) argument
2540 wps_registrar_p2p_dev_addr_match(struct wps_data *wps) argument
2561 wps_registrar_skip_overlap(struct wps_data *wps) argument
2579 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument
2712 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2747 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2809 wps_sta_cred_cb(struct wps_data *wps) argument
2844 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument
2898 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2963 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
3046 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
3113 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
3195 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument
3320 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
318 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
339 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
349 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument
359 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument
374 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
269 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr) argument
286 wps_success_event(struct wps_context *wps, const u8 *mac_addr) argument
299 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, const u8 *mac_addr) argument
315 wps_pbc_overlap_event(struct wps_context *wps) argument
324 wps_pbc_timeout_event(struct wps_context *wps) argument
333 wps_pbc_active_event(struct wps_context *wps) argument
342 wps_pbc_disable_event(struct wps_context *wps) argument
353 wps_get_oob_cred(struct wps_context *wps, int rf_band, int channel) argument
432 wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr) argument
572 wps_build_wsc_ack(struct wps_data *wps) argument
595 wps_build_wsc_nack(struct wps_data *wps) argument
736 wps_build_ssid(struct wpabuf *msg, struct wps_context *wps) argument
[all...]
H A Dwps_upnp.h22 struct wps_data *wps; member in struct:upnp_wps_peer
40 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
2040 wps_er_config_token_from_cred(struct wps_context *wps, struct wps_credential *cred) argument
2084 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
272 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument
296 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument
334 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument
344 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
372 wps_build_m7(struct wps_data *wps) argument
418 wps_build_wsc_done(struct wps_data *wps) argument
447 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
508 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
523 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
539 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument
553 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
591 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument
605 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument
619 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument
659 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument
699 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len, int wps2) argument
761 wps_process_creds(struct wps_data *wps, const u8 *cred[], u16 cred_len[], unsigned int num_cred, int wps2) argument
797 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs, int wps2) argument
888 wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) argument
945 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1026 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument
1081 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1136 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1193 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
1263 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
1348 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
1394 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
1472 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
1354 wps_get_dev_password(struct wps_data *wps) argument
1417 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument
1427 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument
1475 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument
1485 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument
1591 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument
1773 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument
1784 wps_build_ap_cred(struct wps_data *wps) argument
1813 wps_build_m2(struct wps_data *wps) argument
1886 wps_build_m2d(struct wps_data *wps) argument
1925 wps_build_m4(struct wps_data *wps) argument
1963 wps_build_m6(struct wps_data *wps) argument
1999 wps_build_m8(struct wps_data *wps) argument
2035 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument
2133 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument
2148 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument
2164 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument
2178 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument
2192 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument
2206 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument
2220 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument
2260 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument
2310 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument
2326 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument
2343 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument
2400 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument
2440 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument
2455 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument
2493 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument
2508 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument
2524 wps_process_config_error(struct wps_data *wps, const u8 *err) argument
2540 wps_registrar_p2p_dev_addr_match(struct wps_data *wps) argument
2561 wps_registrar_skip_overlap(struct wps_data *wps) argument
2579 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument
2712 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2747 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2809 wps_sta_cred_cb(struct wps_data *wps) argument
2844 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument
2898 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument
2963 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument
3046 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument
3113 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument
3195 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument
3320 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
318 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
339 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument
349 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument
359 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument
374 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
269 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr) argument
286 wps_success_event(struct wps_context *wps, const u8 *mac_addr) argument
299 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, const u8 *mac_addr) argument
315 wps_pbc_overlap_event(struct wps_context *wps) argument
324 wps_pbc_timeout_event(struct wps_context *wps) argument
333 wps_pbc_active_event(struct wps_context *wps) argument
342 wps_pbc_disable_event(struct wps_context *wps) argument
353 wps_get_oob_cred(struct wps_context *wps, int rf_band, int channel) argument
432 wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr) argument
572 wps_build_wsc_ack(struct wps_data *wps) argument
595 wps_build_wsc_nack(struct wps_data *wps) argument
736 wps_build_ssid(struct wpabuf *msg, struct wps_context *wps) argument
[all...]
H A Dwps_upnp.h22 struct wps_data *wps; member in struct:upnp_wps_peer
40 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
2040 wps_er_config_token_from_cred(struct wps_context *wps, struct wps_credential *cred) argument
2084 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
939 hostapd_wps_set_vendor_ext(struct hostapd_data *hapd, struct wps_context *wps) argument
964 hostapd_free_wps(struct wps_context *wps) argument
982 struct wps_context *wps; local
1192 struct wps_context *wps = hapd->wps; local
1211 hostapd_wps_nfc_clear(struct wps_context *wps) argument
1514 hostapd_wps_upnp_init(struct hostapd_data *hapd, struct wps_context *wps) argument
1759 hostapd_wps_nfc_tag_process(struct hostapd_data *hapd, const struct wpabuf *wps) argument
1782 const struct wpabuf *wps = data; local
1836 struct wps_context *wps = hapd->wps; local
1873 struct wpabuf *wps; local
1981 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
939 hostapd_wps_set_vendor_ext(struct hostapd_data *hapd, struct wps_context *wps) argument
964 hostapd_free_wps(struct wps_context *wps) argument
982 struct wps_context *wps; local
1192 struct wps_context *wps = hapd->wps; local
1211 hostapd_wps_nfc_clear(struct wps_context *wps) argument
1514 hostapd_wps_upnp_init(struct hostapd_data *hapd, struct wps_context *wps) argument
1759 hostapd_wps_nfc_tag_process(struct hostapd_data *hapd, const struct wpabuf *wps) argument
1782 const struct wpabuf *wps = data; local
1836 struct wps_context *wps = hapd->wps; local
1873 struct wpabuf *wps; local
1981 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
939 hostapd_wps_set_vendor_ext(struct hostapd_data *hapd, struct wps_context *wps) argument
964 hostapd_free_wps(struct wps_context *wps) argument
982 struct wps_context *wps; local
1192 struct wps_context *wps = hapd->wps; local
1211 hostapd_wps_nfc_clear(struct wps_context *wps) argument
1514 hostapd_wps_upnp_init(struct hostapd_data *hapd, struct wps_context *wps) argument
1759 hostapd_wps_nfc_tag_process(struct hostapd_data *hapd, const struct wpabuf *wps) argument
1782 const struct wpabuf *wps = data; local
1836 struct wps_context *wps = hapd->wps; local
1873 struct wpabuf *wps; local
1981 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"
141 struct wpabuf *wps; local
144 wps = wpa_bss_get_vendor_ie_multi(bss,
146 if (wps && wps_parse_msg(wps, &attr) == 0 &&
150 wpabuf_free(wps);
1285 /* Cancel the wps pbc/pin requests */
1454 struct wps_context *wps)
1465 if (wps != wpa_s->global->ifaces->wps)
1453 wpas_wps_set_uuid(struct wpa_supplicant *wpa_s, struct wps_context *wps) argument
1484 wpas_wps_set_vendor_ext_m1(struct wpa_supplicant *wpa_s, struct wps_context *wps) argument
1503 struct wps_context *wps; local
1588 wpas_wps_nfc_clear(struct wps_context *wps) argument
1823 unsigned int pbc = 0, auth = 0, pin = 0, wps = 0; local
2145 struct wps_context *wps = wpa_s->wps; local
2274 struct wps_context *wps = wpa_s->wps; local
2393 wpas_wps_nfc_tag_process(struct wpa_supplicant *wpa_s, const struct wpabuf *wps) argument
2421 const struct wpabuf *wps = data; local
2489 struct wps_context *wps = wpa_s->wps; local
2553 struct wpabuf *wps; local
2692 struct wpabuf *wps; local
2832 struct wpabuf *wps; local
[all...]

Completed in 447 milliseconds

1234567