Home
last modified time | relevance | path

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

123456789

/hostap-latest/src/utils/
Dwpa_debug_zephyr.c79 content = content_buf = os_malloc(3 * len + 1); in _wpa_hexdump()
189 buf = os_malloc(buflen); in wpa_msg_impl()
228 buf = os_malloc(buflen); in wpa_msg_ctrl_impl()
251 buf = os_malloc(buflen); in wpa_msg_global_impl()
279 buf = os_malloc(buflen); in wpa_msg_global_ctrl_impl()
302 buf = os_malloc(buflen); in wpa_msg_no_global_impl()
327 buf = os_malloc(buflen); in wpa_msg_global_only_impl()
363 buf = os_malloc(buflen); in hostapd_logger()
Dos_unix.c305 buf = os_malloc(len); in os_rel2abs_path()
326 ret = os_malloc(ret_len); in os_rel2abs_path()
440 buf = os_malloc(*len); in os_readfile()
532 void *r = os_malloc(len); in os_memdup()
727 void * os_malloc(size_t size) in os_malloc() function
752 return os_malloc(size); in os_realloc()
762 n = os_malloc(size); in os_realloc()
798 void *ptr = os_malloc(size); in os_zalloc()
810 d = os_malloc(len + 1); in os_strdup()
Dwpa_debug.c296 strbuf = os_malloc(1 + 3 * slen); in _wpa_hexdump()
331 strbuf = os_malloc(1 + 3 * len); in _wpa_hexdump()
659 buf = os_malloc(buflen); in wpa_msg()
699 buf = os_malloc(buflen); in wpa_msg_ctrl()
724 buf = os_malloc(buflen); in wpa_msg_global()
754 buf = os_malloc(buflen); in wpa_msg_global_ctrl()
779 buf = os_malloc(buflen); in wpa_msg_no_global()
806 buf = os_malloc(buflen); in wpa_msg_global_only()
845 buf = os_malloc(buflen); in hostapd_logger()
Dos_internal.c163 buf = os_malloc(len); in os_rel2abs_path()
181 ret = os_malloc(ret_len); in os_rel2abs_path()
234 buf = os_malloc(*len); in os_readfile()
260 void *n = os_malloc(size); in os_zalloc()
267 void * os_malloc(size_t size) in os_malloc() function
345 res = os_malloc(len + 1); in os_strdup()
Dos_zephyr.c202 d = os_malloc(len + 1); in os_strdup()
213 void *r = os_malloc(len); in os_memdup()
221 void *os_malloc(size_t size) in os_malloc() function
241 return os_malloc(newsize); in os_realloc()
Dos.h288 void *os_malloc(size_t size);
397 void * os_malloc(size_t size);
566 void * os_malloc(size_t size);
571 #ifndef os_malloc
573 #define os_malloc(s) malloc((s)) macro
Dbase64.c42 out = os_malloc(olen); in base64_gen_encode()
113 pos = out = os_malloc(olen); in base64_gen_decode()
Dcommon.c465 buf = os_malloc((strlen(str) + 1) * sizeof(TCHAR)); in wpa_strdup_tchar()
669 str = os_malloc(tlen + 1); in wpa_config_parse_string()
685 str = os_malloc(tlen + 1); in wpa_config_parse_string()
772 res = os_malloc(len + 1); in dup_binstr()
855 buf = os_malloc(maxlen); in freq_range_list_str()
1292 val = os_malloc(len + 1); in get_param()
/hostap-latest/wlantest/
Dbip.c27 prot = os_malloc(plen); in bip_protect()
40 buf = os_malloc(plen + 20 - 24); in bip_protect()
92 prot = os_malloc(plen); in bip_protect_s1g_beacon()
116 buf = os_malloc(buf_len); in bip_protect_s1g_beacon()
198 prot = os_malloc(plen); in bip_gmac_protect()
211 buf = os_malloc(plen + 20 - 24); in bip_gmac_protect()
273 prot = os_malloc(plen); in bip_gmac_protect_s1g_beacon()
296 buf = os_malloc(buf_len); in bip_gmac_protect_s1g_beacon()
Dccmp.c166 plain = os_malloc(data_len + AES_BLOCK_SIZE); in ccmp_decrypt()
220 crypt = os_malloc(hdrlen + 8 + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt()
270 crypt = os_malloc(hdrlen + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt_pv1()
310 plain = os_malloc(data_len + AES_BLOCK_SIZE); in ccmp_256_decrypt()
353 crypt = os_malloc(hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in ccmp_256_encrypt()
Dgcmp.c96 plain = os_malloc(data_len + AES_BLOCK_SIZE); in gcmp_decrypt()
138 crypt = os_malloc(hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in gcmp_encrypt()
/hostap-latest/src/eap_common/
Dikev2_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()
Deap_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()
/hostap-latest/src/tls/
Dtlsv1_client_write.c76 hello = os_malloc(len); in tls_send_client_hello()
343 csecret = os_malloc(csecret_len); in tlsv1_key_x_dh()
373 dh_yc = os_malloc(dh_yc_len); in tlsv1_key_x_dh()
419 shared = os_malloc(shared_len); in tlsv1_key_x_dh()
872 msg = os_malloc(msglen); in tls_send_client_key_exchange()
910 msg = os_malloc(1000); in tls_send_change_cipher_spec()
950 return os_malloc(1); in tlsv1_client_handshake_write()
969 alert = os_malloc(10); in tlsv1_client_send_alert()
Dpkcs5.c413 D = os_malloc(v); in pkcs12_key_gen()
421 I = os_malloc(S_len + P_len); in pkcs12_key_gen()
434 B = os_malloc(v); in pkcs12_key_gen()
501 pw = os_malloc(2 * (pw_len + 1)); in pkcs12_crypto_init_sha1()
594 eb = os_malloc(enc_data_len); in pkcs5_decrypt()
Dtlsv1_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()
/hostap-latest/hs20/client/
Dest.c127 buf = os_malloc(buflen); in est_load_cacerts()
167 pkcs7 = os_malloc(resp_len); in est_load_cacerts()
491 txt = os_malloc(rlen + 1); in generate_csr()
585 buf = os_malloc(buflen); in est_build_csr()
674 buf = os_malloc(buflen); in est_simple_enroll()
712 pkcs7 = os_malloc(resp_len); in est_simple_enroll()
/hostap-latest/src/crypto/
Daes-eax.c46 buf = os_malloc(buf_len); in aes_128_eax_encrypt()
110 buf = os_malloc(buf_len); in aes_128_eax_decrypt()
Dcrypto_mbedtls_alt.c1098 struct crypto_cipher *ctx = os_malloc(sizeof(*ctx)); in crypto_cipher_init()
1159 mbedtls_mpi *bn = os_malloc(sizeof(*bn)); in crypto_bignum_init()
1170 mbedtls_mpi *bn = os_malloc(sizeof(*bn)); in crypto_bignum_init_set()
1187 mbedtls_mpi *bn = os_malloc(sizeof(*bn)); in crypto_bignum_init_uint()
1551 mbedtls_dhm_context *ctx = os_malloc(sizeof(*ctx)); in dh5_init()
1581 mbedtls_dhm_context *ctx = os_malloc(sizeof(*ctx)); in dh5_init_fixed()
1808 struct crypto_ecdh *ecdh = os_malloc(sizeof(*ecdh)); in crypto_ecdh_init2()
2002 mbedtls_ecp_group *e = os_malloc(sizeof(*e)); in crypto_ec_init()
2156 mbedtls_ecp_point *p = os_malloc(sizeof(*p)); in crypto_ec_point_init()
2202 mbedtls_ecp_point *p = os_malloc(sizeof(*p)); in crypto_ec_point_from_bin()
[all …]
Dcrypto_wolfssl.c562 aes = os_malloc(sizeof(Aes)); in aes_encrypt_init()
564 LOG_WOLF_ERROR_FUNC_NULL(os_malloc); in aes_encrypt_init()
611 aes = os_malloc(sizeof(Aes)); in aes_decrypt_init()
613 LOG_WOLF_ERROR_FUNC_NULL(os_malloc); in aes_decrypt_init()
1084 dh = os_malloc(sizeof(DhKey)); in crypto_dh_init()
1134 dh = os_malloc(sizeof(DhKey)); in crypto_dh_derive_secret()
1312 a = os_malloc(sizeof(*a)); in crypto_bignum_init()
1412 buf = os_malloc(len); in crypto_bignum_rand()
2925 der = os_malloc(der_len); in crypto_ec_key_get_public_key()
2927 LOG_WOLF_ERROR_FUNC_NULL(os_malloc); in crypto_ec_key_get_public_key()
[all …]
/hostap-latest/wpa_supplicant/
Dctrl_iface_udp.c201 reply = os_malloc(7 + 2 * COOKIE_LEN + 1);
237 buf = os_malloc(CTRL_IFACE_MAX_LEN + 1);
545 sbuf = os_malloc(llen + len);
603 reply = os_malloc(7 + 2 * COOKIE_LEN + 1);
638 buf = os_malloc(CTRL_IFACE_MAX_LEN + 1);
Dconfig.c143 buf = os_malloc(len + 3); in wpa_config_write_string_ascii()
265 value = os_malloc(20); in wpa_config_write_int()
348 value = os_malloc(2 * 20 * num); in wpa_config_write_addr_list()
403 value = os_malloc(20); in wpa_config_write_bssid()
448 value = os_malloc(20); in wpa_config_write_bssid_hint()
642 char *buf = os_malloc(len); in wpa_config_write_psk()
1764 hash = os_malloc(16); in wpa_config_parse_password()
1859 hash = os_malloc(16); in wpa_config_parse_machine_password()
1916 buf = os_malloc(5 + 32 + 1); in wpa_config_write_password()
1953 buf = os_malloc(5 + 32 + 1); in wpa_config_write_machine_password()
[all …]
/hostap-latest/src/eap_server/
Deap_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()
Deap_server_tls_common.c121 out = os_malloc(len); in eap_server_tls_derive_key()
164 id = os_malloc(*len); in eap_server_tls_derive_session_id()
186 out = os_malloc(*len); in eap_server_tls_derive_session_id()
/hostap-latest/src/eap_peer/
Deap_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()

123456789