Home
last modified time | relevance | path

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

12345678

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dwpabuf.h36 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()
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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Dikev2.c830 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 …]
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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
Dsae_pk.c477 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/
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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_attr_build.c224 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()
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()

12345678