/mbedtls-3.5.0/programs/random/ |
D | gen_random_ctr_drbg.c | 47 mbedtls_ctr_drbg_context ctr_drbg; in main() local 51 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 64 ret = mbedtls_ctr_drbg_seed(&ctr_drbg, in main() 73 mbedtls_ctr_drbg_set_prediction_resistance(&ctr_drbg, MBEDTLS_CTR_DRBG_PR_OFF); in main() 76 ret = mbedtls_ctr_drbg_update_seed_file(&ctr_drbg, "seedfile"); in main() 80 ret = mbedtls_ctr_drbg_write_seed_file(&ctr_drbg, "seedfile"); in main() 92 ret = mbedtls_ctr_drbg_random(&ctr_drbg, buf, sizeof(buf)); in main() 114 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
/mbedtls-3.5.0/programs/pkey/ |
D | ecdh_curve25519.c | 50 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, in main() 99 mbedtls_ctr_drbg_random, &ctr_drbg); in main() 124 mbedtls_ctr_drbg_random, &ctr_drbg); in main() 157 mbedtls_ctr_drbg_random, &ctr_drbg); in main() 166 mbedtls_ctr_drbg_random, &ctr_drbg); in main() 195 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | pk_decrypt.c | 58 mbedtls_ctr_drbg_context ctr_drbg; in main() local 66 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 83 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() 95 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 125 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 141 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | pk_sign.c | 54 mbedtls_ctr_drbg_context ctr_drbg; in main() local 62 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 78 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 90 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 111 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 140 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | rsa_sign_pss.c | 55 mbedtls_ctr_drbg_context ctr_drbg; in main() local 64 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 79 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 90 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 124 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 153 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | dh_genprime.c | 63 mbedtls_ctr_drbg_context ctr_drbg; in main() local 71 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 107 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 121 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 139 if ((ret = mbedtls_mpi_is_prime_ext(&Q, 50, mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 167 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | pk_encrypt.c | 57 mbedtls_ctr_drbg_context ctr_drbg; in main() local 62 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 79 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() 111 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 142 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | ecdsa.c | 95 mbedtls_ctr_drbg_context ctr_drbg; in main() local 105 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 127 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 138 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 171 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 223 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | rsa_encrypt.c | 55 mbedtls_ctr_drbg_context ctr_drbg; in main() local 76 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 79 ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() 126 &ctr_drbg, strlen(argv[1]), input, buf); in main() 154 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | dh_client.c | 75 mbedtls_ctr_drbg_context ctr_drbg; in main() local 83 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 92 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 212 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 229 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 277 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | rsa_genkey.c | 58 mbedtls_ctr_drbg_context ctr_drbg; in main() local 64 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 74 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 84 if ((ret = mbedtls_rsa_gen_key(&rsa, mbedtls_ctr_drbg_random, &ctr_drbg, KEY_SIZE, in main() 147 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | rsa_decrypt.c | 58 mbedtls_ctr_drbg_context ctr_drbg; in main() local 80 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 86 ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main() 160 &ctr_drbg, &i, in main() 175 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | dh_server.c | 75 mbedtls_ctr_drbg_context ctr_drbg; in main() local 86 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 98 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 191 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 249 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 299 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
/mbedtls-3.5.0/programs/fuzz/ |
D | fuzz_dtlsserver.c | 45 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local 52 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput() 55 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput() 74 dummy_random, &ctr_drbg) != 0) { in LLVMFuzzerTestOneInput() 95 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput() 104 if (mbedtls_ssl_cookie_setup(&cookie_ctx, dummy_random, &ctr_drbg) != 0) { in LLVMFuzzerTestOneInput() 158 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
|
D | fuzz_server.c | 44 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local 59 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput() 62 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput() 82 dummy_random, &ctr_drbg) != 0) { in LLVMFuzzerTestOneInput() 109 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput() 129 dummy_random, &ctr_drbg, in LLVMFuzzerTestOneInput() 194 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
|
D | fuzz_dtlsclient.c | 40 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local 61 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput() 65 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput() 81 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput() 119 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
|
D | fuzz_client.c | 44 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local 78 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput() 81 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput() 138 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput() 175 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
|
D | fuzz_privkey.c | 23 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local 31 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput() 34 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput() 41 dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput()
|
/mbedtls-3.5.0/programs/ssl/ |
D | ssl_fork_server.c | 93 mbedtls_ctr_drbg_context ctr_drbg; in main() local 106 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 116 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 152 mbedtls_ctr_drbg_random, &ctr_drbg); in main() 174 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 232 if ((ret = mbedtls_ctr_drbg_reseed(&ctr_drbg, in main() 252 if ((ret = mbedtls_ctr_drbg_reseed(&ctr_drbg, in main() 374 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | mini_client.c | 164 mbedtls_ctr_drbg_context ctr_drbg; in main() local 167 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 180 if (mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 194 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 268 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | dtls_server.c | 99 mbedtls_ctr_drbg_context ctr_drbg; in main() local 120 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 132 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 172 &ctr_drbg); in main() 207 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 224 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main() 395 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | ssl_server.c | 86 mbedtls_ctr_drbg_context ctr_drbg; in main() local 105 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 117 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 153 mbedtls_ctr_drbg_random, &ctr_drbg); in main() 188 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 354 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | ssl_client1.c | 77 mbedtls_ctr_drbg_context ctr_drbg; in main() local 93 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 99 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 158 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 281 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | dtls_client.c | 91 mbedtls_ctr_drbg_context ctr_drbg; in main() local 111 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 117 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 175 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 331 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|
D | ssl_pthread_server.c | 297 mbedtls_ctr_drbg_context ctr_drbg; in main() local 321 mbedtls_ctr_drbg_init(&ctr_drbg); in main() 340 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 378 mbedtls_ctr_drbg_random, &ctr_drbg); in main() 400 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 473 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
|