/net-tools-3.5.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_hmac_drbg.function | 38 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 …]
|
D | test_suite_ctr_drbg.function | 52 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 …]
|
D | test_suite_hmac_drbg.misc.data | 1 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
|
D | test_suite_entropy.function | 2 #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.5.0/mbedtls-2.4.0/programs/random/ |
D | gen_entropy.c | 53 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()
|
D | gen_random_ctr_drbg.c | 57 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.5.0/mbedtls-2.4.0/programs/pkey/ |
D | pk_decrypt.c | 65 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()
|
D | pk_encrypt.c | 65 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()
|
D | pk_sign.c | 64 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()
|
D | rsa_sign_pss.c | 65 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()
|
D | rsa_genkey.c | 66 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()
|
D | dh_genprime.c | 73 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()
|
D | rsa_encrypt.c | 67 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()
|
D | rsa_decrypt.c | 67 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()
|
D | ecdsa.c | 102 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()
|
D | ecdh_curve25519.c | 56 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()
|
D | dh_client.c | 83 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()
|
D | dh_server.c | 83 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()
|
D | gen_key.c | 194 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.5.0/mbedtls-2.4.0/programs/ssl/ |
D | mini_client.c | 180 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()
|
D | ssl_client1.c | 89 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()
|
D | dtls_client.c | 92 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()
|
D | ssl_server.c | 100 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.5.0/mbedtls-2.4.0/yotta/data/example-authcrypt/ |
D | main.cpp | 65 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.5.0/mbedtls-2.4.0/programs/x509/ |
D | cert_req.c | 142 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()
|