/freebsd/contrib/wpa/src/utils/ |
H A D | wpabuf.c | 55 *_buf = wpabuf_alloc(add_len); in wpabuf_resize() 113 struct wpabuf * wpabuf_alloc(size_t len) in wpabuf_alloc() function 162 struct wpabuf *buf = wpabuf_alloc(len); in wpabuf_alloc_copy() 171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); in wpabuf_dup() 249 n = wpabuf_alloc(len); in wpabuf_concat() 287 ret = wpabuf_alloc(len); in wpabuf_zeropad() 330 ret = wpabuf_alloc(len); in wpabuf_parse_bin()
|
H A D | browser-system.c | 48 resp = wpabuf_alloc(1); in http_req()
|
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_common.c | 171 decrypted = wpabuf_alloc(encr_len - block_size); in wps_decrypt_encr_settings() 362 plain = wpabuf_alloc(500); in wps_get_oob_cred() 418 data = wpabuf_alloc(200); in wps_build_nfc_pw_token() 581 msg = wpabuf_alloc(1000); in wps_build_wsc_ack() 604 msg = wpabuf_alloc(1000); in wps_build_wsc_nack() 679 pw = wpabuf_alloc(WPS_OOB_DEVICE_PASSWORD_LEN); in wps_nfc_token_gen() 721 msg = wpabuf_alloc(1000); in wps_build_nfc_handover_req() 802 msg = wpabuf_alloc(1000); in wps_build_nfc_handover_sel() 839 msg = wpabuf_alloc(1000); in wps_build_nfc_handover_req_p2p() 883 msg = wpabuf_alloc(1000); in wps_build_nfc_handover_sel_p2p()
|
H A D | wps_upnp_web.c | 351 buf = wpabuf_alloc(200); in web_connection_parse_get() 368 buf = wpabuf_alloc(1000 + extra_len); in web_connection_parse_get() 778 buf = wpabuf_alloc(1000 + (replydata ? os_strlen(replydata) : 0U) + in web_connection_send_reply() 1002 buf = wpabuf_alloc(1000); in web_connection_parse_subscribe() 1321 buf = wpabuf_alloc(200); in web_connection_parse_unsubscribe() 1335 buf = wpabuf_alloc(200); in web_connection_unimplemented()
|
H A D | wps_module_tests.c | 279 buf = wpabuf_alloc(len); in wps_attr_parse_tests()
|
H A D | wps_enrollee.c | 116 msg = wpabuf_alloc(1000); in wps_build_m1() 189 msg = wpabuf_alloc(1000); in wps_build_m3() 214 plain = wpabuf_alloc(200); in wps_build_m5() 218 msg = wpabuf_alloc(1000); in wps_build_m5() 383 plain = wpabuf_alloc(500 + wps->wps->ap_settings_len); in wps_build_m7() 387 msg = wpabuf_alloc(1000 + wps->wps->ap_settings_len); in wps_build_m7() 429 msg = wpabuf_alloc(1000); in wps_build_wsc_done()
|
H A D | wps.c | 426 ie = wpabuf_alloc(100); in wps_build_assoc_req_ie() 460 ie = wpabuf_alloc(100); in wps_build_assoc_resp_ie() 505 ie = wpabuf_alloc(500); in wps_build_probe_req_ie()
|
/freebsd/contrib/wpa/src/common/ |
H A D | dpp_backup.c | 55 buf = wpabuf_alloc(len); in dpp_build_conf_params() 98 attr = wpabuf_alloc(100 + wpabuf_len(conf_params)); in dpp_build_attribute() 140 params = wpabuf_alloc(20); in dpp_build_key_alg() 179 key = wpabuf_alloc(100 + wpabuf_len(alg) + wpabuf_len(priv_key) + in dpp_build_key_pkg() 245 params = wpabuf_alloc(100 + wpabuf_len(salt) + wpabuf_len(prf)); in dpp_build_pbkdf2_alg_id() 274 salt = wpabuf_alloc(64); in dpp_build_pw_recipient_info() 295 enc_key = wpabuf_alloc(hash_len + AES_BLOCK_SIZE); in dpp_build_pw_recipient_info() 318 pwri = wpabuf_alloc(100 + wpabuf_len(key_der_alg) + in dpp_build_pw_recipient_info() 403 enc_cont = wpabuf_alloc(enc_cont_len); in dpp_build_enc_cont_info() 411 enc_cont_info = wpabuf_alloc(100 + wpabuf_len(enc_alg) + in dpp_build_enc_cont_info() [all …]
|
H A D | gas.c | 22 buf = wpabuf_alloc(100 + size); in gas_build_req() 53 buf = wpabuf_alloc(100 + size); in gas_build_resp()
|
H A D | common_module_tests.c | 233 buf = wpabuf_alloc(1); in gas_tests() 239 buf = wpabuf_alloc(20); in gas_tests() 393 buf = wpabuf_alloc(1000); in sae_tests()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | dh_groups.c | 1202 *priv = wpabuf_alloc(dh->prime_len); in dh_init() 1207 pv = wpabuf_alloc(pv_len); in dh_init() 1248 shared = wpabuf_alloc(shared_len); in dh_derive_shared()
|
H A D | crypto_wolfssl.c | 953 privkey = wpabuf_alloc(RFC3526_LEN); in dh5_init() 954 pubkey = wpabuf_alloc(RFC3526_LEN); in dh5_init() 1042 secret = wpabuf_alloc(RFC3526_LEN); in dh5_derive_shared() 2205 buf = wpabuf_alloc(inc_y ? 2 * len : len); in crypto_ecdh_get_pubkey() 2245 pubkey = wpabuf_alloc(1 + 2 * key_len); in crypto_ecdh_set_peerkey() 2247 LOG_WOLF_ERROR_FUNC_NULL(wpabuf_alloc); in crypto_ecdh_set_peerkey() 2266 secret = wpabuf_alloc(key_len); in crypto_ecdh_set_peerkey() 2268 LOG_WOLF_ERROR_FUNC_NULL(wpabuf_alloc); in crypto_ecdh_set_peerkey() 2459 ret = wpabuf_alloc(der_len); in crypto_ec_key_get_subject_public_key() 2461 LOG_WOLF_ERROR_FUNC_NULL(wpabuf_alloc); in crypto_ec_key_get_subject_public_key() [all …]
|
H A D | tls_internal.c | 537 return wpabuf_alloc(0); in tls_connection_server_handshake() 561 buf = wpabuf_alloc(wpabuf_len(in_data) + 300); in tls_connection_encrypt() 580 buf = wpabuf_alloc(wpabuf_len(in_data) + 300); in tls_connection_encrypt() 626 buf = wpabuf_alloc((wpabuf_len(in_data) + 500) * 3); in tls_connection_decrypt2()
|
H A D | crypto_openssl.c | 998 pubkey = wpabuf_alloc(publen); in dh5_init() 1002 privkey = wpabuf_alloc(privlen); in dh5_init() 1047 !(pubkey = wpabuf_alloc(pub_len)) || in dh5_init() 1048 !(privkey = wpabuf_alloc(priv_len)) || in dh5_init() 1099 pubkey = wpabuf_alloc(publen); in dh5_init() 1103 privkey = wpabuf_alloc(privlen); in dh5_init() 1250 !(res = wpabuf_alloc(len)) || in dh5_derive_shared() 1279 res = wpabuf_alloc(rlen); in dh5_derive_shared() 2813 buf = wpabuf_alloc(inc_y ? 2 * len : len); in crypto_ecdh_get_pubkey() 2886 !(res = wpabuf_alloc(res_len)) || in crypto_ecdh_set_peerkey() [all …]
|
/freebsd/contrib/wpa/src/ap/ |
H A D | hs20.c | 122 buf = wpabuf_alloc(4 + 7 + len); in hs20_send_wnm_notification() 164 buf = wpabuf_alloc(4 + 6 + wpabuf_len(payload)); in hs20_send_wnm_notification_deauth_req() 209 buf = wpabuf_alloc(4 + 7 + url_len); in hs20_send_wnm_notification_t_c()
|
H A D | rrm.c | 213 buf = wpabuf_alloc(3 + IEEE80211_MAX_MMPDU_SIZE); in hostapd_send_nei_report_resp() 444 buf = wpabuf_alloc(5 + 10); in hostapd_send_lci_req() 531 buf = wpabuf_alloc(7 + 255); in hostapd_send_range_req() 685 buf = wpabuf_alloc(5 + 2 + 3 + wpabuf_len(req)); in hostapd_send_beacon_req() 766 buf = wpabuf_alloc(5); in hostapd_send_link_measurement_req()
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | twt.c | 47 buf = wpabuf_alloc(3 + 17); in wpas_twt_send_setup() 118 buf = wpabuf_alloc(3); in wpas_twt_send_teardown()
|
H A D | wifi_display.c | 54 ie = wpabuf_alloc(len); in wifi_display_get_wfd_ie() 155 buf = wpabuf_alloc(len); in wifi_display_update_wfd_ie() 258 e = wpabuf_alloc(len); in wifi_display_subelem_set() 279 e = wpabuf_alloc(1 + len); in wifi_display_subelem_set()
|
H A D | mbo.c | 243 mbo = wpabuf_alloc(len - MBO_IE_HEADER); in wpas_mbo_ie() 289 buf = wpabuf_alloc(4 + len); in wpas_mbo_send_wnm_notification() 318 buf = wpabuf_alloc(512); in wpas_mbo_non_pref_chan_changed() 635 anqp_buf = wpabuf_alloc(9 + MAX_MBO_ANQP_SUBTYPE); in mbo_build_anqp_buf()
|
/freebsd/contrib/wpa/src/p2p/ |
H A D | p2p_group.c | 186 ie = wpabuf_alloc(len); in p2p_group_encaps_probe_resp() 223 ie = wpabuf_alloc(257 + extra); in p2p_group_build_beacon_ie() 263 ie = wpabuf_alloc(wpabuf_len(subelems) + 100); in wifi_display_encaps() 364 wfd_subelems = wpabuf_alloc(wpabuf_len(group->p2p->wfd_ie_probe_resp) + in wifi_display_build_go_ie() 447 p2p_subelems = wpabuf_alloc(500); in p2p_group_build_probe_resp_ie() 539 buf = wpabuf_alloc(ETH_ALEN + 1 + 1 + msg.p2p_device_info_len); in p2p_build_client_info() 667 resp = wpabuf_alloc(20 + extra); in p2p_group_assoc_resp_ie() 900 buf = wpabuf_alloc(100); in p2p_build_go_disc_req()
|
H A D | p2p_dev_disc.c | 24 buf = wpabuf_alloc(100); in p2p_build_dev_disc_req() 115 buf = wpabuf_alloc(100); in p2p_build_dev_disc_resp()
|
/freebsd/contrib/wpa/src/eap_common/ |
H A D | eap_teap_common.c | 57 e = wpabuf_alloc(sizeof(struct teap_tlv_hdr) + wpabuf_len(buf)); in eap_teap_tlv_eap_payload() 660 buf = wpabuf_alloc(sizeof(*result)); in eap_teap_tlv_result() 681 buf = wpabuf_alloc(4 + 4); in eap_teap_tlv_error() 697 buf = wpabuf_alloc(4 + 2); in eap_teap_tlv_identity_type()
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | ikev2.c | 409 data->i_dh_public = wpabuf_alloc(kei_len - 4); in ikev2_process_kei() 1085 msg = wpabuf_alloc(sizeof(struct ikev2_hdr) + data->IDr_len + 1500); in ikev2_build_sa_init() 1110 struct wpabuf *plain = wpabuf_alloc(data->IDr_len + 1000); in ikev2_build_sa_init() 1147 msg = wpabuf_alloc(sizeof(struct ikev2_hdr) + data->IDr_len + 1000); in ikev2_build_sa_auth() 1152 plain = wpabuf_alloc(data->IDr_len + 1000); in ikev2_build_sa_auth() 1181 msg = wpabuf_alloc(sizeof(struct ikev2_hdr) + 1000); in ikev2_build_notify() 1186 struct wpabuf *plain = wpabuf_alloc(100); in ikev2_build_notify()
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_introspect.c | 41 iface->xml = wpabuf_alloc(16000); in add_interface() 260 xml = wpabuf_alloc(30000); in wpa_dbus_introspect()
|
/freebsd/contrib/wpa/src/pasn/ |
H A D | pasn_responder.c | 182 buf = wpabuf_alloc(8 + SAE_COMMIT_MAX_LEN + 8 + SAE_CONFIRM_MAX_LEN); in pasn_get_sae_wd() 228 buf = wpabuf_alloc(1500); in pasn_get_fils_wd() 384 buf = wpabuf_alloc(1500); in handle_auth_pasn_comeback() 442 buf = wpabuf_alloc(1500); in handle_auth_pasn_resp() 528 rsn_buf = wpabuf_alloc(500); in handle_auth_pasn_resp()
|