Home
last modified time | relevance | path

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

12

/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_memory_buffer_alloc.function52 ptr_a = mbedtls_calloc( a_bytes, sizeof(char) );
60 ptr_b = mbedtls_calloc( b_bytes, sizeof(char) );
68 ptr_c = mbedtls_calloc( c_bytes, sizeof(char) );
76 ptr_d = mbedtls_calloc( d_bytes, sizeof(char) );
126 ptr_e = mbedtls_calloc( e_bytes, sizeof(char) );
132 ptr_f = mbedtls_calloc( f_bytes, sizeof(char) );
205 ptr_a = mbedtls_calloc( 432, sizeof(char) );
208 ptr_b = mbedtls_calloc( 432, sizeof(char) );
211 ptr_c = mbedtls_calloc( 431, sizeof(char) );
Dtest_suite_pem.function26 check_buf = (unsigned char *) mbedtls_calloc( 1, olen );
Dhelpers.function13 #define mbedtls_calloc calloc
220 p = mbedtls_calloc( 1, actual_len );
247 obuf = mbedtls_calloc( 1, *olen );
/net-tools-3.6.0/mbedtls-2.4.0/library/
Dmd_wrap.c68 #define mbedtls_calloc calloc macro
92 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_md2_context ) ); in md2_ctx_alloc()
156 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_md4_context ) ); in md4_ctx_alloc()
218 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_md5_context ) ); in md5_ctx_alloc()
280 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ripemd160_context ) ); in ripemd160_ctx_alloc()
342 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_sha1_context ) ); in sha1_ctx_alloc()
413 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_sha256_context ) ); in sha224_ctx_alloc()
507 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_sha512_context ) ); in sha384_ctx_alloc()
Dmemory_buffer_alloc.c659 p = mbedtls_calloc( 1, 1 ); in mbedtls_memory_buffer_alloc_self_test()
660 q = mbedtls_calloc( 1, 128 ); in mbedtls_memory_buffer_alloc_self_test()
661 r = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
688 p = mbedtls_calloc( 1, 1 ); in mbedtls_memory_buffer_alloc_self_test()
689 q = mbedtls_calloc( 1, 128 ); in mbedtls_memory_buffer_alloc_self_test()
690 r = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
712 p = mbedtls_calloc( 1, sizeof( buf ) - sizeof( memory_header ) ); in mbedtls_memory_buffer_alloc_self_test()
715 TEST_ASSERT( mbedtls_calloc( 1, 1 ) == NULL ); in mbedtls_memory_buffer_alloc_self_test()
719 p = mbedtls_calloc( 1, sizeof( buf ) - 2 * sizeof( memory_header ) - 16 ); in mbedtls_memory_buffer_alloc_self_test()
720 q = mbedtls_calloc( 1, 16 ); in mbedtls_memory_buffer_alloc_self_test()
[all …]
Dasn1write.c38 #define mbedtls_calloc calloc macro
342 cur = (mbedtls_asn1_named_data*)mbedtls_calloc( 1, in mbedtls_asn1_store_named_data()
348 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data()
358 cur->val.p = mbedtls_calloc( 1, val_len ); in mbedtls_asn1_store_named_data()
376 void *p = mbedtls_calloc( 1, val_len ); in mbedtls_asn1_store_named_data()
Dssl_cache.c38 #define mbedtls_calloc calloc macro
105 if( ( session->peer_cert = mbedtls_calloc( 1, in mbedtls_ssl_cache_get()
224 cur = mbedtls_calloc( 1, sizeof(mbedtls_ssl_cache_entry) ); in mbedtls_ssl_cache_set()
259 cur->peer_cert.p = mbedtls_calloc( 1, session->peer_cert->raw.len ); in mbedtls_ssl_cache_set()
Dcipher_wrap.c72 #define mbedtls_calloc calloc macro
80 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_gcm_context ) ); in gcm_ctx_alloc()
99 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ccm_context ) ); in ccm_ctx_alloc()
165 mbedtls_aes_context *aes = mbedtls_calloc( 1, sizeof( mbedtls_aes_context ) ); in aes_ctx_alloc()
522 ctx = mbedtls_calloc( 1, sizeof( mbedtls_camellia_context ) ); in camellia_ctx_alloc()
909 mbedtls_des_context *des = mbedtls_calloc( 1, sizeof( mbedtls_des_context ) ); in des_ctx_alloc()
928 des3 = mbedtls_calloc( 1, sizeof( mbedtls_des3_context ) ); in des3_ctx_alloc()
1127 ctx = mbedtls_calloc( 1, sizeof( mbedtls_blowfish_context ) ); in blowfish_ctx_alloc()
1237 ctx = mbedtls_calloc( 1, sizeof( mbedtls_arc4_context ) ); in arc4_ctx_alloc()
Dpk_wrap.c48 #define mbedtls_calloc calloc macro
136 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_context ) ); in rsa_alloc_wrap()
252 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecp_keypair ) ); in eckey_alloc_wrap()
351 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_ecdsa_context ) ); in ecdsa_alloc_wrap()
460 void *ctx = mbedtls_calloc( 1, sizeof( mbedtls_rsa_alt_context ) ); in rsa_alt_alloc_wrap()
Dpkcs11.c38 #define mbedtls_calloc calloc macro
68 cert_blob = mbedtls_calloc( 1, cert_blob_size ); in mbedtls_pkcs11_x509_cert_bind()
Dplatform.c53 void * (*mbedtls_calloc)( size_t, size_t ) = MBEDTLS_PLATFORM_STD_CALLOC; variable
59 mbedtls_calloc = calloc_func; in mbedtls_platform_set_calloc_free()
Dpem.c43 #define mbedtls_calloc calloc macro
327 if( ( buf = mbedtls_calloc( 1, len ) ) == NULL ) in mbedtls_pem_read_buffer()
413 if( ( encode_buf = mbedtls_calloc( 1, use_len ) ) == NULL ) in mbedtls_pem_write_buffer()
Dx509_crl.c55 #define mbedtls_calloc calloc macro
240 cur_entry->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_crl_entry ) ); in x509_get_entries()
282 crl->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_crl ) ); in mbedtls_x509_crl_parse_der()
297 if( ( p = mbedtls_calloc( 1, buflen ) ) == NULL ) in mbedtls_x509_crl_parse_der()
Dasn1parse.c42 #define mbedtls_calloc calloc macro
272 cur->next = (mbedtls_asn1_sequence*)mbedtls_calloc( 1, in mbedtls_asn1_get_sequence_of()
Dx509_csr.c55 #define mbedtls_calloc calloc macro
115 p = mbedtls_calloc( 1, len = buflen ); in mbedtls_x509_csr_parse_der()
Dx509.c57 #define mbedtls_calloc calloc macro
460 cur->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_name ) ); in mbedtls_x509_get_name()
474 cur->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_name ) ); in mbedtls_x509_get_name()
634 pss_opts = mbedtls_calloc( 1, sizeof( mbedtls_pk_rsassa_pss_options ) ); in mbedtls_x509_get_sig_alg()
Dssl_ticket.c34 #define mbedtls_calloc calloc macro
246 session->peer_cert = mbedtls_calloc( 1, sizeof( mbedtls_x509_crt ) ); in ssl_load_session()
Dmd.c41 #define mbedtls_calloc calloc macro
235 ctx->hmac_ctx = mbedtls_calloc( 2, md_info->block_size ); in mbedtls_md_setup()
Dssl_cookie.c37 #define mbedtls_calloc calloc macro
Dsha512.c52 #define mbedtls_calloc calloc macro
455 buf = mbedtls_calloc( 1024, sizeof(unsigned char) ); in mbedtls_sha512_self_test()
Dsha256.c46 #define mbedtls_calloc calloc macro
399 buf = mbedtls_calloc( 1024, sizeof(unsigned char) ); in mbedtls_sha256_self_test()
Ddhm.c56 #define mbedtls_calloc calloc macro
536 ( *buf = mbedtls_calloc( 1, *n + 1 ) ) == NULL ) in load_file()
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dplatform.h110 #define mbedtls_calloc MBEDTLS_PLATFORM_CALLOC_MACRO macro
114 extern void * (*mbedtls_calloc)( size_t n, size_t size );
130 #define mbedtls_calloc calloc
/net-tools-3.6.0/mbedtls-2.4.0/programs/util/
Dpem2der.c33 #define mbedtls_calloc calloc macro
138 ( *buf = mbedtls_calloc( 1, *n + 1 ) ) == NULL ) in load_file()
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/
Dssl_server2.c36 #define mbedtls_calloc calloc macro
540 if( ( new = mbedtls_calloc( 1, sizeof( sni_entry ) ) ) == NULL ) in sni_parse()
553 if( ( new->cert = mbedtls_calloc( 1, sizeof( mbedtls_x509_crt ) ) ) == NULL || in sni_parse()
554 ( new->key = mbedtls_calloc( 1, sizeof( mbedtls_pk_context ) ) ) == NULL ) in sni_parse()
566 if( ( new->ca = mbedtls_calloc( 1, sizeof( mbedtls_x509_crt ) ) ) == NULL ) in sni_parse()
577 if( ( new->crl = mbedtls_calloc( 1, sizeof( mbedtls_x509_crl ) ) ) == NULL ) in sni_parse()
720 if( ( new = mbedtls_calloc( 1, sizeof( psk_entry ) ) ) == NULL ) in psk_parse()
2094 larger_buf = mbedtls_calloc( 1, ori_len + extra_len + 1 ); in main()

12