Home
last modified time | relevance | path

Searched refs:ctr_drbg (Results 1 – 25 of 36) sorted by relevance

12

/net-tools-3.6.0/mbedtls-2.4.0/programs/random/
Dgen_random_ctr_drbg.c56 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.6.0/mbedtls-2.4.0/programs/pkey/
Decdh_curve25519.c57 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()
Ddh_genprime.c74 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()
Dpk_decrypt.c66 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()
Dpk_encrypt.c66 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()
Dpk_sign.c65 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()
Decdsa.c103 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()
Drsa_sign_pss.c66 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()
Drsa_genkey.c67 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()
Drsa_encrypt.c68 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()
Drsa_decrypt.c68 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()
Ddh_client.c84 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()
Ddh_server.c84 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()
Dgen_key.c195 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.6.0/mbedtls-2.4.0/programs/ssl/
Dmini_client.c181 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()
Dssl_fork_server.c104 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()
Dssl_client1.c90 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()
Ddtls_client.c93 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()
Ddtls_server.c103 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()
Dssl_server.c101 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()
Dssl_pthread_server.c322 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.6.0/
Ddtls-server.c114 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()
Ddtls-client.c344 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.6.0/mbedtls-2.4.0/programs/x509/
Dcert_req.c143 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()
Dcert_app.c152 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()

12