Home
last modified time | relevance | path

Searched refs:wpabuf_put (Results 1 – 25 of 89) sorted by relevance

1234

/external/wpa_supplicant_8/src/utils/
Dwpabuf.h36 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()
Dwpabuf.c217 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()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.c828 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 …]
Deap_eke.c451 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()
Dtncc.c1189 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh()
1192 tlv_len2 = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh()
1196 outer_len = wpabuf_put(buf, 2); in tncc_build_soh()
1199 inner_len = wpabuf_put(buf, 2); in tncc_build_soh()
1220 ssoh_len = wpabuf_put(buf, 2); in tncc_build_soh()
1267 end = wpabuf_put(buf, 0); in tncc_build_soh()
1273 end = wpabuf_put(buf, 0); in tncc_build_soh()
Deap_pax.c104 pax = wpabuf_put(resp, sizeof(*pax)); in eap_pax_alloc_resp()
206 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); in eap_pax_process_std_1()
216 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_1()
314 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_3()
Deap_gpsk.c335 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2()
360 csuite = wpabuf_put(resp, sizeof(*csuite)); in eap_gpsk_send_gpsk_2()
396 rpos = wpabuf_put(resp, miclen); in eap_gpsk_send_gpsk_2()
644 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_4()
649 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
Deap_mschapv2.c171 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_challenge_reply()
188 r = wpabuf_put(resp, sizeof(*r)); in eap_mschapv2_challenge_reply()
545 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_change_password()
549 cp = wpabuf_put(resp, sizeof(*cp)); in eap_mschapv2_change_password()
Deap_sake.c131 sake = wpabuf_put(msg, sizeof(*sake)); in eap_sake_build_msg()
264 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_challenge()
346 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c892 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 …]
Deap_server_mschapv2.c122 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()
Deap_server_pax.c97 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()
Deap_server_fast.c617 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_crypto_binding()
629 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_crypto_binding()
637 binding = wpabuf_put(buf, sizeof(*binding)); in eap_fast_build_crypto_binding()
762 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_pac()
770 pac_tlv = wpabuf_put(buf, sizeof(*pac_tlv)); in eap_fast_build_pac()
782 pac_info = wpabuf_put(buf, sizeof(*pac_info)); in eap_fast_build_pac()
808 pos = wpabuf_put(buf, 0); in eap_fast_build_pac()
/external/wpa_supplicant_8/src/common/
Dgas.c122 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()
/external/wpa_supplicant_8/wpa_supplicant/
Dp2p_supplicant_sd.c192 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/
Dp2p_build.c48 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/
Ddh_groups.c1221 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()
/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c222 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()
Dwps_upnp_web.c384 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()
Dwps_upnp_event.c160 b = wpabuf_put(buf, 0); in event_build_message()
162 wpabuf_put(buf, os_strlen(b)); in event_build_message()
Dwps_module_tests.c282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) { in wps_attr_parse_tests()
/external/wpa_supplicant_8/src/ap/
Dgas_serv.c436 realm_data_len = wpabuf_put(buf, 2); in anqp_add_nai_realm_data()
557 realm_data_len = wpabuf_put(buf, 2); in anqp_add_nai_realm()
559 realm_len = wpabuf_put(buf, 1); in anqp_add_nai_realm()
565 *realm_len = (u8 *) wpabuf_put(buf, 0) - realm_len - 1; in anqp_add_nai_realm()
740 len = wpabuf_put(buf, 2); /* OSU Provider Length to be filled */ in anqp_add_osu_provider()
743 len2 = wpabuf_put(buf, 2); in anqp_add_osu_provider()
750 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(buf, 0) - len2 - 2); in anqp_add_osu_provider()
760 count = wpabuf_put(buf, 1); in anqp_add_osu_provider()
766 len2 = wpabuf_put(buf, 2); in anqp_add_osu_provider()
769 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(buf, 0) - len2 - 2); in anqp_add_osu_provider()
[all …]
Dap_drv_ops.c124 start = wpabuf_put(beacon, 0); in hostapd_build_ap_extra_ies()
126 wpabuf_put(beacon, p - start); in hostapd_build_ap_extra_ies()
131 start = wpabuf_put(proberesp, 0); in hostapd_build_ap_extra_ies()
133 wpabuf_put(proberesp, p - start); in hostapd_build_ap_extra_ies()
150 start = wpabuf_put(assocresp, 0); in hostapd_build_ap_extra_ies()
152 wpabuf_put(assocresp, p - start); in hostapd_build_ap_extra_ies()
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.c570 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()
Deap_sim_common.c990 eap = wpabuf_put(msg->buf, sizeof(*eap)); in eap_sim_msg_init()
994 pos = wpabuf_put(msg->buf, 4); in eap_sim_msg_init()
1061 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add_full()
1066 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add_full()
1085 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add()
1092 wpabuf_put(msg->buf, len); in eap_sim_msg_add()
1094 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add()

1234