/third_party/mbedtls/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)
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_memory_buffer_alloc.function | 54 ptr_a = mbedtls_calloc( a_bytes, sizeof(char) ); 62 ptr_b = mbedtls_calloc( b_bytes, sizeof(char) ); 70 ptr_c = mbedtls_calloc( c_bytes, sizeof(char) ); 78 ptr_d = mbedtls_calloc( d_bytes, sizeof(char) ); 132 ptr_e = mbedtls_calloc( e_bytes, sizeof(char) ); 138 ptr_f = mbedtls_calloc( f_bytes, sizeof(char) ); 215 ptr_a = mbedtls_calloc( 432, sizeof(char) ); 218 ptr_b = mbedtls_calloc( 432, sizeof(char) ); 221 ptr_c = mbedtls_calloc( 431, sizeof(char) ); 271 TEST_ASSERT( mbedtls_calloc( 1,
|
D | test_suite_hkdf.function | 47 output_prk = mbedtls_calloc( 1, output_prk_len ); 81 output_okm = mbedtls_calloc( OKM_LEN, 1 ); 116 prk = mbedtls_calloc( MBEDTLS_MD_MAX_SIZE, 1 ); 146 prk = mbedtls_calloc( prk_len, 1 ); 149 okm = mbedtls_calloc( okm_len, 1 );
|
D | test_suite_nist_kw.function | 163 plaintext = mbedtls_calloc( 1, in_len ); 169 ciphertext = mbedtls_calloc( 1, output_len ); 215 plaintext = mbedtls_calloc( 1, output_len ); 220 ciphertext = mbedtls_calloc( 1, in_len );
|
/third_party/mbedtls/programs/test/ |
D | selftest.c | 60 #define mbedtls_calloc calloc macro 81 void *empty1 = mbedtls_calloc( 0, 1 ); in calloc_self_test() 82 void *empty2 = mbedtls_calloc( 0, 1 ); in calloc_self_test() 83 void *buffer1 = mbedtls_calloc( 1, 1 ); in calloc_self_test() 84 void *buffer2 = mbedtls_calloc( 1, 1 ); in calloc_self_test() 129 buffer1 = mbedtls_calloc( 1, 1 ); in calloc_self_test()
|
/third_party/mbedtls/library/ |
D | memory_buffer_alloc.c | 658 p = mbedtls_calloc( 1, 1 ); in mbedtls_memory_buffer_alloc_self_test() 659 q = mbedtls_calloc( 1, 128 ); in mbedtls_memory_buffer_alloc_self_test() 660 r = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test() 687 p = mbedtls_calloc( 1, 1 ); in mbedtls_memory_buffer_alloc_self_test() 688 q = mbedtls_calloc( 1, 128 ); in mbedtls_memory_buffer_alloc_self_test() 689 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 …]
|
D | psa_crypto_client.c | 29 #define mbedtls_calloc calloc macro 48 copy = mbedtls_calloc( 1, data_length ); in psa_set_key_domain_parameters()
|
D | asn1write.c | 33 #define mbedtls_calloc calloc macro 424 cur = (mbedtls_asn1_named_data*)mbedtls_calloc( 1, in mbedtls_asn1_store_named_data() 430 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data() 442 cur->val.p = mbedtls_calloc( 1, val_len ); in mbedtls_asn1_store_named_data() 466 void *p = mbedtls_calloc( 1, val_len ); in mbedtls_asn1_store_named_data()
|
D | cipher_wrap.c | 75 #define mbedtls_calloc calloc macro 83 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_gcm_context ) ); in gcm_ctx_alloc() 102 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ccm_context ) ); in ccm_ctx_alloc() 204 mbedtls_aes_context *aes = mbedtls_calloc( 1, sizeof( mbedtls_aes_context ) ); in aes_ctx_alloc() 437 mbedtls_aes_xts_context *xts_ctx = mbedtls_calloc( 1, sizeof( *xts_ctx ) ); in xts_aes_ctx_alloc() 733 ctx = mbedtls_calloc( 1, sizeof( mbedtls_camellia_context ) ); in camellia_ctx_alloc() 1142 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() 1599 des3 = mbedtls_calloc( 1, sizeof( mbedtls_des3_context ) ); in des3_ctx_alloc() 1798 ctx = mbedtls_calloc( 1, sizeof( mbedtls_chacha20_context ) ); in chacha20_ctx_alloc() [all …]
|
D | pk_wrap.c | 57 #define mbedtls_calloc calloc macro 171 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_context ) ); in rsa_alloc_wrap() 321 void *ctx = mbedtls_calloc( 1, sizeof( eckey_restart_ctx ) ); in eckey_rs_alloc() 409 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecp_keypair ) ); in eckey_alloc_wrap() 703 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecdsa_context ) ); in ecdsa_alloc_wrap() 720 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecdsa_restart_ctx ) ); in ecdsa_rs_alloc() 850 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_alt_context ) ); in rsa_alt_alloc_wrap() 897 void *ctx = mbedtls_calloc( 1, sizeof( psa_key_id_t ) ); in pk_opaque_alloc_wrap()
|
D | psa_crypto_storage.c | 43 #define mbedtls_calloc calloc macro 311 *key_data = mbedtls_calloc( 1, *key_data_length ); in psa_parse_key_data_from_storage() 343 storage_data = mbedtls_calloc( 1, storage_data_length ); in psa_save_persistent_key() 379 loaded_data = mbedtls_calloc( 1, storage_data_length ); in psa_load_persistent_key()
|
D | ssl_cache.c | 32 #define mbedtls_calloc calloc macro 189 cur = mbedtls_calloc( 1, sizeof(mbedtls_ssl_cache_entry) ); in ssl_cache_pick_writing_slot() 279 session_serialized = mbedtls_calloc( 1, session_serialized_len ); in mbedtls_ssl_cache_set()
|
D | x509_crl.c | 51 #define mbedtls_calloc calloc macro 280 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 | pem.c | 39 #define mbedtls_calloc calloc macro 348 if( ( buf = mbedtls_calloc( 1, len ) ) == NULL ) in mbedtls_pem_read_buffer() 451 ( ( encode_buf = mbedtls_calloc( 1, use_len ) ) == NULL ) ) in mbedtls_pem_write_buffer()
|
D | psa_crypto_se.c | 42 #define mbedtls_calloc calloc macro 345 mbedtls_calloc( 1, methods->persistent_data_size ); in psa_register_se_driver()
|
D | x509_csr.c | 51 #define mbedtls_calloc calloc macro 106 p = mbedtls_calloc( 1, len = buflen ); in mbedtls_x509_csr_parse_der()
|
D | x509write_csr.c | 51 #define mbedtls_calloc calloc macro 303 if( ( sig = mbedtls_calloc( 1, MBEDTLS_PK_SIGNATURE_MAX_SIZE ) ) == NULL ) in mbedtls_x509write_csr_der()
|
D | x509.c | 52 #define mbedtls_calloc calloc macro 458 cur->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_name ) ); in mbedtls_x509_get_name() 472 cur->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_name ) ); in mbedtls_x509_get_name() 673 pss_opts = mbedtls_calloc( 1, sizeof( mbedtls_pk_rsassa_pss_options ) ); in mbedtls_x509_get_sig_alg()
|
D | asn1parse.c | 38 #define mbedtls_calloc calloc macro 348 mbedtls_calloc( 1, sizeof( mbedtls_asn1_sequence ) ); in asn1_get_sequence_of_cb()
|
/third_party/mbedtls/tests/include/test/ |
D | macros.h | 37 #define mbedtls_calloc calloc macro 118 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \ 136 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \
|
D | helpers.h | 46 #define mbedtls_calloc calloc macro
|
/third_party/mbedtls/include/mbedtls/ |
D | platform.h | 131 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro 135 extern void *mbedtls_calloc( size_t n, size_t size ); 152 #define mbedtls_calloc calloc
|
/third_party/mbedtls/tests/src/ |
D | helpers.c | 187 p = mbedtls_calloc( 1, actual_len ); in mbedtls_test_zero_alloc() 205 obuf = mbedtls_calloc( 1, *olen ); in mbedtls_test_unhexify_alloc()
|
/third_party/mbedtls/programs/util/ |
D | pem2der.c | 28 #define mbedtls_calloc calloc macro 138 ( *buf = mbedtls_calloc( 1, *n + 1 ) ) == NULL ) in load_file()
|