Home
last modified time | relevance | path

Searched refs:mbedtls_calloc (Results 1 – 25 of 68) sorted by relevance

123

/mbedtls-development/scripts/
A Dfind-mem-leak.cocci5 x = mbedtls_calloc(...);
6 y = mbedtls_calloc(...);
16 * (x = mbedtls_calloc(...)) == NULL
18 * (y = mbedtls_calloc(...)) == NULL
A Drm-calloc-cast.cocci7 mbedtls_calloc(n, m)
/mbedtls-development/tests/suites/
A Dtest_suite_memory_buffer_alloc.function54 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,
A Dtest_suite_hkdf.function47 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 );
A Dtest_suite_nist_kw.function163 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 );
/mbedtls-development/programs/test/
A Dselftest.c60 #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()
/mbedtls-development/library/
A Dmemory_buffer_alloc.c658 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()
719 q = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
722 TEST_ASSERT( mbedtls_calloc( 1, 1 ) == NULL ); in mbedtls_memory_buffer_alloc_self_test()
[all …]
A Dpsa_crypto_client.c29 #define mbedtls_calloc calloc macro
48 copy = mbedtls_calloc( 1, data_length ); in psa_set_key_domain_parameters()
A Dasn1write.c33 #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()
A Dcipher_wrap.c75 #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()
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()
1870 ctx = mbedtls_calloc( 1, sizeof( mbedtls_chachapoly_context ) ); in chachapoly_ctx_alloc()
[all …]
A Dpsa_crypto_storage.c43 #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()
A Dpk_wrap.c57 #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()
A Dssl_cache.c32 #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()
A Dx509_crl.c51 #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()
A Dpem.c39 #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()
A Dpsa_crypto_se.c42 #define mbedtls_calloc calloc macro
345 mbedtls_calloc( 1, methods->persistent_data_size ); in psa_register_se_driver()
A Dx509_csr.c51 #define mbedtls_calloc calloc macro
106 p = mbedtls_calloc( 1, len = buflen ); in mbedtls_x509_csr_parse_der()
A Dx509write_csr.c51 #define mbedtls_calloc calloc macro
303 if( ( sig = mbedtls_calloc( 1, MBEDTLS_PK_SIGNATURE_MAX_SIZE ) ) == NULL ) in mbedtls_x509write_csr_der()
/mbedtls-development/tests/include/test/
A Dmacros.h37 #define mbedtls_calloc calloc macro
118 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \
136 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \
A Dhelpers.h46 #define mbedtls_calloc calloc macro
/mbedtls-development/include/mbedtls/
A Dplatform.h131 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro
135 extern void *mbedtls_calloc( size_t n, size_t size );
152 #define mbedtls_calloc calloc
/mbedtls-development/tests/src/
A Dhelpers.c187 p = mbedtls_calloc( 1, actual_len ); in mbedtls_test_zero_alloc()
205 obuf = mbedtls_calloc( 1, *olen ); in mbedtls_test_unhexify_alloc()
/mbedtls-development/programs/util/
A Dpem2der.c28 #define mbedtls_calloc calloc macro
138 ( *buf = mbedtls_calloc( 1, *n + 1 ) ) == NULL ) in load_file()
/mbedtls-development/programs/ssl/
A Dssl_test_lib.h30 #define mbedtls_calloc calloc macro
/mbedtls-development/3rdparty/everest/library/
A Deverest.c34 #define mbedtls_calloc calloc macro

Completed in 28 milliseconds

123