Home
last modified time | relevance | path

Searched refs:os_malloc (Results 1 – 25 of 173) sorted by relevance

1234567

/freebsd-11-stable/contrib/wpa/src/eap_common/
HDikev2_common.c403 sign_data = os_malloc(sign_len); in ikev2_derive_auth_data()
495 decrypted = os_malloc(decrypted_len); in ikev2_decrypt_payload()
650 keybuf = os_malloc(keybuf_len); in ikev2_derive_sk_keys()
662 keys->SK_d = os_malloc(keys->SK_d_len); in ikev2_derive_sk_keys()
670 keys->SK_ai = os_malloc(keys->SK_integ_len); in ikev2_derive_sk_keys()
678 keys->SK_ar = os_malloc(keys->SK_integ_len); in ikev2_derive_sk_keys()
686 keys->SK_ei = os_malloc(keys->SK_encr_len); in ikev2_derive_sk_keys()
694 keys->SK_er = os_malloc(keys->SK_encr_len); in ikev2_derive_sk_keys()
702 keys->SK_pi = os_malloc(keys->SK_prf_len); in ikev2_derive_sk_keys()
710 keys->SK_pr = os_malloc(keys->SK_prf_len); in ikev2_derive_sk_keys()
HDeap_gpsk_common.c141 data = os_malloc(data_len); in eap_gpsk_derive_keys_helper()
299 seed = os_malloc(2 * EAP_GPSK_RAND_LEN + id_server_len + id_peer_len); in eap_gpsk_derive_keys()
372 data = os_malloc(data_len); in eap_gpsk_derive_mid_helper()
443 seed = os_malloc(2 * EAP_GPSK_RAND_LEN + id_server_len + id_peer_len); in eap_gpsk_derive_session_id()
HDeap_eke_common.c322 id = os_malloc(id_s_len + id_p_len); in eap_eke_derive_key()
454 data = os_malloc(data_len); in eap_eke_derive_ke_ki()
495 data = os_malloc(data_len); in eap_eke_derive_ka()
540 data = os_malloc(data_len); in eap_eke_derive_msk()
/freebsd-11-stable/contrib/wpa/src/utils/
HDos_internal.c157 buf = os_malloc(len); in os_rel2abs_path()
175 ret = os_malloc(ret_len); in os_rel2abs_path()
228 buf = os_malloc(*len); in os_readfile()
254 void *n = os_malloc(size); in os_zalloc()
261 void * os_malloc(size_t size) in os_malloc() function
339 res = os_malloc(len + 1); in os_strdup()
HDos_unix.c326 buf = os_malloc(len); in os_rel2abs_path()
347 ret = os_malloc(ret_len); in os_rel2abs_path()
456 buf = os_malloc(*len); in os_readfile()
548 void *r = os_malloc(len); in os_memdup()
724 void * os_malloc(size_t size) in os_malloc() function
749 return os_malloc(size); in os_realloc()
759 n = os_malloc(size); in os_realloc()
795 void *ptr = os_malloc(size); in os_zalloc()
807 d = os_malloc(len + 1); in os_strdup()
HDwpa_debug.c294 strbuf = os_malloc(1 + 3 * slen); in _wpa_hexdump()
329 strbuf = os_malloc(1 + 3 * len); in _wpa_hexdump()
650 buf = os_malloc(buflen); in wpa_msg()
690 buf = os_malloc(buflen); in wpa_msg_ctrl()
715 buf = os_malloc(buflen); in wpa_msg_global()
745 buf = os_malloc(buflen); in wpa_msg_global_ctrl()
770 buf = os_malloc(buflen); in wpa_msg_no_global()
797 buf = os_malloc(buflen); in wpa_msg_global_only()
836 buf = os_malloc(buflen); in hostapd_logger()
HDos.h310 void * os_malloc(size_t size);
479 void * os_malloc(size_t size);
484 #ifndef os_malloc
485 #define os_malloc(s) malloc((s)) macro
HDbase64.c39 out = os_malloc(olen); in base64_gen_encode()
111 pos = out = os_malloc(olen); in base64_gen_decode()
HDcommon.c464 buf = os_malloc((strlen(str) + 1) * sizeof(TCHAR)); in wpa_strdup_tchar()
668 str = os_malloc(tlen + 1); in wpa_config_parse_string()
684 str = os_malloc(tlen + 1); in wpa_config_parse_string()
771 res = os_malloc(len + 1); in dup_binstr()
850 buf = os_malloc(maxlen); in freq_range_list_str()
1255 val = os_malloc(len + 1); in get_param()
/freebsd-11-stable/contrib/wpa/src/tls/
HDtlsv1_client_write.c88 hello = os_malloc(len); in tls_send_client_hello()
355 csecret = os_malloc(csecret_len); in tlsv1_key_x_dh()
385 dh_yc = os_malloc(dh_yc_len); in tlsv1_key_x_dh()
431 shared = os_malloc(shared_len); in tlsv1_key_x_dh()
884 msg = os_malloc(msglen); in tls_send_client_key_exchange()
922 msg = os_malloc(1000); in tls_send_change_cipher_spec()
962 return os_malloc(1); in tlsv1_client_handshake_write()
981 alert = os_malloc(10); in tlsv1_client_send_alert()
HDpkcs5.c435 D = os_malloc(v); in pkcs12_key_gen()
443 I = os_malloc(S_len + P_len); in pkcs12_key_gen()
456 B = os_malloc(v); in pkcs12_key_gen()
523 pw = os_malloc(2 * (pw_len + 1)); in pkcs12_crypto_init_sha1()
616 eb = os_malloc(enc_data_len); in pkcs5_decrypt()
HDtlsv1_server_write.c408 conn->dh_secret = os_malloc(conn->dh_secret_len); in tls_write_server_key_exchange()
442 dh_ys = os_malloc(dh_ys_len); in tls_write_server_key_exchange()
956 msg = os_malloc(msglen); in tls_send_server_hello()
1016 msg = os_malloc(1000); in tls_send_change_cipher_spec()
1065 alert = os_malloc(10); in tlsv1_server_send_alert()
/freebsd-11-stable/contrib/wpa/hs20/client/
HDest.c130 buf = os_malloc(buflen); in est_load_cacerts()
170 pkcs7 = os_malloc(resp_len); in est_load_cacerts()
518 txt = os_malloc(rlen + 1); in generate_csr()
612 buf = os_malloc(buflen); in est_build_csr()
702 buf = os_malloc(buflen); in est_simple_enroll()
740 pkcs7 = os_malloc(resp_len); in est_simple_enroll()
/freebsd-11-stable/contrib/wpa/src/crypto/
HDaes-eax.c46 buf = os_malloc(buf_len); in aes_128_eax_encrypt()
110 buf = os_malloc(buf_len); in aes_128_eax_decrypt()
HDcrypto_nettle.c60 ctx = os_malloc(alg->context_size); in nettle_digest_vector()
251 ctx = os_malloc(sizeof(*ctx)); in aes_encrypt_init()
282 ctx = os_malloc(sizeof(*ctx)); in aes_decrypt_init()
/freebsd-11-stable/contrib/wpa/src/eap_server/
HDeap_server_identity.c123 buf = os_malloc(len * 4 + 1); in eap_identity_process()
132 sm->identity = os_malloc(len ? len : 1); in eap_identity_process()
HDeap_server_tls_common.c115 out = os_malloc(len); in eap_server_tls_derive_key()
158 id = os_malloc(*len); in eap_server_tls_derive_session_id()
180 out = os_malloc(*len); in eap_server_tls_derive_session_id()
HDeap_server_teap.c166 buf = os_malloc(pac_opaque_len - 8); in eap_teap_session_ticket_cb()
247 data->identity = os_malloc(identity_len); in eap_teap_session_ticket_cb()
392 data->srv_id = os_malloc(sm->eap_fast_a_id_len); in eap_teap_init()
672 pac_buf = os_malloc(pac_len); in eap_teap_build_pac()
706 pac_opaque = os_malloc(pac_len + 8); in eap_teap_build_pac()
1850 eapKeyData = os_malloc(EAP_TEAP_KEY_LEN); in eap_teap_getKey()
1874 eapKeyData = os_malloc(EAP_EMSK_LEN); in eap_teap_get_emsk()
1908 id = os_malloc(max_id_len); in eap_teap_get_session_id()
/freebsd-11-stable/contrib/wpa/src/eap_peer/
HDeap_psk.c59 data->id_p = os_malloc(identity_len); in eap_psk_init()
147 buf = os_malloc(buflen); in eap_psk_process_1()
229 buf = os_malloc(buflen); in eap_psk_process_3()
445 id = os_malloc(*len); in eap_psk_get_session_id()
HDeap_ikev2.c453 key = os_malloc(EAP_MSK_LEN); in eap_ikev2_getKey()
471 key = os_malloc(EAP_EMSK_LEN); in eap_ikev2_get_emsk()
492 sid = os_malloc(sid_len); in eap_ikev2_get_session_id()
HDeap_fast_pac.c242 buf = os_malloc(*len); in eap_fast_parse_hex()
259 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data()
630 pos = buf = os_malloc(buf_len); in eap_fast_save_pac()
889 buf = os_malloc(len); in eap_fast_save_pac_bin()
/freebsd-11-stable/contrib/wpa/src/radius/
HDradius_server.c440 buf = os_malloc(buflen); in srv_log()
757 sess->username = os_malloc(user_len * 4 + 1); in radius_server_get_new_session()
849 id_str = os_malloc(id_len + 1); in radius_srv_hs20_t_c_pending()
918 id_str = os_malloc(id_len); in db_update_last_msk()
926 id_str = os_malloc(id_len + 1); in db_update_last_msk()
1161 buf = os_malloc(1 + url_len); in radius_server_encapsulate_eap()
1204 buf = os_malloc(1 + url_len + 1); in radius_server_encapsulate_eap()
1253 url2 = os_malloc(url_len + 1); in radius_server_encapsulate_eap()
1839 buf = os_malloc(RADIUS_MAX_MSG_LEN); in radius_server_receive_auth()
1971 buf = os_malloc(RADIUS_MAX_MSG_LEN); in radius_server_receive_acct()
[all …]
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
HDwpas_glue.c68 hdr = os_malloc(*msg_len); in wpa_alloc_eapol()
103 char *hex = os_malloc(hex_len); in wpa_ether_send()
636 data = os_malloc(data_len); in wpa_supplicant_send_ft_action()
883 buf = os_malloc(buflen); in wpas_send_ctrl_req()
1063 str = os_malloc(len * 2 + 1); in wpa_supplicant_set_anon_id()
1174 hex = os_malloc(hexlen); in wpa_supplicant_fils_hlp_rx()
HDconfig.c142 buf = os_malloc(len + 3); in wpa_config_write_string_ascii()
248 value = os_malloc(20); in wpa_config_write_int()
331 value = os_malloc(2 * 20 * num); in wpa_config_write_addr_list()
386 value = os_malloc(20); in wpa_config_write_bssid()
431 value = os_malloc(20); in wpa_config_write_bssid_hint()
573 char *buf = os_malloc(len); in wpa_config_write_psk()
1658 hash = os_malloc(16); in wpa_config_parse_password()
1711 buf = os_malloc(5 + 32 + 1); in wpa_config_write_password()
1869 value = os_malloc(20); in wpa_config_write_go_p2p_dev_addr()
2102 char *value = os_malloc(20); in wpa_config_write_ocv()
[all …]
/freebsd-11-stable/contrib/wpa/src/l2_packet/
HDl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); in l2_packet_send()
198 if ((buf = os_malloc(len)) == NULL) in eth_get()

1234567