/net-tools-3.5.0/mbedtls-2.4.0/programs/random/ |
D | gen_random_ctr_drbg.c | 56 mbedtls_ctr_drbg_context ctr_drbg; in main() local 60 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 75 …ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, (const unsigned char *) "R… in main() 81 mbedtls_ctr_drbg_set_prediction_resistance( &ctr_drbg, MBEDTLS_CTR_DRBG_PR_OFF ); in main() 84 ret = mbedtls_ctr_drbg_update_seed_file( &ctr_drbg, "seedfile" ); in main() 89 ret = mbedtls_ctr_drbg_write_seed_file( &ctr_drbg, "seedfile" ); in main() 105 ret = mbedtls_ctr_drbg_random( &ctr_drbg, buf, sizeof( buf ) ); in main() 125 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/pkey/ |
D | ecdh_curve25519.c | 57 mbedtls_ctr_drbg_context ctr_drbg; in main() local 65 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 74 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 98 mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 128 mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 166 mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 197 mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 231 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | dh_genprime.c | 74 mbedtls_ctr_drbg_context ctr_drbg; in main() local 82 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 120 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 135 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 156 if( ( ret = mbedtls_mpi_is_prime( &Q, mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 186 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | pk_decrypt.c | 66 mbedtls_ctr_drbg_context ctr_drbg; in main() local 72 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 91 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 136 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 149 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | pk_encrypt.c | 66 mbedtls_ctr_drbg_context ctr_drbg; in main() local 72 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 89 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 124 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 149 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | pk_sign.c | 65 mbedtls_ctr_drbg_context ctr_drbg; in main() local 73 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 90 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 124 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 155 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | ecdsa.c | 103 mbedtls_ctr_drbg_context ctr_drbg; in main() local 112 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 135 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 147 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 166 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 225 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | rsa_sign_pss.c | 66 mbedtls_ctr_drbg_context ctr_drbg; in main() local 75 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 91 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 135 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 166 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | rsa_genkey.c | 67 mbedtls_ctr_drbg_context ctr_drbg; in main() local 72 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 78 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 91 if( ( ret = mbedtls_rsa_gen_key( &rsa, mbedtls_ctr_drbg_random, &ctr_drbg, KEY_SIZE, in main() 161 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | rsa_encrypt.c | 68 mbedtls_ctr_drbg_context ctr_drbg; in main() local 90 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 93 return_val = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, in main() 145 &ctr_drbg, MBEDTLS_RSA_PUBLIC, in main() 174 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | rsa_decrypt.c | 68 mbedtls_ctr_drbg_context ctr_drbg; in main() local 91 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 94 return_val = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, in main() 168 &ctr_drbg, MBEDTLS_RSA_PRIVATE, &i, in main() 183 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | dh_client.c | 84 mbedtls_ctr_drbg_context ctr_drbg; in main() local 93 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 102 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 232 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 251 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 292 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | dh_server.c | 84 mbedtls_ctr_drbg_context ctr_drbg; in main() local 94 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 103 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 197 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 256 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 296 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | gen_key.c | 195 mbedtls_ctr_drbg_context ctr_drbg; in main() local 205 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 302 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 325 ret = mbedtls_rsa_gen_key( mbedtls_pk_rsa( key ), mbedtls_ctr_drbg_random, &ctr_drbg, in main() 339 mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 413 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/ssl/ |
D | mini_client.c | 181 mbedtls_ctr_drbg_context ctr_drbg; in main() local 184 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 197 if( mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 213 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 294 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | ssl_fork_server.c | 104 mbedtls_ctr_drbg_context ctr_drbg; in main() local 117 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 127 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 189 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 252 if( ( ret = mbedtls_ctr_drbg_reseed( &ctr_drbg, in main() 273 if( ( ret = mbedtls_ctr_drbg_reseed( &ctr_drbg, in main() 403 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | ssl_client1.c | 90 mbedtls_ctr_drbg_context ctr_drbg; in main() local 106 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 112 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 174 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 300 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | dtls_client.c | 93 mbedtls_ctr_drbg_context ctr_drbg; in main() local 113 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 119 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 180 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 333 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | dtls_server.c | 103 mbedtls_ctr_drbg_context ctr_drbg; in main() local 124 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 187 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 212 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 229 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 408 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | ssl_server.c | 101 mbedtls_ctr_drbg_context ctr_drbg; in main() local 120 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 183 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 208 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 388 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | ssl_pthread_server.c | 322 mbedtls_ctr_drbg_context ctr_drbg; in main() local 346 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 403 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 429 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 506 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
/net-tools-3.5.0/ |
D | dtls-server.c | 114 mbedtls_ctr_drbg_context ctr_drbg; in main() local 176 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 224 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() 249 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 267 &ctr_drbg)) != 0) { in main() 445 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | dtls-client.c | 344 mbedtls_ctr_drbg_context ctr_drbg; in main() local 407 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 413 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() 469 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 648 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
/net-tools-3.5.0/mbedtls-2.4.0/programs/x509/ |
D | cert_req.c | 143 mbedtls_ctr_drbg_context ctr_drbg; in main() local 152 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 263 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 312 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main() 334 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|
D | cert_app.c | 152 mbedtls_ctr_drbg_context ctr_drbg; in main() local 167 mbedtls_ctr_drbg_init( &ctr_drbg ); in main() 370 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main() 419 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 480 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
|