Home
last modified time | relevance | path

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

123

/openthread-2.7.6/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
Drm-calloc-cast.cocci7 mbedtls_calloc(n, m)
/openthread-2.7.6/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 );
Dtest_suite_pem.function20 check_buf = (unsigned char *) mbedtls_calloc( 1, olen );
/openthread-2.7.6/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()
/openthread-2.7.6/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 …]
Dssl_cache.c32 #define mbedtls_calloc calloc macro
108 if( ( session->peer_cert = mbedtls_calloc( 1, in mbedtls_ssl_cache_get()
227 cur = mbedtls_calloc( 1, sizeof(mbedtls_ssl_cache_entry) ); in mbedtls_ssl_cache_set()
275 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()
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 …]
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.c48 #define mbedtls_calloc calloc macro
353 *key_data = mbedtls_calloc( 1, *key_data_length ); in psa_parse_key_data_from_storage()
381 storage_data = mbedtls_calloc( 1, storage_data_length ); in psa_save_persistent_key()
417 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()
Dpsa_crypto_driver_wrappers.c349 slot->data.key.data = mbedtls_calloc(1, export_size); in psa_driver_wrapper_generate_key()
649 operation->ctx = mbedtls_calloc( 1, sizeof(test_transparent_cipher_operation_t) ); in psa_driver_wrapper_cipher_encrypt_setup()
677 operation->ctx = mbedtls_calloc( 1, sizeof(test_opaque_cipher_operation_t) ); in psa_driver_wrapper_cipher_encrypt_setup()
730 operation->ctx = mbedtls_calloc( 1, sizeof(test_transparent_cipher_operation_t) ); in psa_driver_wrapper_cipher_decrypt_setup()
758 operation->ctx = mbedtls_calloc( 1, sizeof(test_opaque_cipher_operation_t) ); in psa_driver_wrapper_cipher_decrypt_setup()
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()
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()
Dx509write_csr.c51 #define mbedtls_calloc calloc macro
301 if( ( sig = mbedtls_calloc( 1, MBEDTLS_PK_SIGNATURE_MAX_SIZE ) ) == NULL ) in mbedtls_x509write_csr_der()
Dpsa_crypto_se.c42 #define mbedtls_calloc calloc macro
345 mbedtls_calloc( 1, methods->persistent_data_size ); in psa_register_se_driver()
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dplatform.h137 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro
141 extern void *mbedtls_calloc( size_t n, size_t size );
158 #define mbedtls_calloc calloc
/openthread-2.7.6/third_party/mbedtls/repo/tests/src/
Dhelpers.c142 p = mbedtls_calloc( 1, actual_len ); in mbedtls_test_zero_alloc()
160 obuf = mbedtls_calloc( 1, *olen ); in mbedtls_test_unhexify_alloc()
/openthread-2.7.6/third_party/mbedtls/repo/tests/include/test/
Dhelpers.h40 #define mbedtls_calloc calloc macro
Dmacros.h41 #define mbedtls_calloc calloc
/openthread-2.7.6/third_party/mbedtls/repo/programs/util/
Dpem2der.c32 #define mbedtls_calloc calloc macro
142 ( *buf = mbedtls_calloc( 1, *n + 1 ) ) == NULL ) in load_file()
/openthread-2.7.6/third_party/mbedtls/repo/3rdparty/everest/library/
Deverest.c34 #define mbedtls_calloc calloc macro

123