Home
last modified time | relevance | path

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

12

/mbedtls-3.5.0/programs/random/
Dgen_random_ctr_drbg.c47 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/
Decdh_curve25519.c50 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()
Dpk_decrypt.c58 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()
Dpk_sign.c54 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()
Drsa_sign_pss.c55 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()
Ddh_genprime.c63 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()
Dpk_encrypt.c57 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()
Decdsa.c95 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()
Drsa_encrypt.c55 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()
Ddh_client.c75 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()
Drsa_genkey.c58 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()
Drsa_decrypt.c58 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()
Ddh_server.c75 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/
Dfuzz_dtlsserver.c45 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()
Dfuzz_server.c44 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()
Dfuzz_dtlsclient.c40 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()
Dfuzz_client.c44 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()
Dfuzz_privkey.c23 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/
Dssl_fork_server.c93 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()
Dmini_client.c164 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()
Ddtls_server.c99 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()
Dssl_server.c86 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()
Dssl_client1.c77 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()
Ddtls_client.c91 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()
Dssl_pthread_server.c297 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()

12