/external/wpa_supplicant_8/src/utils/ |
D | wpabuf.h | 35 void * wpabuf_put(struct wpabuf *buf, size_t len); 103 u8 *pos = wpabuf_put(buf, 1); in wpabuf_put_u8() 109 u8 *pos = wpabuf_put(buf, 2); in wpabuf_put_le16() 115 u8 *pos = wpabuf_put(buf, 4); in wpabuf_put_le32() 121 u8 *pos = wpabuf_put(buf, 2); in wpabuf_put_be16() 127 u8 *pos = wpabuf_put(buf, 3); in wpabuf_put_be24() 133 u8 *pos = wpabuf_put(buf, 4); in wpabuf_put_be32() 141 os_memcpy(wpabuf_put(buf, len), data, len); in wpabuf_put_data()
|
D | wpabuf.c | 208 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put() function 282 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | ikev2.c | 863 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 885 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sar1() 889 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sar1() 903 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 916 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sar1() 919 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 925 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 931 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 936 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sar1() 939 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sar1() [all …]
|
D | eap_pax.c | 104 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() 307 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_3()
|
D | tncc.c | 1235 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1238 tlv_len2 = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1242 outer_len = wpabuf_put(buf, 2); in tncc_build_soh() 1245 inner_len = wpabuf_put(buf, 2); in tncc_build_soh() 1266 ssoh_len = wpabuf_put(buf, 2); in tncc_build_soh() 1313 end = wpabuf_put(buf, 0); in tncc_build_soh() 1319 end = wpabuf_put(buf, 0); in tncc_build_soh()
|
D | eap_gpsk.c | 314 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2() 339 csuite = wpabuf_put(resp, sizeof(*csuite)); in eap_gpsk_send_gpsk_2() 375 rpos = wpabuf_put(resp, miclen); in eap_gpsk_send_gpsk_2() 623 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_4() 628 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
|
D | eap_mschapv2.c | 173 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_challenge_reply() 190 r = wpabuf_put(resp, sizeof(*r)); in eap_mschapv2_challenge_reply() 530 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_change_password() 534 cp = wpabuf_put(resp, sizeof(*cp)); in eap_mschapv2_change_password()
|
D | eap_sake.c | 132 sake = wpabuf_put(msg, sizeof(*sake)); in eap_sake_build_msg() 268 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_challenge() 341 rpos = wpabuf_put(resp, EAP_SAKE_MIC_LEN); in eap_sake_process_confirm()
|
D | eap_peap.c | 312 addr[0] = wpabuf_put(buf, 0); in eap_tlv_add_cryptobinding() 328 mac = wpabuf_put(buf, 20); /* Compound_MAC */ in eap_tlv_add_cryptobinding() 600 tlv = wpabuf_put(e, sizeof(*tlv)); in eap_peapv2_tlv_eap_payload() 829 nhdr = wpabuf_put(nmsg, sizeof(*nhdr)); in eap_peap_decrypt() 953 rhdr = wpabuf_put(resp, sizeof(*rhdr)); in eap_peap_decrypt() 978 rhdr = wpabuf_put(resp, sizeof(*rhdr)); in eap_peap_decrypt()
|
/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 | 124 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_challenge() 133 wpabuf_put(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge() 162 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_success_req() 171 wpabuf_put(req, sizeof(data->auth_response) * 2), in eap_mschapv2_build_success_req() 205 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_failure_req()
|
D | eap_server_pax.c | 96 pax = wpabuf_put(req, sizeof(*pax)); in eap_pax_build_std_1() 108 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_1() 137 pax = wpabuf_put(req, sizeof(*pax)); in eap_pax_build_std_3() 145 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 | 612 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_crypto_binding() 624 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_crypto_binding() 632 binding = wpabuf_put(buf, sizeof(*binding)); in eap_fast_build_crypto_binding() 757 result = wpabuf_put(buf, sizeof(*result)); in eap_fast_build_pac() 765 pac_tlv = wpabuf_put(buf, sizeof(*pac_tlv)); in eap_fast_build_pac() 777 pac_info = wpabuf_put(buf, sizeof(*pac_info)); in eap_fast_build_pac() 803 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 | 652 pos = wpabuf_put(buf, sae->tmp->prime_len); in sae_write_commit() 658 pos = wpabuf_put(buf, 2 * sae->tmp->prime_len); in sae_write_commit() 667 pos = wpabuf_put(buf, sae->tmp->prime_len); in sae_write_commit() 989 sc = wpabuf_put(buf, 0); in sae_write_confirm() 998 wpabuf_put(buf, SHA256_MAC_LEN)); in sae_write_confirm() 1004 wpabuf_put(buf, SHA256_MAC_LEN)); in sae_write_confirm()
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_build.c | 49 len = wpabuf_put(buf, 1); /* IE length to be filled */ in p2p_buf_add_ie_hdr() 60 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in p2p_buf_update_ie_hdr() 123 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_channel_list() 134 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 136 len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 159 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_device_info() 201 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_device_info() 362 len = wpabuf_put(buf, 1); in p2p_build_wps_ie()
|
D | p2p_group.c | 367 len = wpabuf_put(wfd_subelems, 2); in wifi_display_build_go_ie() 379 WPA_PUT_BE16(len, (u8 *) wpabuf_put(wfd_subelems, 0) - len - in wifi_display_build_go_ie() 418 group_info = wpabuf_put(p2p_subelems, 0); in p2p_group_build_probe_resp_ie() 424 (u8 *) wpabuf_put(p2p_subelems, 0) - group_info - in p2p_group_build_probe_resp_ie() 510 len_pos = wpabuf_put(buf, 1); in p2p_build_client_info()
|
/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() 1231 wpabuf_put(pv, pv_len); in dh_init() 1267 wpabuf_put(shared, shared_len); in dh_derive_shared()
|
D | tls_internal.c | 432 wpabuf_put(buf, res); in tls_connection_encrypt() 451 wpabuf_put(buf, res); in tls_connection_encrypt() 497 wpabuf_put(buf, res); in tls_connection_decrypt2()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 201 len = wpabuf_put(msg, 2); /* to be filled */ in wps_build_wfa_ext() 228 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext() 348 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings() 353 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings() 357 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() 736 put_length_here = wpabuf_put(buf, 0); in web_connection_send_reply() 744 body_start = wpabuf_put(buf, 0); in web_connection_send_reply() 779 int body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_send_reply() 1075 b = wpabuf_put(buf, 0); in web_connection_parse_subscribe() 1078 wpabuf_put(buf, os_strlen(b)); in web_connection_parse_subscribe()
|
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 | ap_drv_ops.c | 118 start = wpabuf_put(beacon, 0); in hostapd_build_ap_extra_ies() 120 wpabuf_put(beacon, p - start); in hostapd_build_ap_extra_ies() 125 start = wpabuf_put(proberesp, 0); in hostapd_build_ap_extra_ies() 127 wpabuf_put(proberesp, p - start); in hostapd_build_ap_extra_ies() 145 start = wpabuf_put(assocresp, 0); in hostapd_build_ap_extra_ies() 147 wpabuf_put(assocresp, p - start); in hostapd_build_ap_extra_ies()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_sim_common.c | 995 eap = wpabuf_put(msg->buf, sizeof(*eap)); in eap_sim_msg_init() 999 pos = wpabuf_put(msg->buf, 4); in eap_sim_msg_init() 1065 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add_full() 1070 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add_full() 1089 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add() 1096 wpabuf_put(msg->buf, len); in eap_sim_msg_add() 1098 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add()
|
D | ikev2_common.c | 632 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_encrypted() 636 iv = wpabuf_put(msg, iv_len); in ikev2_build_encrypted() 645 wpabuf_put(plain, pad_len); in ikev2_build_encrypted() 656 icv = wpabuf_put(msg, integ_alg->hash_len); in ikev2_build_encrypted() 657 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_encrypted()
|