/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
D | wpabuf.h | 36 void * wpabuf_put(struct wpabuf *buf, size_t len); 120 u8 *pos = (u8 *) wpabuf_put(buf, 1); in wpabuf_put_u8() 126 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_le16() 132 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_le32() 138 u8 *pos = (u8 *) wpabuf_put(buf, 8); in wpabuf_put_le64() 144 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_be16() 150 u8 *pos = (u8 *) wpabuf_put(buf, 3); in wpabuf_put_be24() 156 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_be32() 162 u8 *pos = (u8 *) wpabuf_put(buf, 8); in wpabuf_put_be64() 170 os_memcpy(wpabuf_put(buf, len), data, len); in wpabuf_put_data()
|
D | wpabuf.c | 217 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put() function 289 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad() 334 if (hexstr2bin(buf, wpabuf_put(ret, len), len)) { in wpabuf_parse_bin()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
D | wpabuf.h | 36 void * wpabuf_put(struct wpabuf *buf, size_t len); 105 u8 *pos = (u8 *) wpabuf_put(buf, 1); in wpabuf_put_u8() 111 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_le16() 117 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_le32() 123 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_be16() 129 u8 *pos = (u8 *) wpabuf_put(buf, 3); in wpabuf_put_be24() 135 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_be32() 143 os_memcpy(wpabuf_put(buf, len), data, len); in wpabuf_put_data()
|
D | wpabuf.c | 217 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put() function 289 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad() 334 if (hexstr2bin(buf, wpabuf_put(ret, len), len)) { in wpabuf_parse_bin()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
D | ikev2.c | 830 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 852 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sar1() 856 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sar1() 861 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 870 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sar1() 873 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 879 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 885 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 890 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sar1() 893 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sar1() [all …]
|
D | eap_eke.c | 451 rpos = wpabuf_put(resp, data->sess.dhcomp_len); in eap_eke_process_commit() 473 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_commit() 479 wpabuf_put(resp, 0), prot_len); in eap_eke_process_commit() 480 wpabuf_put(resp, prot_len); in eap_eke_process_commit() 589 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_confirm() 594 wpabuf_put(resp, prot_len); in eap_eke_process_confirm() 596 auth = wpabuf_put(resp, data->sess.prf_len); in eap_eke_process_confirm()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
D | ikev2.c | 828 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 850 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sar1() 854 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sar1() 859 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 868 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sar1() 871 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 877 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 883 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 888 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sar1() 891 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sar1() [all …]
|
D | eap_eke.c | 451 rpos = wpabuf_put(resp, data->sess.dhcomp_len); in eap_eke_process_commit() 473 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_commit() 479 wpabuf_put(resp, 0), prot_len); in eap_eke_process_commit() 480 wpabuf_put(resp, prot_len); in eap_eke_process_commit() 589 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_confirm() 594 wpabuf_put(resp, prot_len); in eap_eke_process_confirm() 596 auth = wpabuf_put(resp, data->sess.prf_len); in eap_eke_process_confirm()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
D | ikev2.c | 892 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 914 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sai() 919 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sai() 924 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 933 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sai() 936 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 942 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 948 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 953 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sai() 956 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sai() [all …]
|
D | eap_server_mschapv2.c | 122 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_challenge() 131 wpabuf_put(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge() 160 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_success_req() 169 wpabuf_put(req, sizeof(data->auth_response) * 2), in eap_mschapv2_build_success_req() 203 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_failure_req()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
D | ikev2.c | 892 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 914 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sai() 919 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sai() 924 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 933 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sai() 936 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 942 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 948 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 953 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sai() 956 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sai() [all …]
|
D | eap_server_mschapv2.c | 122 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_challenge() 131 wpabuf_put(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge() 160 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_success_req() 169 wpabuf_put(req, sizeof(data->auth_response) * 2), in eap_mschapv2_build_success_req() 203 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_failure_req()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | gas.c | 122 wpabuf_put(buf, 2); /* Query Request Length to be filled */ in gas_anqp_build_initial_req() 140 wpabuf_put(buf, 2); /* Query Response Length to be filled */ in gas_anqp_build_initial_resp() 181 wpabuf_put(buf, 2); /* Query Response Length to be filled */ in gas_anqp_build_comeback_resp() 245 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in gas_anqp_set_len() 258 return wpabuf_put(buf, 2); /* Length to be filled */ in gas_anqp_add_element() 272 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(buf, 0) - len_pos - 2); in gas_anqp_set_element_len()
|
D | sae_pk.c | 477 if (!pk->m || hexstr2bin(val, wpabuf_put(pk->m, len), len)) { in sae_parse_pk() 560 pos = wpabuf_put(sig_data, 2 * tmp->prime_len); in sae_pk_hash_sig_data() 565 pos = wpabuf_put(sig_data, 2 * tmp->prime_len); in sae_pk_hash_sig_data() 572 wpabuf_put(sig_data, tmp->prime_len), in sae_pk_hash_sig_data() 576 wpabuf_put(sig_data, tmp->prime_len), in sae_pk_hash_sig_data() 687 encr_mod = wpabuf_put(buf, encr_mod_len); in sae_write_confirm_pk()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | gas.c | 122 wpabuf_put(buf, 2); /* Query Request Length to be filled */ in gas_anqp_build_initial_req() 140 wpabuf_put(buf, 2); /* Query Response Length to be filled */ in gas_anqp_build_initial_resp() 181 wpabuf_put(buf, 2); /* Query Response Length to be filled */ in gas_anqp_build_comeback_resp() 245 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in gas_anqp_set_len() 258 return wpabuf_put(buf, 2); /* Length to be filled */ in gas_anqp_add_element() 272 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(buf, 0) - len_pos - 2); in gas_anqp_set_element_len()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | p2p_supplicant_sd.c | 192 len_pos = wpabuf_put(resp, 2); in wpas_sd_add_empty() 198 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_add_empty() 244 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_bonjour() 255 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_all_bonjour() 322 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour() 336 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_req_bonjour() 346 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour() 353 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_req_bonjour() 378 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_upnp() 389 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_all_upnp() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | p2p_supplicant_sd.c | 192 len_pos = wpabuf_put(resp, 2); in wpas_sd_add_empty() 198 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_add_empty() 244 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_bonjour() 255 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_all_bonjour() 322 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour() 336 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_req_bonjour() 346 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour() 353 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_req_bonjour() 378 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_upnp() 389 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_all_upnp() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/ |
D | p2p_build.c | 48 len = wpabuf_put(buf, 1); /* IE length to be filled */ in p2p_buf_add_ie_hdr() 58 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in p2p_buf_update_ie_hdr() 159 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_channel_list() 170 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 172 len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 195 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_device_info() 240 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_device_info() 586 *pos = wpabuf_put(buf, 0); in p2p_buf_add_service_info() 626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance() 629 pos = wpabuf_put(tmp_buf, 0); in p2p_buf_add_service_instance() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/ |
D | p2p_build.c | 48 len = wpabuf_put(buf, 1); /* IE length to be filled */ in p2p_buf_add_ie_hdr() 58 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in p2p_buf_update_ie_hdr() 159 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_channel_list() 170 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 172 len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 195 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_device_info() 240 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_device_info() 586 *pos = wpabuf_put(buf, 0); in p2p_buf_add_service_info() 626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance() 629 pos = wpabuf_put(tmp_buf, 0); in p2p_buf_add_service_instance() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | dh_groups.c | 1221 wpabuf_put(*priv, dh->prime_len); in dh_init() 1222 wpabuf_put(pv, dh->prime_len); in dh_init() 1262 wpabuf_put(shared, shared_len); in dh_derive_shared()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | dh_groups.c | 1221 wpabuf_put(*priv, dh->prime_len); in dh_init() 1222 wpabuf_put(pv, dh->prime_len); in dh_init() 1262 wpabuf_put(shared, shared_len); in dh_derive_shared()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_attr_build.c | 222 len = wpabuf_put(msg, 2); /* to be filled */ in wps_build_wfa_ext() 257 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext() 395 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings() 400 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings() 404 data = wpabuf_put(msg, 0); in wps_build_encr_settings()
|
D | wps_upnp_web.c | 384 put_length_here = wpabuf_put(buf, 0); in web_connection_parse_get() 392 body_start = wpabuf_put(buf, 0); in web_connection_parse_get() 404 body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_parse_get() 808 put_length_here = wpabuf_put(buf, 0); in web_connection_send_reply() 816 body_start = wpabuf_put(buf, 0); in web_connection_send_reply() 851 int body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_send_reply() 1147 b = wpabuf_put(buf, 0); in web_connection_parse_subscribe() 1150 wpabuf_put(buf, os_strlen(b)); in web_connection_parse_subscribe()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_attr_build.c | 224 len = wpabuf_put(msg, 2); /* to be filled */ in wps_build_wfa_ext() 259 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext() 404 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings() 409 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings() 413 data = wpabuf_put(msg, 0); in wps_build_encr_settings()
|
D | wps_upnp_web.c | 384 put_length_here = wpabuf_put(buf, 0); in web_connection_parse_get() 392 body_start = wpabuf_put(buf, 0); in web_connection_parse_get() 404 body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_parse_get() 808 put_length_here = wpabuf_put(buf, 0); in web_connection_send_reply() 816 body_start = wpabuf_put(buf, 0); in web_connection_send_reply() 851 int body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_send_reply() 1147 b = wpabuf_put(buf, 0); in web_connection_parse_subscribe() 1150 wpabuf_put(buf, os_strlen(b)); in web_connection_parse_subscribe()
|