/mbedtls-3.5.0/tests/suites/ |
D | test_suite_memory_buffer_alloc.function | 55 ptr_a = mbedtls_calloc(a_bytes, sizeof(char)); 62 ptr_b = mbedtls_calloc(b_bytes, sizeof(char)); 69 ptr_c = mbedtls_calloc(c_bytes, sizeof(char)); 76 ptr_d = mbedtls_calloc(d_bytes, sizeof(char)); 125 ptr_e = mbedtls_calloc(e_bytes, sizeof(char)); 130 ptr_f = mbedtls_calloc(f_bytes, sizeof(char)); 201 ptr_a = mbedtls_calloc(432, sizeof(char)); 204 ptr_b = mbedtls_calloc(432, sizeof(char)); 207 ptr_c = mbedtls_calloc(431, sizeof(char)); 256 TEST_ASSERT(mbedtls_calloc(1,
|
D | test_suite_nist_kw.function | 159 plaintext = mbedtls_calloc(1, in_len); 164 ciphertext = mbedtls_calloc(1, output_len); 207 plaintext = mbedtls_calloc(1, output_len); 211 ciphertext = mbedtls_calloc(1, in_len);
|
D | test_suite_pem.function | 22 check_buf = (unsigned char *) mbedtls_calloc(1, olen);
|
/mbedtls-3.5.0/scripts/ |
D | find-mem-leak.cocci | 5 x = mbedtls_calloc(...); 6 y = mbedtls_calloc(...); 16 * (x = mbedtls_calloc(...)) == NULL 18 * (y = mbedtls_calloc(...)) == NULL
|
D | rm-calloc-cast.cocci | 7 mbedtls_calloc(n, m)
|
/mbedtls-3.5.0/library/ |
D | memory_buffer_alloc.c | 666 p = mbedtls_calloc(1, 1); in mbedtls_memory_buffer_alloc_self_test() 667 q = mbedtls_calloc(1, 128); in mbedtls_memory_buffer_alloc_self_test() 668 r = mbedtls_calloc(1, 16); in mbedtls_memory_buffer_alloc_self_test() 697 p = mbedtls_calloc(1, 1); in mbedtls_memory_buffer_alloc_self_test() 698 q = mbedtls_calloc(1, 128); in mbedtls_memory_buffer_alloc_self_test() 699 r = mbedtls_calloc(1, 16); in mbedtls_memory_buffer_alloc_self_test() 723 p = mbedtls_calloc(1, sizeof(buf) - sizeof(memory_header)); in mbedtls_memory_buffer_alloc_self_test() 726 TEST_ASSERT(mbedtls_calloc(1, 1) == NULL); in mbedtls_memory_buffer_alloc_self_test() 730 p = mbedtls_calloc(1, sizeof(buf) - 2 * sizeof(memory_header) - 16); in mbedtls_memory_buffer_alloc_self_test() 731 q = mbedtls_calloc(1, 16); in mbedtls_memory_buffer_alloc_self_test() [all …]
|
D | cipher_wrap.c | 77 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_gcm_context)); in gcm_ctx_alloc() 97 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ccm_context)); in ccm_ctx_alloc() 199 mbedtls_aes_context *aes = mbedtls_calloc(1, sizeof(mbedtls_aes_context)); in aes_ctx_alloc() 433 mbedtls_aes_xts_context *xts_ctx = mbedtls_calloc(1, sizeof(*xts_ctx)); in xts_aes_ctx_alloc() 731 ctx = mbedtls_calloc(1, sizeof(mbedtls_camellia_context)); in camellia_ctx_alloc() 1141 ctx = mbedtls_calloc(1, sizeof(mbedtls_aria_context)); in aria_ctx_alloc() 1580 mbedtls_des_context *des = mbedtls_calloc(1, sizeof(mbedtls_des_context)); in des_ctx_alloc() 1600 des3 = mbedtls_calloc(1, sizeof(mbedtls_des3_context)); in des3_ctx_alloc() 1803 ctx = mbedtls_calloc(1, sizeof(mbedtls_chacha20_context)); in chacha20_ctx_alloc() 1878 ctx = mbedtls_calloc(1, sizeof(mbedtls_chachapoly_context)); in chachapoly_ctx_alloc() [all …]
|
D | asn1write.c | 429 cur = (mbedtls_asn1_named_data *) mbedtls_calloc(1, in mbedtls_asn1_store_named_data() 436 cur->oid.p = mbedtls_calloc(1, oid_len); in mbedtls_asn1_store_named_data() 446 cur->val.p = mbedtls_calloc(1, val_len); in mbedtls_asn1_store_named_data() 465 void *p = mbedtls_calloc(1, val_len); in mbedtls_asn1_store_named_data()
|
D | psa_crypto_storage.c | 312 *key_data = mbedtls_calloc(1, *key_data_length); in psa_parse_key_data_from_storage() 347 storage_data = mbedtls_calloc(1, storage_data_length); in psa_save_persistent_key() 385 loaded_data = mbedtls_calloc(1, storage_data_length); in psa_load_persistent_key()
|
D | lms.c | 510 tree = mbedtls_calloc(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(MERKLE_TREE_NODE_AM(priv_ctx->params.type), in mbedtls_lms_calculate_public_key()
|
D | bignum_mod_raw.c | 252 if ((T = (mbedtls_mpi_uint *) mbedtls_calloc(t_limbs, ciL)) == NULL) { in mbedtls_mpi_mod_raw_to_mont_rep() 270 if ((T = (mbedtls_mpi_uint *) mbedtls_calloc(t_limbs, ciL)) == NULL) { in mbedtls_mpi_mod_raw_from_mont_rep()
|
D | ssl_cache.c | 198 cur = mbedtls_calloc(1, sizeof(mbedtls_ssl_cache_entry)); in ssl_cache_pick_writing_slot() 290 session_serialized = mbedtls_calloc(1, session_serialized_len); in mbedtls_ssl_cache_set()
|
D | psa_crypto_client.c | 43 copy = mbedtls_calloc(1, data_length); in psa_set_key_domain_parameters()
|
D | x509_crl.c | 278 cur_entry->next = mbedtls_calloc(1, sizeof(mbedtls_x509_crl_entry)); in x509_get_entries() 322 crl->next = mbedtls_calloc(1, sizeof(mbedtls_x509_crl)); in mbedtls_x509_crl_parse_der() 340 p = mbedtls_calloc(1, buflen); in mbedtls_x509_crl_parse_der()
|
D | pk_wrap.c | 583 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_rsa_context)); in rsa_alloc_wrap() 1018 void *ctx = mbedtls_calloc(1, sizeof(eckey_restart_ctx)); in eckey_rs_alloc() 1109 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ecp_keypair)); in eckey_alloc_wrap() 1237 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_ecdsa_restart_ctx)); in ecdsa_rs_alloc() 1377 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_rsa_alt_context)); in rsa_alt_alloc_wrap() 1425 void *ctx = mbedtls_calloc(1, sizeof(mbedtls_svc_key_id_t)); in pk_opaque_alloc_wrap()
|
D | pkcs7.c | 420 mbedtls_calloc(1, sizeof(mbedtls_pkcs7_signer_info)); in pkcs7_get_signers_info_set() 578 pkcs7->raw.p = p = mbedtls_calloc(1, buflen); in mbedtls_pkcs7_parse_der() 686 hash = mbedtls_calloc(mbedtls_md_get_size(md_info), 1); in mbedtls_pkcs7_data_or_hash_verify()
|
D | x509write_csr.c | 123 buf = mbedtls_calloc(1, buflen); in mbedtls_x509write_csr_set_subject_alternative_name() 397 if ((sig = mbedtls_calloc(1, MBEDTLS_PK_SIGNATURE_MAX_SIZE)) == NULL) { in mbedtls_x509write_csr_der()
|
D | bignum_mod.c | 193 mbedtls_mpi_uint *T = mbedtls_calloc(N->limbs * 2 + 1, ciL); in mbedtls_mpi_mod_mul() 286 mbedtls_mpi_uint *working_memory = mbedtls_calloc(working_limbs, in mbedtls_mpi_mod_inv()
|
D | md.c | 370 ctx->md_ctx = mbedtls_calloc(1, sizeof(mbedtls_##type##_context)); \ 395 ctx->md_ctx = mbedtls_calloc(1, sizeof(psa_hash_operation_t)); in mbedtls_md_setup() 444 ctx->hmac_ctx = mbedtls_calloc(2, md_info->block_size); in mbedtls_md_setup()
|
/mbedtls-3.5.0/programs/test/ |
D | selftest.c | 71 void *empty1 = mbedtls_calloc(0, 1); in calloc_self_test() 72 void *empty2 = mbedtls_calloc(0, 1); in calloc_self_test() 73 void *buffer1 = mbedtls_calloc(1, 1); in calloc_self_test() 74 void *buffer2 = mbedtls_calloc(1, 1); in calloc_self_test() 112 buffer1 = mbedtls_calloc(1, 1); in calloc_self_test()
|
/mbedtls-3.5.0/include/mbedtls/ |
D | platform.h | 143 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro 147 extern void *mbedtls_calloc(size_t n, size_t size); 164 #define mbedtls_calloc calloc
|
/mbedtls-3.5.0/tests/include/test/ |
D | macros.h | 131 (pointer) = mbedtls_calloc(sizeof(*(pointer)), \ 149 (pointer) = mbedtls_calloc(sizeof(*(pointer)), \
|
/mbedtls-3.5.0/tests/src/test_helpers/ |
D | ssl_helpers.c | 139 buf->buffer = (unsigned char *) mbedtls_calloc(capacity, in mbedtls_test_ssl_buffer_setup() 239 queue->messages = (size_t *) mbedtls_calloc(capacity, sizeof(size_t)); in mbedtls_test_ssl_message_queue_setup() 367 (mbedtls_test_ssl_buffer *) mbedtls_calloc( in mbedtls_test_mock_socket_connect() 379 (mbedtls_test_ssl_buffer *) mbedtls_calloc( in mbedtls_test_mock_socket_connect() 1129 CHK((key0 = mbedtls_calloc(1, keylen + 1)) != NULL); in mbedtls_test_ssl_build_transforms() 1130 CHK((key1 = mbedtls_calloc(1, keylen + 1)) != NULL); in mbedtls_test_ssl_build_transforms() 1183 CHK((md0 = mbedtls_calloc(1, maclen)) != NULL); in mbedtls_test_ssl_build_transforms() 1184 CHK((md1 = mbedtls_calloc(1, maclen)) != NULL); in mbedtls_test_ssl_build_transforms() 1466 session->peer_cert = mbedtls_calloc(1, sizeof(*session->peer_cert)); in mbedtls_test_ssl_tls12_populate_session() 1475 mbedtls_calloc(1, MBEDTLS_SSL_PEER_CERT_DIGEST_DFL_LEN); in mbedtls_test_ssl_tls12_populate_session() [all …]
|
/mbedtls-3.5.0/tests/src/ |
D | helpers.c | 257 p = mbedtls_calloc(1, actual_len); in mbedtls_test_zero_alloc() 276 obuf = mbedtls_calloc(1, *olen); in mbedtls_test_unhexify_alloc()
|
D | bignum_helpers.c | 60 *pX = mbedtls_calloc(*plimbs, sizeof(**pX)); in mbedtls_test_read_mpi_core()
|