/external/wpa_supplicant_8/wpa_supplicant/ |
D | wifi_display.c | 51 len += wpabuf_len(global->wfd_subelem[i]); in wifi_display_get_wfd_ie() 134 len += wpabuf_len(global->wfd_subelem[ in wifi_display_update_wfd_ie() 137 len += wpabuf_len(global->wfd_subelem[ in wifi_display_update_wfd_ie() 140 len += wpabuf_len(global->wfd_subelem[ in wifi_display_update_wfd_ie() 143 len += wpabuf_len(global->wfd_subelem[ in wifi_display_update_wfd_ie() 146 len += wpabuf_len(global->wfd_subelem[WFD_SUBELEM_EXT_CAPAB]); in wifi_display_update_wfd_ie() 294 ie, ie ? (unsigned long) wpabuf_len(ie) : 0); in wifi_display_subelem_set_from_ies() 296 if (ie == NULL || wpabuf_len(ie) < 6) in wifi_display_subelem_set_from_ies() 300 end = pos + wpabuf_len(ie); in wifi_display_subelem_set_from_ies() 352 wpabuf_len(ie)); in wifi_display_subelem_get() [all …]
|
D | nfc_pw_token.c | 29 len = wpabuf_len(buf); in print_bin() 62 wpabuf_len(buf)); in main() 66 wpabuf_len(ndef)); in main()
|
D | offchannel.c | 128 wpabuf_len(wpa_s->pending_action_tx), in wpas_send_action_cb() 140 wpabuf_len(wpa_s->pending_action_tx), in wpas_send_action_cb() 174 if (data_len - wpabuf_len(wpa_s->pending_action_tx) != 24 || in offchannel_send_action_tx_status() 176 wpabuf_len(wpa_s->pending_action_tx)) != 0) { in offchannel_send_action_tx_status() 284 wpabuf_len(wpa_s->pending_action_tx), in offchannel_send_action()
|
D | p2p_supplicant_sd.c | 155 len = wpabuf_len(query); in wpas_p2p_service_get_bonjour() 158 if (len == wpabuf_len(bsrv->query) && in wpas_p2p_service_get_bonjour() 241 5 + wpabuf_len(bsrv->query) + wpabuf_len(bsrv->resp)) in wpas_sd_all_bonjour() 251 wpabuf_len(bsrv->resp)); in wpas_sd_all_bonjour() 266 if (query_len < 3 || wpabuf_len(bsrv->query) < 3) in match_bonjour_query() 269 wpabuf_head_u8(bsrv->query) + wpabuf_len(bsrv->query) - 3, in match_bonjour_query() 272 if (query_len == wpabuf_len(bsrv->query) && in match_bonjour_query() 281 wpabuf_len(bsrv->query) - 3, 0)) in match_bonjour_query() 316 5 + query_len + wpabuf_len(bsrv->resp)) in wpas_sd_req_bonjour() 330 wpabuf_len(bsrv->resp)); in wpas_sd_req_bonjour() [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | wpabuf.c | 171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); in wpabuf_dup() 173 wpabuf_put_data(buf, wpabuf_head(src), wpabuf_len(src)); in wpabuf_dup() 211 os_memset(wpabuf_mhead(buf), 0, wpabuf_len(buf)); in wpabuf_clear_free() 219 void *tmp = wpabuf_mhead_u8(buf) + wpabuf_len(buf); in wpabuf_put() 246 len += wpabuf_len(a); in wpabuf_concat() 248 len += wpabuf_len(b); in wpabuf_concat() 285 blen = wpabuf_len(buf); in wpabuf_zeropad() 303 void *tmp = wpabuf_mhead_u8(buf) + wpabuf_len(buf); in wpabuf_printf()
|
D | ext_password.c | 94 if (mlock(wpabuf_head(buf), wpabuf_len(buf)) < 0) { in ext_password_alloc() 108 os_memset(wpabuf_mhead(pw), 0, wpabuf_len(pw)); in ext_password_free() 110 if (munlock(wpabuf_head(pw), wpabuf_len(pw)) < 0) { in ext_password_free()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_common.c | 35 if (wpabuf_len(msg) < sizeof(*hdr)) { in eap_hdr_len_valid() 41 if (len < sizeof(*hdr) + min_payload || len > wpabuf_len(msg)) { in eap_hdr_len_valid() 171 if (wpabuf_len(msg) < sizeof(*hdr)) in eap_update_len() 173 hdr->length = host_to_be16(wpabuf_len(msg)); in eap_update_len() 186 if (wpabuf_len(msg) < sizeof(*eap)) in eap_get_id() 201 if (wpabuf_len(msg) < sizeof(struct eap_hdr) + 1) in eap_get_type()
|
D | eap_sim_common.c | 173 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN || in eap_sim_verify_mac() 175 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN) in eap_sim_verify_mac() 178 tmp = os_malloc(wpabuf_len(req)); in eap_sim_verify_mac() 183 len[0] = wpabuf_len(req); in eap_sim_verify_mac() 188 os_memcpy(tmp, wpabuf_head(req), wpabuf_len(req)); in eap_sim_verify_mac() 191 tmp, wpabuf_len(req)); in eap_sim_verify_mac() 368 if (mac == NULL || wpabuf_len(req) < EAP_SIM_MAC_LEN || in eap_sim_verify_mac_sha256() 370 mac > wpabuf_head_u8(req) + wpabuf_len(req) - EAP_SIM_MAC_LEN) in eap_sim_verify_mac_sha256() 373 tmp = os_malloc(wpabuf_len(req)); in eap_sim_verify_mac_sha256() 378 len[0] = wpabuf_len(req); in eap_sim_verify_mac_sha256() [all …]
|
/external/wpa_supplicant_8/src/radius/ |
D | radius.c | 378 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish() 380 wpabuf_len(msg->buf), (u8 *) (attr + 1)); in radius_msg_finish() 382 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish() 384 if (wpabuf_len(msg->buf) > 0xffff) { in radius_msg_finish() 386 (unsigned long) wpabuf_len(msg->buf)); in radius_msg_finish() 408 msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); in radius_msg_finish_srv() 412 wpabuf_len(msg->buf), (u8 *) (attr + 1)); in radius_msg_finish_srv() 420 len[2] = wpabuf_len(msg->buf) - sizeof(struct radius_hdr); in radius_msg_finish_srv() 425 if (wpabuf_len(msg->buf) > 0xffff) { in radius_msg_finish_srv() 427 (unsigned long) wpabuf_len(msg->buf)); in radius_msg_finish_srv() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 81 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key() 174 len[0] = wpabuf_len(wps->last_msg); in wps_build_authenticator() 176 len[1] = wpabuf_len(msg); in wps_build_authenticator() 347 wpabuf_len(msg), hash); in wps_build_key_wrap_auth() 366 pad_len = block_size - wpabuf_len(plain) % block_size; in wps_build_encr_settings() 370 wpabuf_put_be16(msg, block_size + wpabuf_len(plain)); in wps_build_encr_settings() 378 if (aes_128_cbc_encrypt(wps->keywrapkey, iv, data, wpabuf_len(plain))) in wps_build_encr_settings() 397 hash_len = wpabuf_len(pubkey); in wps_build_oob_dev_pw() 431 ie = wpabuf_alloc(wpabuf_len(data) + 100); in wps_ie_encapsulate() 438 end = pos + wpabuf_len(data); in wps_ie_encapsulate()
|
D | http_client.c | 92 (unsigned long) wpabuf_len(c->req), in http_client_tx_ready() 93 (unsigned long) wpabuf_len(c->req) - c->req_pos); in http_client_tx_ready() 96 wpabuf_len(c->req) - c->req_pos, 0); in http_client_tx_ready() 105 if ((size_t) res < wpabuf_len(c->req) - c->req_pos) { in http_client_tx_ready() 108 res, (unsigned long) wpabuf_len(c->req), in http_client_tx_ready() 109 (unsigned long) wpabuf_len(c->req) - c->req_pos - in http_client_tx_ready()
|
D | http_server.c | 137 (unsigned long) wpabuf_len(resp), in http_request_send() 141 res = send(req->fd, wpabuf_head(resp), wpabuf_len(resp), 0); in http_request_send() 145 } else if ((size_t) res < wpabuf_len(resp)) { in http_request_send() 147 res, (unsigned long) wpabuf_len(resp)); in http_request_send()
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_sd.c | 29 end = pos + wpabuf_len(wfd); in wfd_wsd_supported() 177 buf = gas_anqp_build_initial_req(0, 100 + wpabuf_len(tlvs)); in p2p_build_sd_query() 205 wpabuf_head(req), wpabuf_len(req), 200) < 0) in p2p_send_gas_comeback_req() 222 100 + (tlvs ? wpabuf_len(tlvs) : 0)); in p2p_build_sd_response() 309 wpabuf_head(req), wpabuf_len(req), wait_time) < 0) { in p2p_start_sd() 422 if (wpabuf_len(resp_tlvs) > 1400) { in p2p_sd_response() 458 wpabuf_head(resp), wpabuf_len(resp), 200) < 0) in p2p_sd_response() 633 frag_len = wpabuf_len(p2p->sd_resp) - p2p->sd_resp_pos; in p2p_rx_gas_comeback_req() 643 wpabuf_len(p2p->sd_resp)); in p2p_rx_gas_comeback_req() 653 (int) (wpabuf_len(p2p->sd_resp) - p2p->sd_resp_pos)); in p2p_rx_gas_comeback_req() [all …]
|
D | p2p_group.c | 131 if (wpabuf_tailroom(ie) < wpabuf_len(m->client_info) + 1) in p2p_client_info() 169 wpabuf_put_le16(ie, wpabuf_len(noa)); in p2p_group_add_noa() 183 len = wpabuf_len(subelems) + 100; in p2p_group_encaps_probe_resp() 190 end = pos + wpabuf_len(subelems); in p2p_group_encaps_probe_resp() 215 extra = wpabuf_len(group->p2p->wfd_ie_beacon); in p2p_group_build_beacon_ie() 220 extra += wpabuf_len(group->p2p->vendor_elem[VENDOR_ELEM_BEACON_P2P_GO]); in p2p_group_build_beacon_ie() 262 ie = wpabuf_alloc(wpabuf_len(subelems) + 100); in wifi_display_encaps() 267 end = pos + wpabuf_len(subelems); in wifi_display_encaps() 298 end = pos + wpabuf_len(m->wfd_ie); in wifi_display_add_dev_info_descr() 363 wfd_subelems = wpabuf_alloc(wpabuf_len(group->p2p->wfd_ie_probe_resp) + in wifi_display_build_go_ie() [all …]
|
/external/wpa_supplicant_8/src/ap/ |
D | hs20.c | 137 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification() 155 buf = wpabuf_alloc(4 + 6 + wpabuf_len(payload)); in hs20_send_wnm_notification_deauth_req() 166 wpabuf_put_u8(buf, 4 + wpabuf_len(payload)); in hs20_send_wnm_notification_deauth_req() 172 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification_deauth_req()
|
D | beacon.c | 374 buflen += wpabuf_len(hapd->wps_probe_resp_ie); in hostapd_gen_probe_resp() 378 buflen += wpabuf_len(hapd->p2p_probe_resp_ie); in hostapd_gen_probe_resp() 381 buflen += wpabuf_len(hapd->conf->vendor_elements); in hostapd_gen_probe_resp() 467 wpabuf_len(hapd->wps_probe_resp_ie)); in hostapd_gen_probe_resp() 468 pos += wpabuf_len(hapd->wps_probe_resp_ie); in hostapd_gen_probe_resp() 476 wpabuf_len(hapd->p2p_probe_resp_ie)); in hostapd_gen_probe_resp() 477 pos += wpabuf_len(hapd->p2p_probe_resp_ie); in hostapd_gen_probe_resp() 493 wpabuf_len(hapd->conf->vendor_elements)); in hostapd_gen_probe_resp() 494 pos += wpabuf_len(hapd->conf->vendor_elements); in hostapd_gen_probe_resp() 794 tail_len += wpabuf_len(hapd->wps_beacon_ie); in ieee802_11_build_ap_params() [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_tls_common.c | 382 tls_in_len = data->tls_in ? wpabuf_len(data->tls_in) : 0; in eap_peer_tls_reassemble_fragment() 383 in_len = in_data ? wpabuf_len(in_data) : 0; in eap_peer_tls_reassemble_fragment() 453 if (data->tls_in_left > wpabuf_len(in_data) || data->tls_in) { in eap_peer_tls_data_reassemble() 545 len = wpabuf_len(data->tls_out) - data->tls_out_pos; in eap_tls_process_output() 549 (unsigned long) wpabuf_len(data->tls_out)); in eap_tls_process_output() 564 (wpabuf_len(data->tls_out) > data->tls_out_limit || in eap_tls_process_output() 589 wpabuf_put_be32(*out_data, wpabuf_len(data->tls_out)); in eap_tls_process_output() 641 if (data->tls_out && wpabuf_len(data->tls_out) > 0 && in eap_peer_tls_process_helper() 642 wpabuf_len(in_data) > 0) { in eap_peer_tls_process_helper() 648 if (data->tls_out == NULL || wpabuf_len(data->tls_out) == 0) { in eap_peer_tls_process_helper() [all …]
|
D | eap_peap.c | 645 wpabuf_len(buf), in eap_peap_phase2_request() 747 " Phase 2", (unsigned long) wpabuf_len(in_data)); in eap_peap_decrypt() 760 if (wpabuf_len(in_data) == 0 && sm->workaround && in eap_peap_decrypt() 772 } else if (wpabuf_len(in_data) == 0) { in eap_peap_decrypt() 788 if (wpabuf_len(in_decrypted) == 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt() 795 if (wpabuf_len(in_decrypted) >= 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt() 803 wpabuf_len(in_decrypted)); in eap_peap_decrypt() 813 wpabuf_len(in_decrypted)); in eap_peap_decrypt() 820 if (wpabuf_len(in_decrypted) < sizeof(*hdr)) { in eap_peap_decrypt() 823 (unsigned long) wpabuf_len(in_decrypted)); in eap_peap_decrypt() [all …]
|
D | eap_tnc.c | 95 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_tnc_build_msg() 115 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); in eap_tnc_build_msg() 124 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_tnc_build_msg() 134 (unsigned long) wpabuf_len(data->out_buf) - in eap_tnc_build_msg() 311 wpabuf_len(data->in_buf)); in eap_tnc_process() 397 wpabuf_head(resp), wpabuf_len(resp)); in eap_tnc_process()
|
/external/wpa_supplicant_8/src/crypto/ |
D | tls_internal.c | 437 in_data ? wpabuf_len(in_data) : 0, in tls_connection_handshake2() 481 wpabuf_len(in_data), &res_len); in tls_connection_server_handshake() 507 buf = wpabuf_alloc(wpabuf_len(in_data) + 300); in tls_connection_encrypt() 511 wpabuf_len(in_data), in tls_connection_encrypt() 526 buf = wpabuf_alloc(wpabuf_len(in_data) + 300); in tls_connection_encrypt() 530 wpabuf_len(in_data), in tls_connection_encrypt() 564 wpabuf_len(in_data), in tls_connection_decrypt2() 572 buf = wpabuf_alloc((wpabuf_len(in_data) + 500) * 3); in tls_connection_decrypt2() 576 wpabuf_len(in_data), in tls_connection_decrypt2()
|
D | dh_groups.c | 1224 wpabuf_head(*priv), wpabuf_len(*priv), in dh_init() 1259 if (crypto_mod_exp(wpabuf_head(peer_public), wpabuf_len(peer_public), in dh_derive_shared() 1260 wpabuf_head(own_private), wpabuf_len(own_private), in dh_derive_shared()
|
/external/wpa_supplicant_8/src/common/ |
D | gas.c | 155 payload ? wpabuf_len(payload) : 0); in gas_anqp_build_initial_resp_buf() 197 payload ? wpabuf_len(payload) : 0); in gas_anqp_build_comeback_resp_buf() 223 if (buf == NULL || wpabuf_len(buf) < 2) in gas_anqp_set_len() 241 if (wpabuf_len(buf) < offset + 2) in gas_anqp_set_len()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_tnc.c | 168 wpabuf_head(req), wpabuf_len(req)); in eap_tnc_build() 227 send_len = wpabuf_len(data->out_buf) - data->out_used; in eap_tnc_build_msg() 247 wpabuf_put_be32(req, wpabuf_len(data->out_buf)); in eap_tnc_build_msg() 253 if (data->out_used == wpabuf_len(data->out_buf)) { in eap_tnc_build_msg() 267 (unsigned long) wpabuf_len(data->out_buf) - in eap_tnc_build_msg() 365 wpabuf_len(inbuf)); in tncs_process() 531 wpabuf_head(data->in_buf), wpabuf_len(data->in_buf)); in eap_tnc_process()
|
D | eap_server_peap.c | 218 req_len = wpabuf_len(buf); in eap_peap_build_phase2_req() 249 buf = eap_msg_alloc(EAP_VENDOR_MICROSOFT, 0x21, wpabuf_len(buf1), in eap_peap_build_phase2_soh() 259 req_len = wpabuf_len(buf); in eap_peap_build_phase2_soh() 352 mlen += wpabuf_len(data->soh_response); in eap_peap_build_phase2_tlv() 892 if (wpabuf_len(in_data) > sizeof(*hdr) && *pos == EAP_TYPE_NAK) { in eap_peap_process_phase2_response() 893 left = wpabuf_len(in_data) - sizeof(*hdr); in eap_peap_process_phase2_response() 1020 " Phase 2", (unsigned long) wpabuf_len(in_buf)); in eap_peap_process_phase2() 1049 wpabuf_len(in_decrypted)); in eap_peap_process_phase2() 1060 wpabuf_len(in_decrypted)); in eap_peap_process_phase2() 1068 if (wpabuf_len(in_decrypted) < (int) sizeof(*hdr)) { in eap_peap_process_phase2() [all …]
|
D | eap_server_tls_common.c | 174 send_len = wpabuf_len(data->tls_out) - data->tls_out_pos; in eap_server_tls_build_msg() 194 wpabuf_put_be32(req, wpabuf_len(data->tls_out)); in eap_server_tls_build_msg() 200 if (data->tls_out_pos == wpabuf_len(data->tls_out)) { in eap_server_tls_build_msg() 211 (unsigned long) wpabuf_len(data->tls_out) - in eap_server_tls_build_msg() 445 (unsigned long) wpabuf_len(respData), flags); in eap_server_tls_process()
|