Home
last modified time | relevance | path

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

12345678

/external/wpa_supplicant_8/src/utils/
Dos_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()
Dwpa_debug.c289 strbuf = os_malloc(1 + 3 * slen); in _wpa_hexdump()
324 strbuf = os_malloc(1 + 3 * len); in _wpa_hexdump()
619 buf = os_malloc(buflen); in wpa_msg()
659 buf = os_malloc(buflen); in wpa_msg_ctrl()
684 buf = os_malloc(buflen); in wpa_msg_global()
714 buf = os_malloc(buflen); in wpa_msg_global_ctrl()
739 buf = os_malloc(buflen); in wpa_msg_no_global()
766 buf = os_malloc(buflen); in wpa_msg_global_only()
805 buf = os_malloc(buflen); in hostapd_logger()
Dos_unix.c293 buf = os_malloc(len); in os_rel2abs_path()
314 ret = os_malloc(ret_len); in os_rel2abs_path()
441 buf = os_malloc(*len); in os_readfile()
697 void * os_malloc(size_t size) in os_malloc() function
722 return os_malloc(size); in os_realloc()
732 n = os_malloc(size); in os_realloc()
768 void *ptr = os_malloc(size); in os_zalloc()
780 d = os_malloc(len + 1); in os_strdup()
Dos.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
Dbase64.c42 out = os_malloc(olen); in base64_encode()
121 pos = out = os_malloc(olen); in base64_decode()
/external/wpa_supplicant_8/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()
/external/wpa_supplicant_8/src/eap_peer/
Deap_psk.c59 data->id_p = os_malloc(identity_len); in eap_psk_init()
119 data->id_s = os_malloc(data->id_s_len); in eap_psk_process_1()
148 buf = os_malloc(buflen); in eap_psk_process_1()
230 buf = os_malloc(buflen); in eap_psk_process_3()
276 decrypted = os_malloc(left); in eap_psk_process_3()
428 key = os_malloc(EAP_MSK_LEN); in eap_psk_getKey()
448 id = os_malloc(*len); in eap_psk_get_session_id()
469 key = os_malloc(EAP_EMSK_LEN); in eap_psk_get_emsk()
Deap_fast_pac.c117 *dst = os_malloc(src_len); in eap_fast_copy_buf()
243 buf = os_malloc(*len); in eap_fast_parse_hex()
260 rc->buf = os_malloc(rc->buf_len); in eap_fast_init_pac_data()
631 pos = buf = os_malloc(buf_len); in eap_fast_save_pac()
723 pac->a_id = os_malloc(len); in eap_fast_pac_get_a_id()
732 pac->a_id_info = os_malloc(len); in eap_fast_pac_get_a_id()
823 pac->pac_opaque = os_malloc(pac->pac_opaque_len); in eap_fast_load_pac_bin()
835 pac->pac_info = os_malloc(pac->pac_info_len); in eap_fast_load_pac_bin()
894 buf = os_malloc(len); in eap_fast_save_pac_bin()
Deap_ikev2.c86 data->ikev2.IDr = os_malloc(identity_len); in eap_ikev2_init()
94 data->ikev2.shared_secret = os_malloc(password_len); in eap_ikev2_init()
455 key = os_malloc(EAP_MSK_LEN); in eap_ikev2_getKey()
473 key = os_malloc(EAP_EMSK_LEN); in eap_ikev2_get_emsk()
494 sid = os_malloc(sid_len); in eap_ikev2_get_session_id()
Deap_sake.c88 data->peerid = os_malloc(identity_len); in eap_sake_init()
233 data->serverid = os_malloc(attr.serverid_len); in eap_sake_process_challenge()
453 key = os_malloc(EAP_MSK_LEN); in eap_sake_getKey()
472 id = os_malloc(*len); in eap_sake_get_session_id()
493 key = os_malloc(EAP_EMSK_LEN); in eap_sake_get_emsk()
Deap_pwd.c116 if ((data->id_peer = os_malloc(identity_len)) == NULL) { in eap_pwd_init()
126 if ((data->password = os_malloc(password_len)) == NULL) { in eap_pwd_init()
186 key = os_malloc(EAP_MSK_LEN); in eap_pwd_getkey()
205 id = os_malloc(1 + SHA256_MAC_LEN); in eap_pwd_get_session_id()
271 data->id_server = os_malloc(payload_len - sizeof(struct eap_pwd_id)); in eap_pwd_perform_id_exchange()
519 if (((scalar = os_malloc(BN_num_bytes(data->grp->order))) == NULL) || in eap_pwd_perform_commit_exchange()
520 ((element = os_malloc(BN_num_bytes(data->grp->prime) * 2)) == in eap_pwd_perform_commit_exchange()
606 if (((cruft = os_malloc(BN_num_bytes(data->grp->prime))) == NULL) || in eap_pwd_perform_confirm_exchange()
1044 if ((key = os_malloc(EAP_EMSK_LEN)) == NULL) in eap_pwd_get_emsk()
Deap_gpsk.c99 data->id_peer = os_malloc(identity_len); in eap_gpsk_init()
120 data->psk = os_malloc(password_len); in eap_gpsk_init()
161 data->id_server = os_malloc(alen); in eap_gpsk_process_id_server()
725 key = os_malloc(EAP_MSK_LEN); in eap_gpsk_getKey()
743 key = os_malloc(EAP_EMSK_LEN); in eap_gpsk_get_emsk()
761 sid = os_malloc(data->id_len); in eap_gpsk_get_session_id()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_psk.c114 buf = os_malloc(buflen); in eap_psk_build_3()
239 data->id_p = os_malloc(left); in eap_psk_process_2()
298 buf = os_malloc(buflen); in eap_psk_process_2()
374 decrypted = os_malloc(left); in eap_psk_process_4()
453 key = os_malloc(EAP_MSK_LEN); in eap_psk_getKey()
471 key = os_malloc(EAP_EMSK_LEN); in eap_psk_get_emsk()
497 id = os_malloc(*len); in eap_psk_get_session_id()
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_pwd.c107 data->password = os_malloc(sm->user->password_len); in eap_pwd_init()
262 if (((scalar = os_malloc(BN_num_bytes(data->grp->order))) == NULL) || in eap_pwd_build_commit_req()
263 ((element = os_malloc(BN_num_bytes(data->grp->prime) * 2)) == in eap_pwd_build_commit_req()
323 if (((cruft = os_malloc(BN_num_bytes(data->grp->prime))) == NULL) || in eap_pwd_build_confirm_req()
612 data->id_peer = os_malloc(payload_len - sizeof(struct eap_pwd_id)); in eap_pwd_process_id_resp()
813 if (((cruft = os_malloc(BN_num_bytes(data->grp->prime))) == NULL) || in eap_pwd_process_confirm_resp()
1038 key = os_malloc(EAP_MSK_LEN); in eap_pwd_getkey()
1057 key = os_malloc(EAP_EMSK_LEN); in eap_pwd_get_emsk()
1090 id = os_malloc(1 + SHA256_MAC_LEN); in eap_pwd_get_session_id()
Deap_server_ikev2.c106 data->ikev2.IDi = os_malloc(sm->server_id_len); in eap_ikev2_init()
492 key = os_malloc(EAP_MSK_LEN); in eap_ikev2_getKey()
510 key = os_malloc(EAP_EMSK_LEN); in eap_ikev2_get_emsk()
531 sid = os_malloc(sid_len); in eap_ikev2_get_session_id()
Deap_server_sake.c329 data->peerid = os_malloc(attr.peerid_len); in eap_sake_process_challenge()
463 key = os_malloc(EAP_MSK_LEN); in eap_sake_getKey()
481 key = os_malloc(EAP_EMSK_LEN); in eap_sake_get_emsk()
507 id = os_malloc(*len); in eap_sake_get_session_id()
/external/wpa_supplicant_8/src/tls/
Dtlsv1_client_write.c85 hello = os_malloc(len); in tls_send_client_hello()
352 csecret = os_malloc(csecret_len); in tlsv1_key_x_dh()
382 dh_yc = os_malloc(dh_yc_len); in tlsv1_key_x_dh()
428 shared = os_malloc(shared_len); in tlsv1_key_x_dh()
881 msg = os_malloc(msglen); in tls_send_client_key_exchange()
919 msg = os_malloc(1000); in tls_send_change_cipher_spec()
959 return os_malloc(1); in tlsv1_client_handshake_write()
978 alert = os_malloc(10); in tlsv1_client_send_alert()
Dpkcs5.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()
/external/wpa_supplicant_8/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()
/external/wpa_supplicant_8/hs20/client/
Dest.c129 buf = os_malloc(buflen); in est_load_cacerts()
169 pkcs7 = os_malloc(resp_len); in est_load_cacerts()
505 txt = os_malloc(rlen + 1); in generate_csr()
599 buf = os_malloc(buflen); in est_build_csr()
690 buf = os_malloc(buflen); in est_simple_enroll()
733 pkcs7 = os_malloc(resp_len); in est_simple_enroll()
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh.c141 bss->conf->sae_groups = os_malloc(groups_size); in wpas_mesh_copy_groups()
260 conf->basic_rates = os_malloc(sizeof(basic_rates_erp)); in wpa_supplicant_mesh_init()
307 os_malloc(sizeof(default_groups)); in wpa_supplicant_mesh_init()
502 mesh_id = os_malloc(elems.mesh_id_len + 1); in mesh_attr_text()
532 bss_basic_rate_set = os_malloc(elems.supp_rates_len + in mesh_attr_text()
/external/mesa3d/src/gallium/auxiliary/os/
Dos_memory.h49 os_malloc(size_t size);
/external/wpa_supplicant_8/src/ap/
Dpeerkey_auth.c106 buf = os_malloc(buf_len); in wpa_smk_m1()
153 pos = buf = os_malloc(buf_len); in wpa_send_smk_m4()
207 pos = buf = os_malloc(buf_len); in wpa_send_smk_m5()

12345678