Home
last modified time | relevance | path

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

12

/optee_os-3.20.0/lib/libmbedtls/mbedtls/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 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()
A Dasn1write.c33 #define mbedtls_calloc calloc macro
429 cur = (mbedtls_asn1_named_data*)mbedtls_calloc( 1, in mbedtls_asn1_store_named_data()
435 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data()
447 cur->val.p = mbedtls_calloc( 1, val_len ); in mbedtls_asn1_store_named_data()
471 void *p = mbedtls_calloc( 1, val_len ); in mbedtls_asn1_store_named_data()
A Dcipher_wrap.c85 #define mbedtls_calloc calloc macro
93 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_gcm_context ) ); in gcm_ctx_alloc()
117 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ccm_context ) ); in ccm_ctx_alloc()
728 ctx = mbedtls_calloc( 1, sizeof( mbedtls_camellia_context ) ); in camellia_ctx_alloc()
1112 ctx = mbedtls_calloc( 1, sizeof( mbedtls_aria_context ) ); in aria_ctx_alloc()
1541 des3 = mbedtls_calloc( 1, sizeof( mbedtls_des3_context ) ); in des3_ctx_alloc()
1766 ctx = mbedtls_calloc( 1, sizeof( mbedtls_blowfish_context ) ); in blowfish_ctx_alloc()
1888 ctx = mbedtls_calloc( 1, sizeof( mbedtls_arc4_context ) ); in arc4_ctx_alloc()
1979 ctx = mbedtls_calloc( 1, sizeof( mbedtls_chacha20_context ) ); in chacha20_ctx_alloc()
2057 ctx = mbedtls_calloc( 1, sizeof( mbedtls_chachapoly_context ) ); in chachapoly_ctx_alloc()
[all …]
A Dpkcs11.c36 #define mbedtls_calloc calloc macro
66 cert_blob = mbedtls_calloc( 1, cert_blob_size ); in mbedtls_pkcs11_x509_cert_bind()
A 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()
A 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()
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 Dx509_crl.c51 #define mbedtls_calloc calloc macro
282 cur_entry->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_crl_entry ) ); in x509_get_entries()
324 crl->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_crl ) ); in mbedtls_x509_crl_parse_der()
342 p = mbedtls_calloc( 1, buflen ); in mbedtls_x509_crl_parse_der()
A Dx509_csr.c51 #define mbedtls_calloc calloc macro
106 p = mbedtls_calloc( 1, len = buflen ); in mbedtls_x509_csr_parse_der()
A Dasn1parse.c38 #define mbedtls_calloc calloc macro
348 mbedtls_calloc( 1, sizeof( mbedtls_asn1_sequence ) ); in asn1_get_sequence_of_cb()
A Dx509.c52 #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()
A Dssl_cookie.c31 #define mbedtls_calloc calloc macro
A Dmd.c45 #define mbedtls_calloc calloc macro
405 ctx->md_ctx = mbedtls_calloc( 1, sizeof( mbedtls_##type##_context ) ); \
468 ctx->hmac_ctx = mbedtls_calloc( 2, md_info->block_size ); in mbedtls_md_setup()
A Dssl_tls.c36 #define mbedtls_calloc calloc macro
220 mbedtls_calloc( 1, src->peer_cert_digest_len ); in mbedtls_ssl_session_copy()
236 dst->ticket = mbedtls_calloc( 1, src->ticket_len ); in mbedtls_ssl_session_copy()
251 unsigned char* resized_buffer = mbedtls_calloc( 1, len_new ); in resize_buffer()
422 tmp = mbedtls_calloc( 1, tmp_len ); in tls1_prf()
710 tmp = mbedtls_calloc( 1, tmp_len ); in tls_prf_generic()
2921 chain = mbedtls_calloc( 1, sizeof( mbedtls_x509_crt ) ); in mbedtls_ssl_parse_certificate()
3960 ssl->in_buf = mbedtls_calloc( 1, in_buf_len ); in mbedtls_ssl_setup()
3971 ssl->out_buf = mbedtls_calloc( 1, out_buf_len ); in mbedtls_ssl_setup()
4540 if( ( conf->psk = mbedtls_calloc( 1, psk_len ) ) == NULL ) in mbedtls_ssl_conf_psk()
[all …]
A Dplatform.c59 void * mbedtls_calloc( size_t nmemb, size_t size ) in mbedtls_calloc() function
A Ddhm.c52 #define mbedtls_calloc calloc macro
606 ( *buf = mbedtls_calloc( 1, *n + 1 ) ) == NULL ) in load_file()
A Dsha512.c48 #define mbedtls_calloc calloc macro
582 buf = mbedtls_calloc( 1024, sizeof(unsigned char) ); in mbedtls_sha512_self_test()
A Dsha256.c42 #define mbedtls_calloc calloc macro
511 buf = mbedtls_calloc( 1024, sizeof(unsigned char) ); in mbedtls_sha256_self_test()
A Dssl_ticket.c28 #define mbedtls_calloc calloc macro
A Dpkparse.c55 #define mbedtls_calloc calloc macro
96 ( *buf = mbedtls_calloc( 1, *n + 1 ) ) == NULL ) in mbedtls_pk_load_file()
1359 if( ( key_copy = mbedtls_calloc( 1, keylen ) ) == NULL ) in mbedtls_pk_parse_key()
A Drsa.c65 #define mbedtls_calloc calloc macro
1934 sig_try = mbedtls_calloc( 1, ctx->len ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1938 verif = mbedtls_calloc( 1, ctx->len ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
2225 if( ( encoded = mbedtls_calloc( 1, sig_len ) ) == NULL || in mbedtls_rsa_rsassa_pkcs1_v15_verify()
2226 ( encoded_expected = mbedtls_calloc( 1, sig_len ) ) == NULL ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
A Ddebug.c28 #define mbedtls_calloc calloc macro
A Decdsa.c43 #define mbedtls_calloc calloc macro
186 rs_ctx->SUB = mbedtls_calloc( 1, sizeof( *rs_ctx->SUB ) ); \
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dplatform.h141 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro
145 extern void *mbedtls_calloc( size_t n, size_t size );
162 #define mbedtls_calloc calloc

Completed in 51 milliseconds

12