Home
last modified time | relevance | path

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

12

/openthread-3.7.0/third_party/mbedtls/repo/programs/random/
Dgen_random_ctr_drbg.c35 mbedtls_ctr_drbg_context ctr_drbg; in main() local
39 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
52 ret = mbedtls_ctr_drbg_seed(&ctr_drbg, in main()
61 mbedtls_ctr_drbg_set_prediction_resistance(&ctr_drbg, MBEDTLS_CTR_DRBG_PR_OFF); in main()
64 ret = mbedtls_ctr_drbg_update_seed_file(&ctr_drbg, "seedfile"); in main()
68 ret = mbedtls_ctr_drbg_write_seed_file(&ctr_drbg, "seedfile"); in main()
80 ret = mbedtls_ctr_drbg_random(&ctr_drbg, buf, sizeof(buf)); in main()
102 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
/openthread-3.7.0/third_party/mbedtls/repo/programs/pkey/
Decdh_curve25519.c38 mbedtls_ctr_drbg_context ctr_drbg; in main() local
53 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
62 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main()
87 mbedtls_ctr_drbg_random, &ctr_drbg); in main()
112 mbedtls_ctr_drbg_random, &ctr_drbg); in main()
145 mbedtls_ctr_drbg_random, &ctr_drbg); in main()
154 mbedtls_ctr_drbg_random, &ctr_drbg); in main()
183 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Dpk_decrypt.c46 mbedtls_ctr_drbg_context ctr_drbg; in main() local
54 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
80 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main()
92 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
122 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
138 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Dpk_sign.c43 mbedtls_ctr_drbg_context ctr_drbg; in main() local
51 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
76 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
88 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
109 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
138 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Drsa_sign_pss.c44 mbedtls_ctr_drbg_context ctr_drbg; in main() local
53 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
77 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
88 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
122 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
151 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Ddh_genprime.c51 mbedtls_ctr_drbg_context ctr_drbg; in main() local
59 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
95 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
109 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
127 if ((ret = mbedtls_mpi_is_prime_ext(&Q, 50, mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
155 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Dpk_encrypt.c45 mbedtls_ctr_drbg_context ctr_drbg; in main() local
50 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
76 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main()
108 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
139 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Decdsa.c85 mbedtls_ctr_drbg_context ctr_drbg; in main() local
95 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
117 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
128 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
164 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
214 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Drsa_encrypt.c43 mbedtls_ctr_drbg_context ctr_drbg; in main() local
64 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
67 ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main()
114 &ctr_drbg, strlen(argv[1]), input, buf); in main()
142 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Drsa_genkey.c46 mbedtls_ctr_drbg_context ctr_drbg; in main() local
52 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
62 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
72 if ((ret = mbedtls_rsa_gen_key(&rsa, mbedtls_ctr_drbg_random, &ctr_drbg, KEY_SIZE, in main()
135 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Ddh_server.c64 mbedtls_ctr_drbg_context ctr_drbg; in main() local
75 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
87 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
181 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
205 if ((ret = mbedtls_rsa_pkcs1_sign(&rsa, mbedtls_ctr_drbg_random, &ctr_drbg, in main()
248 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
299 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Drsa_decrypt.c46 mbedtls_ctr_drbg_context ctr_drbg; in main() local
68 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
74 ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, in main()
148 &ctr_drbg, &i, in main()
163 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Ddh_client.c72 mbedtls_ctr_drbg_context ctr_drbg; in main() local
80 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
91 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
214 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
231 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
279 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
/openthread-3.7.0/third_party/mbedtls/repo/programs/fuzz/
Dfuzz_dtlsserver.c42 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local
49 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput()
66 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput()
84 dummy_random, &ctr_drbg) != 0) { in LLVMFuzzerTestOneInput()
102 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput()
111 if (mbedtls_ssl_cookie_setup(&cookie_ctx, dummy_random, &ctr_drbg) != 0) { in LLVMFuzzerTestOneInput()
169 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
Dfuzz_server.c42 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local
57 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput()
75 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput()
93 dummy_random, &ctr_drbg) != 0) { in LLVMFuzzerTestOneInput()
115 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput()
135 dummy_random, &ctr_drbg, in LLVMFuzzerTestOneInput()
200 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
Dfuzz_dtlsclient.c38 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local
59 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput()
70 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput()
86 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput()
124 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
Dfuzz_privkey.c21 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local
29 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput()
40 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput()
46 dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput()
93 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
Dfuzz_client.c42 mbedtls_ctr_drbg_context ctr_drbg; in LLVMFuzzerTestOneInput() local
76 mbedtls_ctr_drbg_init(&ctr_drbg); in LLVMFuzzerTestOneInput()
86 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput()
143 mbedtls_ssl_conf_rng(&conf, dummy_random, &ctr_drbg); in LLVMFuzzerTestOneInput()
180 mbedtls_ctr_drbg_free(&ctr_drbg); in LLVMFuzzerTestOneInput()
/openthread-3.7.0/third_party/mbedtls/repo/programs/ssl/
Dssl_fork_server.c81 mbedtls_ctr_drbg_context ctr_drbg; in main() local
94 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
113 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
149 mbedtls_ctr_drbg_random, &ctr_drbg); in main()
171 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main()
229 if ((ret = mbedtls_ctr_drbg_reseed(&ctr_drbg, in main()
249 if ((ret = mbedtls_ctr_drbg_reseed(&ctr_drbg, in main()
370 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Dmini_client.c152 mbedtls_ctr_drbg_context ctr_drbg; in main() local
155 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
176 if (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()
263 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Ddtls_server.c87 mbedtls_ctr_drbg_context ctr_drbg; in main() local
108 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
130 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
170 &ctr_drbg); in main()
205 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main()
222 mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) { in main()
392 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Dssl_server.c74 mbedtls_ctr_drbg_context ctr_drbg; in main() local
93 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
115 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
151 mbedtls_ctr_drbg_random, &ctr_drbg); in main()
186 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main()
351 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Dssl_client1.c65 mbedtls_ctr_drbg_context ctr_drbg; in main() local
81 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
97 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
156 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main()
278 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Ddtls_client.c79 mbedtls_ctr_drbg_context ctr_drbg; in main() local
99 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
115 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
173 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main()
327 mbedtls_ctr_drbg_free(&ctr_drbg); in main()
Dssl_pthread_server.c285 mbedtls_ctr_drbg_context ctr_drbg; in main() local
309 mbedtls_ctr_drbg_init(&ctr_drbg); in main()
338 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main()
376 mbedtls_ctr_drbg_random, &ctr_drbg); in main()
398 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main()
471 mbedtls_ctr_drbg_free(&ctr_drbg); in main()

12