Home
last modified time | relevance | path

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

123456

/external/openthread/third_party/mbedtls/repo/scripts/
Dfind-mem-leak.cocci5 x = mbedtls_calloc(...);
6 y = mbedtls_calloc(...);
16 * (x = mbedtls_calloc(...)) == NULL
18 * (y = mbedtls_calloc(...)) == NULL
/external/mbedtls/scripts/
Dfind-mem-leak.cocci5 x = mbedtls_calloc(...);
6 y = mbedtls_calloc(...);
16 * (x = mbedtls_calloc(...)) == NULL
18 * (y = mbedtls_calloc(...)) == NULL
/external/openthread/third_party/mbedtls/repo/tests/suites/
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,
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 );
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 );
/external/mbedtls/tests/suites/
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,
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 );
/external/openthread/third_party/mbedtls/repo/programs/test/
Dselftest.c67 #define mbedtls_calloc calloc macro
88 void *empty1 = mbedtls_calloc( 0, 1 ); in calloc_self_test()
89 void *empty2 = mbedtls_calloc( 0, 1 ); in calloc_self_test()
90 void *buffer1 = mbedtls_calloc( 1, 1 ); in calloc_self_test()
91 void *buffer2 = mbedtls_calloc( 1, 1 ); in calloc_self_test()
136 buffer1 = mbedtls_calloc( 1, 1 ); in calloc_self_test()
/external/mbedtls/library/
Dmemory_buffer_alloc.c664 p = mbedtls_calloc( 1, 1 ); in mbedtls_memory_buffer_alloc_self_test()
665 q = mbedtls_calloc( 1, 128 ); in mbedtls_memory_buffer_alloc_self_test()
666 r = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
693 p = mbedtls_calloc( 1, 1 ); in mbedtls_memory_buffer_alloc_self_test()
694 q = mbedtls_calloc( 1, 128 ); in mbedtls_memory_buffer_alloc_self_test()
695 r = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
717 p = mbedtls_calloc( 1, sizeof( buf ) - sizeof( memory_header ) ); in mbedtls_memory_buffer_alloc_self_test()
720 TEST_ASSERT( mbedtls_calloc( 1, 1 ) == NULL ); in mbedtls_memory_buffer_alloc_self_test()
724 p = mbedtls_calloc( 1, sizeof( buf ) - 2 * sizeof( memory_header ) - 16 ); in mbedtls_memory_buffer_alloc_self_test()
725 q = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
[all …]
Dcipher_wrap.c77 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_gcm_context ) ); in gcm_ctx_alloc()
96 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ccm_context ) ); in ccm_ctx_alloc()
198 mbedtls_aes_context *aes = mbedtls_calloc( 1, sizeof( mbedtls_aes_context ) ); in aes_ctx_alloc()
431 mbedtls_aes_xts_context *xts_ctx = mbedtls_calloc( 1, sizeof( *xts_ctx ) ); in xts_aes_ctx_alloc()
727 ctx = mbedtls_calloc( 1, sizeof( mbedtls_camellia_context ) ); in camellia_ctx_alloc()
1136 ctx = mbedtls_calloc( 1, sizeof( mbedtls_aria_context ) ); in aria_ctx_alloc()
1574 mbedtls_des_context *des = mbedtls_calloc( 1, sizeof( mbedtls_des_context ) ); in des_ctx_alloc()
1593 des3 = mbedtls_calloc( 1, sizeof( mbedtls_des3_context ) ); in des3_ctx_alloc()
1792 ctx = mbedtls_calloc( 1, sizeof( mbedtls_chacha20_context ) ); in chacha20_ctx_alloc()
1864 ctx = mbedtls_calloc( 1, sizeof( mbedtls_chachapoly_context ) ); in chachapoly_ctx_alloc()
[all …]
Dasn1write.c423 cur = (mbedtls_asn1_named_data*)mbedtls_calloc( 1, in mbedtls_asn1_store_named_data()
429 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data()
441 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()
/external/openthread/third_party/mbedtls/repo/library/
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()
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 …]
Dcipher_wrap.c83 #define mbedtls_calloc calloc macro
91 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_gcm_context ) ); in gcm_ctx_alloc()
110 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ccm_context ) ); in ccm_ctx_alloc()
212 mbedtls_aes_context *aes = mbedtls_calloc( 1, sizeof( mbedtls_aes_context ) ); in aes_ctx_alloc()
445 mbedtls_aes_xts_context *xts_ctx = mbedtls_calloc( 1, sizeof( *xts_ctx ) ); in xts_aes_ctx_alloc()
708 ctx = mbedtls_calloc( 1, sizeof( mbedtls_camellia_context ) ); in camellia_ctx_alloc()
1084 ctx = mbedtls_calloc( 1, sizeof( mbedtls_aria_context ) ); in aria_ctx_alloc()
1489 mbedtls_des_context *des = mbedtls_calloc( 1, sizeof( mbedtls_des_context ) ); in des_ctx_alloc()
1508 des3 = mbedtls_calloc( 1, sizeof( mbedtls_des3_context ) ); in des3_ctx_alloc()
1725 ctx = mbedtls_calloc( 1, sizeof( mbedtls_blowfish_context ) ); in blowfish_ctx_alloc()
[all …]
Dssl_cache.c32 #define mbedtls_calloc calloc macro
106 if( ( session->peer_cert = mbedtls_calloc( 1, in mbedtls_ssl_cache_get()
225 cur = mbedtls_calloc( 1, sizeof(mbedtls_ssl_cache_entry) ); in mbedtls_ssl_cache_set()
273 mbedtls_calloc( 1, cur->session.peer_cert->raw.len ); in mbedtls_ssl_cache_set()
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()
Dpsa_crypto_client.c29 #define mbedtls_calloc calloc macro
48 copy = mbedtls_calloc( 1, data_length ); in psa_set_key_domain_parameters()
Dpk_wrap.c57 #define mbedtls_calloc calloc macro
164 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_context ) ); in rsa_alloc_wrap()
307 void *ctx = mbedtls_calloc( 1, sizeof( eckey_restart_ctx ) ); in eckey_rs_alloc()
392 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecp_keypair ) ); in eckey_alloc_wrap()
684 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecdsa_context ) ); in ecdsa_alloc_wrap()
701 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecdsa_restart_ctx ) ); in ecdsa_rs_alloc()
826 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_alt_context ) ); in rsa_alt_alloc_wrap()
873 void *ctx = mbedtls_calloc( 1, sizeof( psa_key_id_t ) ); in pk_opaque_alloc_wrap()
Dpsa_crypto_storage.c43 #define mbedtls_calloc calloc macro
309 *key_data = mbedtls_calloc( 1, *key_data_length ); in psa_parse_key_data_from_storage()
341 storage_data = mbedtls_calloc( 1, storage_data_length ); in psa_save_persistent_key()
377 loaded_data = mbedtls_calloc( 1, storage_data_length ); in psa_load_persistent_key()
Dpkcs11.c36 #define mbedtls_calloc calloc macro
66 cert_blob = mbedtls_calloc( 1, cert_blob_size ); in mbedtls_pkcs11_x509_cert_bind()
/external/mbedtls/programs/test/
Dselftest.c71 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()
117 buffer1 = mbedtls_calloc( 1, 1 ); in calloc_self_test()
/external/openthread/third_party/mbedtls/repo/include/mbedtls/
Dplatform.h139 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro
143 extern void *mbedtls_calloc( size_t n, size_t size );
160 #define mbedtls_calloc calloc
/external/openthread/third_party/mbedtls/repo/tests/include/test/
Dmacros.h41 #define mbedtls_calloc calloc macro
129 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \
147 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \
/external/mbedtls/include/mbedtls/
Dplatform.h143 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro
147 extern void *mbedtls_calloc( size_t n, size_t size );
164 #define mbedtls_calloc calloc
/external/mbedtls/tests/include/test/
Dmacros.h131 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \
149 ( pointer ) = mbedtls_calloc( sizeof( *( pointer ) ), \
/external/mbedtls/tests/src/
Dhelpers.c253 p = mbedtls_calloc( 1, actual_len ); in mbedtls_test_zero_alloc()
271 obuf = mbedtls_calloc( 1, *olen ); in mbedtls_test_unhexify_alloc()
374 *pX = mbedtls_calloc( *plimbs, sizeof( **pX ) ); in mbedtls_test_read_mpi_core()

123456