| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | platform.h | 142 #undef mbedtls_calloc 144 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro 148 extern void *mbedtls_calloc(size_t n, size_t size); 165 #undef mbedtls_calloc 167 #define mbedtls_calloc calloc
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | memory_buffer_alloc.c | 654 p = mbedtls_calloc(1, 1); in mbedtls_memory_buffer_alloc_self_test() 655 q = mbedtls_calloc(1, 128); in mbedtls_memory_buffer_alloc_self_test() 656 r = mbedtls_calloc(1, 16); in mbedtls_memory_buffer_alloc_self_test() 685 p = mbedtls_calloc(1, 1); in mbedtls_memory_buffer_alloc_self_test() 686 q = mbedtls_calloc(1, 128); in mbedtls_memory_buffer_alloc_self_test() 687 r = mbedtls_calloc(1, 16); in mbedtls_memory_buffer_alloc_self_test() 711 p = mbedtls_calloc(1, sizeof(buf) - sizeof(memory_header)); in mbedtls_memory_buffer_alloc_self_test() 714 TEST_ASSERT(mbedtls_calloc(1, 1) == NULL); in mbedtls_memory_buffer_alloc_self_test() 718 p = mbedtls_calloc(1, sizeof(buf) - 2 * sizeof(memory_header) - 16); in mbedtls_memory_buffer_alloc_self_test() 719 q = mbedtls_calloc(1, 16); in mbedtls_memory_buffer_alloc_self_test() [all …]
|
| H A D | asn1write.c | 387 cur = (mbedtls_asn1_named_data *) mbedtls_calloc(1, in mbedtls_asn1_store_named_data() 394 cur->oid.p = mbedtls_calloc(1, oid_len); in mbedtls_asn1_store_named_data() 404 cur->val.p = mbedtls_calloc(1, val_len); in mbedtls_asn1_store_named_data() 424 void *p = mbedtls_calloc(1, val_len); in mbedtls_asn1_store_named_data()
|
| H A D | cipher_wrap.c | 125 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context)); in gcm_ctx_alloc() 152 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ccm_context)); in ccm_ctx_alloc() 261 mbedtls_aes_context *aes = mbedtls_calloc(1, sizeof(mbedtls_aes_context)); in aes_ctx_alloc() 513 mbedtls_aes_xts_context *xts_ctx = mbedtls_calloc(1, sizeof(*xts_ctx)); in xts_aes_ctx_alloc() 851 ctx = mbedtls_calloc(1, sizeof(mbedtls_camellia_context)); in camellia_ctx_alloc() 1277 ctx = mbedtls_calloc(1, sizeof(mbedtls_aria_context)); in aria_ctx_alloc() 1722 mbedtls_des_context *des = mbedtls_calloc(1, sizeof(mbedtls_des_context)); in des_ctx_alloc() 1747 des3 = mbedtls_calloc(1, sizeof(mbedtls_des3_context)); in des3_ctx_alloc() 1958 ctx = mbedtls_calloc(1, sizeof(mbedtls_chacha20_context)); in chacha20_ctx_alloc() 2041 ctx = mbedtls_calloc(1, sizeof(mbedtls_chachapoly_context)); in chachapoly_ctx_alloc() [all …]
|
| H A D | psa_crypto_storage.c | 300 *key_data = mbedtls_calloc(1, *key_data_length); in psa_parse_key_data_from_storage() 335 storage_data = mbedtls_calloc(1, storage_data_length); in psa_save_persistent_key() 369 loaded_data = mbedtls_calloc(1, storage_data_length); in psa_load_persistent_key()
|
| H A D | psa_crypto_pake.c | 184 operation->password = mbedtls_calloc(1, password_len); in mbedtls_psa_pake_setup() 190 user = mbedtls_calloc(1, user_len); in mbedtls_psa_pake_setup() 196 peer = mbedtls_calloc(1, peer_len); in mbedtls_psa_pake_setup()
|
| H A D | bignum_mod.c | 176 mbedtls_mpi_uint *T = mbedtls_calloc(N->limbs * 2 + 1, ciL); in mbedtls_mpi_mod_mul() 265 mbedtls_mpi_uint *working_memory = mbedtls_calloc(working_limbs, in mbedtls_mpi_mod_inv() 366 working_memory = mbedtls_calloc(r->limbs, sizeof(mbedtls_mpi_uint)); in mbedtls_mpi_mod_write()
|
| H A D | bignum_mod_raw.c | 237 if ((T = (mbedtls_mpi_uint *) mbedtls_calloc(t_limbs, ciL)) == NULL) { in mbedtls_mpi_mod_raw_to_mont_rep() 254 if ((T = (mbedtls_mpi_uint *) mbedtls_calloc(t_limbs, ciL)) == NULL) { in mbedtls_mpi_mod_raw_from_mont_rep()
|
| H A D | lms.c | 507 tree = mbedtls_calloc((size_t) MERKLE_TREE_NODE_AM(ctx->params.type), in get_merkle_path() 606 ctx->ots_private_keys = mbedtls_calloc((size_t) MERKLE_TREE_LEAF_NODE_AM(ctx->params.type), in mbedtls_lms_generate_private_key() 615 ctx->ots_public_keys = mbedtls_calloc((size_t) MERKLE_TREE_LEAF_NODE_AM(ctx->params.type), in mbedtls_lms_generate_private_key() 675 tree = mbedtls_calloc((size_t) MERKLE_TREE_NODE_AM(priv_ctx->params.type), in mbedtls_lms_calculate_public_key()
|
| H A D | ssl_cache.c | 186 cur = mbedtls_calloc(1, sizeof(mbedtls_ssl_cache_entry)); in ssl_cache_pick_writing_slot() 278 session_serialized = mbedtls_calloc(1, session_serialized_len); in mbedtls_ssl_cache_set()
|
| H A D | x509_crl.c | 267 cur_entry->next = mbedtls_calloc(1, sizeof(mbedtls_x509_crl_entry)); in x509_get_entries() 311 crl->next = mbedtls_calloc(1, sizeof(mbedtls_x509_crl)); in mbedtls_x509_crl_parse_der() 329 p = mbedtls_calloc(1, buflen); in mbedtls_x509_crl_parse_der()
|
| H A D | x509write.c | 91 buf = mbedtls_calloc(1, buflen); in mbedtls_x509_write_set_san_common()
|
| H A D | pkcs7.c | 408 mbedtls_calloc(1, sizeof(mbedtls_pkcs7_signer_info)); in pkcs7_get_signers_info_set() 566 pkcs7->raw.p = p = mbedtls_calloc(1, buflen); in mbedtls_pkcs7_parse_der() 674 hash = mbedtls_calloc(mbedtls_md_get_size(md_info), 1); in mbedtls_pkcs7_data_or_hash_verify()
|
| H A D | pem.c | 422 if ((buf = mbedtls_calloc(1, len)) == NULL) { in mbedtls_pem_read_buffer() 518 ((encode_buf = mbedtls_calloc(1, use_len)) == NULL)) { in mbedtls_pem_write_buffer()
|
| H A D | pk_wrap.c | 182 buf = mbedtls_calloc(1, MBEDTLS_PK_RSA_PRV_DER_MAX_BYTES); in mbedtls_pk_psa_rsa_sign_ext() 456 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_rsa_context)); in rsa_alloc_wrap() 850 void *ctx = mbedtls_calloc(1, sizeof(eckey_restart_ctx)); in eckey_rs_alloc() 1083 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ecp_keypair)); in eckey_alloc_wrap() 1222 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ecdsa_restart_ctx)); in ecdsa_rs_alloc() 1368 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_rsa_alt_context)); in rsa_alt_alloc_wrap()
|
| H A D | ssl_tls.c | 253 dst->peer_cert = mbedtls_calloc(1, sizeof(mbedtls_x509_crt)); in mbedtls_ssl_session_copy() 270 mbedtls_calloc(1, src->peer_cert_digest_len); in mbedtls_ssl_session_copy() 296 dst->ticket = mbedtls_calloc(1, src->ticket_len); in mbedtls_ssl_session_copy() 324 unsigned char *resized_buffer = mbedtls_calloc(1, len_new); in resize_buffer() 1077 ssl->transform_negotiate = mbedtls_calloc(1, sizeof(mbedtls_ssl_transform)); in ssl_handshake_init() 1082 ssl->session_negotiate = mbedtls_calloc(1, sizeof(mbedtls_ssl_session)); in ssl_handshake_init() 1086 ssl->handshake = mbedtls_calloc(1, sizeof(mbedtls_ssl_handshake_params)); in ssl_handshake_init() 1179 uint16_t *group_list = mbedtls_calloc(length + 1, sizeof(uint16_t)); in ssl_handshake_init() 1241 ssl->handshake->sig_algs = mbedtls_calloc(1, sig_algs_len + in ssl_handshake_init() 1400 ssl->in_buf = mbedtls_calloc(1, in_buf_len); in mbedtls_ssl_setup() [all …]
|
| H A D | x509_create.c | 229 unsigned char *der = mbedtls_calloc(1, der_length); in parse_attribute_value_hex_der_encoded() 312 oid.p = mbedtls_calloc(1, oid.len); in mbedtls_x509_string_to_names()
|
| H A D | md.c | 414 ctx->md_ctx = mbedtls_calloc(1, sizeof(mbedtls_##type##_context)); \ 444 ctx->md_ctx = mbedtls_calloc(1, sizeof(psa_hash_operation_t)); in mbedtls_md_setup() 501 ctx->hmac_ctx = mbedtls_calloc(2, md_info->block_size); in mbedtls_md_setup()
|
| H A D | ssl_tls13_keys.c | 1248 transform_earlydata = mbedtls_calloc(1, sizeof(mbedtls_ssl_transform)); in mbedtls_ssl_tls13_compute_early_transform() 1501 shared_secret = mbedtls_calloc(1, shared_secret_len); in ssl_tls13_key_schedule_stage_handshake() 1720 transform_handshake = mbedtls_calloc(1, sizeof(mbedtls_ssl_transform)); in mbedtls_ssl_tls13_compute_handshake_transform() 1811 mbedtls_calloc(1, sizeof(mbedtls_ssl_transform)); in mbedtls_ssl_tls13_compute_application_transform() 1861 *psk = mbedtls_calloc(1, *psk_len); in mbedtls_ssl_tls13_export_handshake_psk()
|
| H A D | pkwrite.c | 556 output_buf = mbedtls_calloc(1, PUB_DER_MAX_BYTES); in mbedtls_pk_write_pubkey_pem() 583 output_buf = mbedtls_calloc(1, PRV_DER_MAX_BYTES); in mbedtls_pk_write_key_pem()
|
| H A D | platform.c | 47 void *mbedtls_calloc(size_t nmemb, size_t size) in mbedtls_calloc() function
|
| H A D | x509.c | 531 cur->next = mbedtls_calloc(1, sizeof(mbedtls_x509_name)); in mbedtls_x509_get_name() 548 cur->next = mbedtls_calloc(1, sizeof(mbedtls_x509_name)); in mbedtls_x509_get_name() 736 pss_opts = mbedtls_calloc(1, sizeof(mbedtls_pk_rsassa_pss_options)); in mbedtls_x509_get_sig_alg() 1264 cur->next = mbedtls_calloc(1, sizeof(mbedtls_asn1_sequence)); in mbedtls_x509_get_subject_alt_name_ext()
|
| H A D | psa_crypto_se.c | 335 mbedtls_calloc(1, methods->persistent_data_size); in psa_register_se_driver()
|
| H A D | x509write_csr.c | 297 if ((sig = mbedtls_calloc(1, MBEDTLS_PK_SIGNATURE_MAX_SIZE)) == NULL) { in mbedtls_x509write_csr_der()
|
| H A D | oid.c | 1074 oid->p = mbedtls_calloc(max_possible_bytes, 1); in mbedtls_oid_from_numeric_string() 1145 resized_mem = mbedtls_calloc(encoded_len, 1); in mbedtls_oid_from_numeric_string()
|