/AliOS-Things-master/components/mbedtls/programs/random/ |
A D | gen_random_ctr_drbg.c | 74 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 D | ecdh_curve25519.c | 74 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 D | dh_genprime.c | 90 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 D | pk_encrypt.c | 84 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 D | pk_sign.c | 82 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 D | pk_decrypt.c | 84 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 D | rsa_sign_pss.c | 83 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 D | ecdsa.c | 121 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 D | rsa_encrypt.c | 82 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 D | dh_client.c | 102 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 D | rsa_decrypt.c | 84 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 D | rsa_genkey.c | 85 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 D | dh_server.c | 102 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 D | gen_key.c | 214 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 D | mini_client.c | 191 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 D | ssl_fork_server.c | 121 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 D | ssl_client1.c | 106 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 D | dtls_server.c | 127 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 D | dtls_client.c | 117 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 D | ssl_server.c | 116 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 D | ssl_pthread_server.c | 338 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 D | cert_req.c | 169 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 D | cert_app.c | 168 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 D | HAL_DTLS_mbedtls.c | 39 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 D | benchmark.c | 257 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 …]
|