/external/wpa_supplicant_8/src/utils/ |
D | wpabuf.h | 36 void * wpabuf_put(struct wpabuf *buf, size_t len); 104 u8 *pos = (u8 *) wpabuf_put(buf, 1); in wpabuf_put_u8() 110 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_le16() 116 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_le32() 122 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_be16() 128 u8 *pos = (u8 *) wpabuf_put(buf, 3); in wpabuf_put_be24() 134 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_be32() 142 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 291 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | ikev2.c | 829 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 851 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sar1() 855 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sar1() 860 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 869 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sar1() 872 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 878 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 884 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 889 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sar1() 892 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sar1() [all …]
|
D | eap_eke.c | 453 rpos = wpabuf_put(resp, data->sess.dhcomp_len); in eap_eke_process_commit() 475 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_commit() 481 wpabuf_put(resp, 0), prot_len); in eap_eke_process_commit() 482 wpabuf_put(resp, prot_len); in eap_eke_process_commit() 591 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_confirm() 596 wpabuf_put(resp, prot_len); in eap_eke_process_confirm() 598 auth = wpabuf_put(resp, data->sess.prf_len); in eap_eke_process_confirm()
|
D | tncc.c | 1190 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1193 tlv_len2 = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1197 outer_len = wpabuf_put(buf, 2); in tncc_build_soh() 1200 inner_len = wpabuf_put(buf, 2); in tncc_build_soh() 1221 ssoh_len = wpabuf_put(buf, 2); in tncc_build_soh() 1268 end = wpabuf_put(buf, 0); in tncc_build_soh() 1274 end = wpabuf_put(buf, 0); in tncc_build_soh()
|
D | eap_pax.c | 105 pax = wpabuf_put(resp, sizeof(*pax)); in eap_pax_alloc_resp() 207 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); in eap_pax_process_std_1() 217 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_1() 308 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_3()
|
D | eap_gpsk.c | 338 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2() 363 csuite = wpabuf_put(resp, sizeof(*csuite)); in eap_gpsk_send_gpsk_2() 399 rpos = wpabuf_put(resp, miclen); in eap_gpsk_send_gpsk_2() 647 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_4() 652 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
|
D | eap_sake.c | 132 sake = wpabuf_put(msg, sizeof(*sake)); in eap_sake_build_msg() 266 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_challenge() 339 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | ikev2.c | 893 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 915 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sai() 920 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sai() 925 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 934 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sai() 937 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 943 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 949 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 954 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sai() 957 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sai() [all …]
|
D | eap_server_mschapv2.c | 123 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_challenge() 132 wpabuf_put(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge() 161 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_success_req() 170 wpabuf_put(req, sizeof(data->auth_response) * 2), in eap_mschapv2_build_success_req() 204 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_failure_req()
|
D | eap_server_pax.c | 97 pax = wpabuf_put(req, sizeof(*pax)); in eap_pax_build_std_1() 109 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_1() 138 pax = wpabuf_put(req, sizeof(*pax)); in eap_pax_build_std_3() 146 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_3() 155 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_3()
|
D | eap_server_fast.c | 619 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_crypto_binding() 631 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_crypto_binding() 639 binding = wpabuf_put(buf, sizeof(*binding)); in eap_fast_build_crypto_binding() 764 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_pac() 772 pac_tlv = wpabuf_put(buf, sizeof(*pac_tlv)); in eap_fast_build_pac() 784 pac_info = wpabuf_put(buf, sizeof(*pac_info)); in eap_fast_build_pac() 810 pos = wpabuf_put(buf, 0); in eap_fast_build_pac()
|
/external/wpa_supplicant_8/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.c | 858 pos = wpabuf_put(buf, sae->tmp->prime_len); in sae_write_commit() 864 pos = wpabuf_put(buf, 2 * sae->tmp->prime_len); in sae_write_commit() 873 pos = wpabuf_put(buf, sae->tmp->prime_len); in sae_write_commit() 1236 sc = wpabuf_put(buf, 0); in sae_write_confirm() 1245 wpabuf_put(buf, SHA256_MAC_LEN)); in sae_write_confirm() 1251 wpabuf_put(buf, SHA256_MAC_LEN)); in sae_write_confirm()
|
/external/wpa_supplicant_8/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 …]
|
/external/wpa_supplicant_8/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 …]
|
/external/wpa_supplicant_8/src/crypto/ |
D | dh_groups.c | 1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) in dh_init() 1236 wpabuf_put(pv, pv_len); in dh_init() 1272 wpabuf_put(shared, shared_len); in dh_derive_shared()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 220 len = wpabuf_put(msg, 2); /* to be filled */ in wps_build_wfa_ext() 247 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext() 385 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings() 390 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings() 394 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()
|
D | wps_module_tests.c | 281 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) { in wps_attr_parse_tests()
|
D | wps_upnp_event.c | 160 b = wpabuf_put(buf, 0); in event_build_message() 162 wpabuf_put(buf, os_strlen(b)); in event_build_message()
|
/external/wpa_supplicant_8/src/ap/ |
D | gas_serv.c | 380 realm_data_len = wpabuf_put(buf, 2); in anqp_add_nai_realm_data() 501 realm_data_len = wpabuf_put(buf, 2); in anqp_add_nai_realm() 503 realm_len = wpabuf_put(buf, 1); in anqp_add_nai_realm() 509 *realm_len = (u8 *) wpabuf_put(buf, 0) - realm_len - 1; in anqp_add_nai_realm() 631 len = wpabuf_put(buf, 2); /* OSU Provider Length to be filled */ in anqp_add_osu_provider() 634 len2 = wpabuf_put(buf, 2); in anqp_add_osu_provider() 641 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(buf, 0) - len2 - 2); in anqp_add_osu_provider() 651 count = wpabuf_put(buf, 1); in anqp_add_osu_provider() 657 len2 = wpabuf_put(buf, 2); in anqp_add_osu_provider() 678 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(buf, 0) - len2 - 2); in anqp_add_osu_provider() [all …]
|
D | ap_drv_ops.c | 116 start = wpabuf_put(beacon, 0); in hostapd_build_ap_extra_ies() 118 wpabuf_put(beacon, p - start); in hostapd_build_ap_extra_ies() 123 start = wpabuf_put(proberesp, 0); in hostapd_build_ap_extra_ies() 125 wpabuf_put(proberesp, p - start); in hostapd_build_ap_extra_ies() 142 start = wpabuf_put(assocresp, 0); in hostapd_build_ap_extra_ies() 144 wpabuf_put(assocresp, p - start); in hostapd_build_ap_extra_ies()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | ikev2_common.c | 570 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_encrypted() 574 iv = wpabuf_put(msg, iv_len); in ikev2_build_encrypted() 583 wpabuf_put(plain, pad_len); in ikev2_build_encrypted() 594 icv = wpabuf_put(msg, integ_alg->hash_len); in ikev2_build_encrypted() 595 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_encrypted()
|
D | eap_sim_common.c | 993 eap = wpabuf_put(msg->buf, sizeof(*eap)); in eap_sim_msg_init() 997 pos = wpabuf_put(msg->buf, 4); in eap_sim_msg_init() 1064 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add_full() 1069 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add_full() 1088 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add() 1095 wpabuf_put(msg->buf, len); in eap_sim_msg_add() 1097 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add()
|