Home
last modified time | relevance | path

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

123

/hal_espressif-latest/components/wpa_supplicant/src/utils/
Dcommon.c339 str = os_malloc(tlen + 1); in wpa_config_parse_string()
358 str = (u8 *)os_malloc(*len + 1); in wpa_config_parse_string()
368 str = os_malloc(tlen + 1); in wpa_config_parse_string()
445 res = os_malloc(len + 1); in dup_binstr()
524 void *r = os_malloc(len); in os_memdup()
577 val = os_malloc(len + 1); in get_param()
Dbase64.c37 out = os_malloc(olen); in base64_gen_encode()
108 pos = out = os_malloc(olen); in base64_gen_decode()
Djson.c75 str = os_malloc(buf_len); in json_parse_string()
178 str = os_malloc(len + 1); in json_parse_number()
599 tmp = os_malloc(tmp_len); in json_add_string_escape()
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dccmp.c151 plain = os_malloc(data_len + AES_BLOCK_SIZE); in ccmp_decrypt()
203 crypt = os_malloc(hdrlen + 8 + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt()
254 crypt = os_malloc(hdrlen + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt_pv1()
293 plain = os_malloc(data_len + AES_BLOCK_SIZE); in ccmp_256_decrypt()
329 crypt = os_malloc(hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in ccmp_256_encrypt()
Daes-internal-enc.c106 rk = os_malloc(AES_PRIV_SIZE); in aes_encrypt_init()
Daes-internal-dec.c63 rk = os_malloc(AES_PRIV_SIZE); in aes_decrypt_init()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls-rsa.c240 mbedtls_entropy_context *entropy = os_malloc(sizeof(*entropy)); in crypto_private_key_decrypt_pkcs1_v15()
241 mbedtls_ctr_drbg_context *ctr_drbg = os_malloc(sizeof(*ctr_drbg)); in crypto_private_key_decrypt_pkcs1_v15()
282 mbedtls_entropy_context *entropy = os_malloc(sizeof(*entropy)); in crypto_private_key_sign_pkcs1()
283 mbedtls_ctr_drbg_context *ctr_drbg = os_malloc(sizeof(*ctr_drbg)); in crypto_private_key_sign_pkcs1()
Dcrypto_mbedtls-ec.c503 mbedtls_pk_context *key = os_malloc(sizeof(*key)); in crypto_alloc_key()
587 char *der_data = os_malloc(ECP_PRV_DER_MAX_BYTES); in crypto_ec_get_priv_key_der()
599 *key_data = os_malloc(*key_len); in crypto_ec_get_priv_key_der()
657 unsigned char *buf = os_malloc(ECP_PUB_DER_MAX_BYTES); in crypto_write_pubkey_der()
669 *key_buf = os_malloc(len); in crypto_write_pubkey_der()
757 ctx = os_malloc(sizeof(*ctx)); in crypto_ecdh()
812 mbedtls_ecdsa_context *ctx = os_malloc(sizeof(*ctx)); in crypto_ecdsa_get_sign()
1035 *key_buf = os_malloc(len); in crypto_ec_write_pub_key()
1279 mbedtls_ecdsa_context *ctx_verify = os_malloc(sizeof(mbedtls_ecdsa_context)); in crypto_ec_key_verify_signature()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/
Desp_wpas_glue.c26 buffer = os_malloc(*msg_len + sizeof(struct l2_ethhdr)); in wpa_alloc_eapol()
77 void *buffer = os_malloc(data_len + sizeof(struct l2_ethhdr)); in hostapd_send_eapol()
Desp_common.c52 struct ieee_mgmt_frame *frm = os_malloc(sizeof(struct ieee_mgmt_frame) + len); in handle_action_frm()
692 ie = os_malloc(SCAN_IE_LEN); in esp_set_scan_ie()
875 ie = os_malloc(ASSOC_IE_LEN + ies_len); in esp_set_assoc_ie()
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dtlsv1_client_write.c76 hello = os_malloc(len); in tls_send_client_hello()
353 csecret = os_malloc(csecret_len); in tlsv1_key_x_dh()
383 dh_yc = os_malloc(dh_yc_len); in tlsv1_key_x_dh()
429 shared = os_malloc(shared_len); in tlsv1_key_x_dh()
882 msg = os_malloc(msglen); in tls_send_client_key_exchange()
920 msg = os_malloc(1000); in tls_send_change_cipher_spec()
960 return os_malloc(1); in tlsv1_client_handshake_write()
979 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()
Dtlsv1_server.c34 buf = os_malloc(buflen); in tlsv1_server_log()
148 in_msg = os_malloc(in_len); in tlsv1_server_handshake()
490 seed = os_malloc(seed_len); in tlsv1_server_prf()
Dtlsv1_client.c201 in_msg = os_malloc(in_len); in tlsv1_client_handshake()
576 seed = os_malloc(seed_len); in tlsv1_client_prf()
753 pos = conn->client_hello_ext = os_malloc(4 + data_len); in tlsv1_client_hello_ext()
Dpkcs1.c212 decrypted = os_malloc(s_len); in pkcs1_v15_sig_ver()
/hal_espressif-latest/components/wpa_supplicant/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()
/hal_espressif-latest/components/wpa_supplicant/port/include/
Dos.h222 #ifndef os_malloc
223 #define os_malloc(s) os_wpa_malloc_func((s)) macro
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap_fast_pac.c243 buf = os_malloc(*len); in eap_fast_parse_hex()
260 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data()
634 pos = buf = os_malloc(buf_len); in eap_fast_save_pac()
895 buf = os_malloc(len); in eap_fast_save_pac_bin()
Deap_tls.c202 key = os_malloc(EAP_TLS_KEY_LEN); in eap_tls_getKey()
Deap_fast_common.c100 out = os_malloc(len); in eap_fast_derive_key()
Deap_ttls.c818 parse->eapdata = os_malloc(dlen); in eap_ttls_parse_attr_eap()
973 buf = os_malloc(sizeof(*hdr) + 1); in eap_ttls_fake_identity_request()
1627 key = os_malloc(EAP_TLS_KEY_LEN); in eap_ttls_getKey()
1646 id = os_malloc(data->id_len); in eap_ttls_get_session_id()
1665 key = os_malloc(EAP_EMSK_LEN); in eap_ttls_get_emsk()
/hal_espressif-latest/components/wpa_supplicant/src/ap/
Dwpa_auth_ie.c366 wpa_auth->wpa_ie = os_malloc(pos - buf); in wpa_auth_gen_wpa_ie()
634 sm->wpa_ie = os_malloc(wpa_ie_len); in wpa_validate_wpa_ie()
643 sm->rsnxe = os_malloc(rsnxe_len); in wpa_validate_wpa_ie()
/hal_espressif-latest/components/wpa_supplicant/src/common/
Dsae_pk.c292 pos = out = os_malloc(olen); in sae_pk_base32_decode()
561 hash_data = os_malloc(hash_data_len); in sae_pk_valid_fingerprint()
Ddpp.c481 bi->info = os_malloc(end - info + 1); in dpp_parse_uri_info()
1493 bi->uri = os_malloc(len + 1); in dpp_autogen_bootstrap_key()
2518 unwrapped = os_malloc(unwrapped_len); in dpp_auth_req_rx()
2882 unwrapped = os_malloc(unwrapped_len); in dpp_auth_resp_rx_status()
3105 unwrapped = os_malloc(unwrapped_len); in dpp_auth_resp_rx()
3196 unwrapped2 = os_malloc(unwrapped2_len); in dpp_auth_resp_rx()
3285 unwrapped = os_malloc(unwrapped_len); in dpp_auth_conf_rx_failure()
3444 unwrapped = os_malloc(unwrapped_len); in dpp_auth_conf_rx()
3680 conf->group_id = os_malloc(group_id_len + 1); in dpp_configuration_parse_helper()
3732 tmp = os_malloc(len + 1); in dpp_configuration_parse()
[all …]

123