Home
last modified time | relevance | path

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

12

/AliOS-Things-master/components/mbedtls/programs/random/
A Dgen_random_ctr_drbg.c74 mbedtls_ctr_drbg_context ctr_drbg; in main() local
78 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
93 …ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, (const unsigned char *) "R… in main()
99 mbedtls_ctr_drbg_set_prediction_resistance( &ctr_drbg, MBEDTLS_CTR_DRBG_PR_OFF ); in main()
102 ret = mbedtls_ctr_drbg_update_seed_file( &ctr_drbg, "seedfile" ); in main()
107 ret = mbedtls_ctr_drbg_write_seed_file( &ctr_drbg, "seedfile" ); in main()
123 ret = mbedtls_ctr_drbg_random( &ctr_drbg, buf, sizeof( buf ) ); in main()
143 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
/AliOS-Things-master/components/mbedtls/programs/pkey/
A Decdh_curve25519.c74 mbedtls_ctr_drbg_context ctr_drbg; in main() local
82 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
91 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
115 mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
145 mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
183 mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
214 mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
249 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Ddh_genprime.c90 mbedtls_ctr_drbg_context ctr_drbg; in main() local
98 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
136 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
151 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
172 if( ( ret = mbedtls_mpi_is_prime_ext( &Q, 50, mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
203 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dpk_encrypt.c84 mbedtls_ctr_drbg_context ctr_drbg; in main() local
89 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
107 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, in main()
141 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
175 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dpk_sign.c82 mbedtls_ctr_drbg_context ctr_drbg; in main() local
90 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
107 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
140 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
172 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dpk_decrypt.c84 mbedtls_ctr_drbg_context ctr_drbg; in main() local
92 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
110 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, in main()
154 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
171 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Drsa_sign_pss.c83 mbedtls_ctr_drbg_context ctr_drbg; in main() local
92 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
108 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
150 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
182 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Decdsa.c121 mbedtls_ctr_drbg_context ctr_drbg; in main() local
131 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
154 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
166 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
201 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
259 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Drsa_encrypt.c82 mbedtls_ctr_drbg_context ctr_drbg; in main() local
104 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
107 ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, in main()
159 &ctr_drbg, MBEDTLS_RSA_PUBLIC, in main()
189 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Ddh_client.c102 mbedtls_ctr_drbg_context ctr_drbg; in main() local
111 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
120 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
251 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
270 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
313 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Drsa_decrypt.c84 mbedtls_ctr_drbg_context ctr_drbg; in main() local
107 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
113 ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, in main()
193 &ctr_drbg, MBEDTLS_RSA_PRIVATE, &i, in main()
209 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Drsa_genkey.c85 mbedtls_ctr_drbg_context ctr_drbg; in main() local
91 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
101 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
112 if( ( ret = mbedtls_rsa_gen_key( &rsa, mbedtls_ctr_drbg_random, &ctr_drbg, KEY_SIZE, in main()
192 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Ddh_server.c102 mbedtls_ctr_drbg_context ctr_drbg; in main() local
114 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
126 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
227 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
291 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
336 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dgen_key.c214 mbedtls_ctr_drbg_context ctr_drbg; in main() local
229 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
325 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
349 ret = mbedtls_rsa_gen_key( mbedtls_pk_rsa( key ), mbedtls_ctr_drbg_random, &ctr_drbg, in main()
364 mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
452 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
/AliOS-Things-master/components/mbedtls/programs/ssl/
A Dmini_client.c191 mbedtls_ctr_drbg_context ctr_drbg; in main() local
194 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
207 if( mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
223 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
304 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dssl_fork_server.c121 mbedtls_ctr_drbg_context ctr_drbg; in main() local
134 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
144 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
206 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
269 if( ( ret = mbedtls_ctr_drbg_reseed( &ctr_drbg, in main()
290 if( ( ret = mbedtls_ctr_drbg_reseed( &ctr_drbg, in main()
422 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dssl_client1.c106 mbedtls_ctr_drbg_context ctr_drbg; in main() local
122 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
128 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
190 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
318 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Ddtls_server.c127 mbedtls_ctr_drbg_context ctr_drbg; in main() local
148 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
211 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
236 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
253 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
432 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Ddtls_client.c117 mbedtls_ctr_drbg_context ctr_drbg; in main() local
137 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
143 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
204 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
357 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dssl_server.c116 mbedtls_ctr_drbg_context ctr_drbg; in main() local
135 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
198 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
223 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
403 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dssl_pthread_server.c338 mbedtls_ctr_drbg_context ctr_drbg; in main() local
362 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
419 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
445 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
522 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
/AliOS-Things-master/components/mbedtls/programs/x509/
A Dcert_req.c169 mbedtls_ctr_drbg_context ctr_drbg; in main() local
177 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
341 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
390 mbedtls_ctr_drbg_random, &ctr_drbg ) ) != 0 ) in main()
414 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
A Dcert_app.c168 mbedtls_ctr_drbg_context ctr_drbg; in main() local
183 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
387 if( ( ret = mbedtls_ctr_drbg_seed( &ctr_drbg, mbedtls_entropy_func, &entropy, in main()
436 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
499 mbedtls_ctr_drbg_free( &ctr_drbg ); in main()
/AliOS-Things-master/components/linkkit/wrappers/os/
A DHAL_DTLS_mbedtls.c39 mbedtls_ctr_drbg_context ctr_drbg; member
328 mbedtls_ctr_drbg_init(&p_dtls_session->ctr_drbg); in _DTLSSession_init()
354 mbedtls_ctr_drbg_free(&p_dtls_session->ctr_drbg); in _DTLSSession_deinit()
395 &p_dtls_session->ctr_drbg, mbedtls_entropy_func, in HAL_DTLSSession_create()
412 &p_dtls_session->ctr_drbg); in HAL_DTLSSession_create()
418 &p_dtls_session->ctr_drbg); in HAL_DTLSSession_create()
/AliOS-Things-master/components/mbedtls/programs/test/
A Dbenchmark.c257 havege, ctr_drbg, hmac_drbg, member
338 todo.ctr_drbg = 1; in main()
683 if( todo.ctr_drbg ) in main()
685 mbedtls_ctr_drbg_context ctr_drbg; in main() local
687 mbedtls_ctr_drbg_init( &ctr_drbg ); in main()
689 if( mbedtls_ctr_drbg_seed( &ctr_drbg, myrand, NULL, NULL, 0 ) != 0 ) in main()
692 mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) ); in main()
694 if( mbedtls_ctr_drbg_seed( &ctr_drbg, myrand, NULL, NULL, 0 ) != 0 ) in main()
696 mbedtls_ctr_drbg_set_prediction_resistance( &ctr_drbg, MBEDTLS_CTR_DRBG_PR_ON ); in main()
698 mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) ); in main()
[all …]

Completed in 26 milliseconds

12