Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 25 of 41) sorted by relevance

12

/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_hmac_drbg.function38 entropy_ctx entropy;
45 entropy.len = sizeof( buf );
46 entropy.p = buf;
51 /* Init must use entropy */
52 last_len = entropy.len;
53 TEST_ASSERT( mbedtls_hmac_drbg_seed( &ctx, md_info, mbedtls_entropy_func, &entropy,
55 TEST_ASSERT( entropy.len < last_len );
58 * so the next few calls should not use entropy */
59 last_len = entropy.len;
66 TEST_ASSERT( entropy.len == last_len );
[all …]
Dtest_suite_ctr_drbg.function52 unsigned char entropy[512];
64 unhexify( entropy, entropy_string );
70 …TEST_ASSERT( mbedtls_ctr_drbg_seed_entropy_len( &ctx, mbedtls_entropy_func, entropy, add_init, add…
88 unsigned char entropy[512];
101 unhexify( entropy, entropy_string );
108 …TEST_ASSERT( mbedtls_ctr_drbg_seed_entropy_len( &ctx, mbedtls_entropy_func, entropy, add_init, add…
126 unsigned char entropy[1024];
133 memset( entropy, 0, sizeof( entropy ) );
137 /* Init must use entropy */
139 TEST_ASSERT( mbedtls_ctr_drbg_seed( &ctx, mbedtls_entropy_func, entropy, NULL, 0 ) == 0 );
[all …]
Dtest_suite_hmac_drbg.misc.data1 HMAC_DRBG entropy usage SHA-1
5 HMAC_DRBG entropy usage SHA-224
9 HMAC_DRBG entropy usage SHA-256
13 HMAC_DRBG entropy usage SHA-384
17 HMAC_DRBG entropy usage SHA-512
Dtest_suite_entropy.function2 #include "mbedtls/entropy.h"
11 * Dummy entropy source
40 * Ability to clear entropy sources to allow testing with just predefined
41 * entropy sources. This function or tests depending on it might break if there
42 * are internal changes to how entropy sources are registered.
310 unsigned char entropy[MBEDTLS_ENTROPY_BLOCK_SIZE];
317 memset( entropy, 0, MBEDTLS_ENTROPY_BLOCK_SIZE );
338 // Do an entropy run
339 TEST_ASSERT( mbedtls_entropy_func( &ctx, entropy, sizeof( entropy ) ) == 0 );
341 // Determine what should have happened with manual entropy internal logic
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/random/
Dgen_entropy.c53 mbedtls_entropy_context entropy; in main() local
68 mbedtls_entropy_init( &entropy ); in main()
72 ret = mbedtls_entropy_func( &entropy, buf, sizeof( buf ) ); in main()
92 mbedtls_entropy_free( &entropy ); in main()
Dgen_random_ctr_drbg.c57 mbedtls_entropy_context entropy; in main() local
74 mbedtls_entropy_init( &entropy ); in main()
75 …ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, (const unsigned char *) "R… in main()
126 mbedtls_entropy_free( &entropy ); in main()
/net-tools-3.6.0/mbedtls-2.4.0/programs/pkey/
Dpk_decrypt.c65 mbedtls_entropy_context entropy; in main() local
90 mbedtls_entropy_init( &entropy ); in main()
91 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
150 mbedtls_entropy_free( &entropy ); in main()
Dpk_encrypt.c65 mbedtls_entropy_context entropy; in main() local
88 mbedtls_entropy_init( &entropy ); in main()
89 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
150 mbedtls_entropy_free( &entropy ); in main()
Dpk_sign.c64 mbedtls_entropy_context entropy; in main() local
72 mbedtls_entropy_init( &entropy ); in main()
90 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
156 mbedtls_entropy_free( &entropy ); in main()
Drsa_sign_pss.c65 mbedtls_entropy_context entropy; in main() local
73 mbedtls_entropy_init( &entropy ); in main()
91 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
167 mbedtls_entropy_free( &entropy ); in main()
Drsa_genkey.c66 mbedtls_entropy_context entropy; in main() local
77 mbedtls_entropy_init( &entropy ); in main()
78 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
162 mbedtls_entropy_free( &entropy ); in main()
Drsa_encrypt.c67 mbedtls_entropy_context entropy; in main() local
91 mbedtls_entropy_init( &entropy ); in main()
94 &entropy, (const unsigned char *) pers, in main()
175 mbedtls_entropy_free( &entropy ); in main()
Ddh_genprime.c73 mbedtls_entropy_context entropy; in main() local
83 mbedtls_entropy_init( &entropy ); in main()
120 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
187 mbedtls_entropy_free( &entropy ); in main()
Drsa_decrypt.c67 mbedtls_entropy_context entropy; in main() local
92 mbedtls_entropy_init( &entropy ); in main()
95 &entropy, (const unsigned char *) pers, in main()
184 mbedtls_entropy_free( &entropy ); in main()
Decdsa.c102 mbedtls_entropy_context entropy; in main() local
134 mbedtls_entropy_init( &entropy ); in main()
135 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
226 mbedtls_entropy_free( &entropy ); in main()
Decdh_curve25519.c56 mbedtls_entropy_context entropy; in main() local
73 mbedtls_entropy_init( &entropy ); in main()
74 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
232 mbedtls_entropy_free( &entropy ); in main()
Ddh_client.c83 mbedtls_entropy_context entropy; in main() local
101 mbedtls_entropy_init( &entropy ); in main()
102 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
293 mbedtls_entropy_free( &entropy ); in main()
Ddh_server.c83 mbedtls_entropy_context entropy; in main() local
102 mbedtls_entropy_init( &entropy ); in main()
103 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
297 mbedtls_entropy_free( &entropy ); in main()
Dgen_key.c194 mbedtls_entropy_context entropy; in main() local
285 mbedtls_entropy_init( &entropy ); in main()
289 if( ( ret = mbedtls_entropy_add_source( &entropy, dev_random_entropy_poll, in main()
302 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
414 mbedtls_entropy_free( &entropy ); in main()
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/
Dmini_client.c180 mbedtls_entropy_context entropy; in main() local
196 mbedtls_entropy_init( &entropy ); in main()
197 if( mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
295 mbedtls_entropy_free( &entropy ); in main()
Dssl_client1.c89 mbedtls_entropy_context entropy; in main() local
111 mbedtls_entropy_init( &entropy ); in main()
112 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
301 mbedtls_entropy_free( &entropy ); in main()
Ddtls_client.c92 mbedtls_entropy_context entropy; in main() local
118 mbedtls_entropy_init( &entropy ); in main()
119 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
334 mbedtls_entropy_free( &entropy ); in main()
Dssl_server.c100 mbedtls_entropy_context entropy; in main() local
119 mbedtls_entropy_init( &entropy ); in main()
183 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
389 mbedtls_entropy_free( &entropy ); in main()
/net-tools-3.6.0/mbedtls-2.4.0/yotta/data/example-authcrypt/
Dmain.cpp65 mbedtls_entropy_context entropy; /* entropy pool for seeding PRNG */ in example() local
68 mbedtls_entropy_init(&entropy); in example()
73 ret = mbedtls_ctr_drbg_seed(&drbg, mbedtls_entropy_func, &entropy, in example()
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/
Dcert_req.c142 mbedtls_entropy_context entropy; in main() local
262 mbedtls_entropy_init( &entropy ); in main()
263 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
335 mbedtls_entropy_free( &entropy ); in main()

12