/openthread-3.7.0/third_party/mbedtls/repo/programs/random/ |
D | gen_random_ctr_drbg.c | 35 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/ |
D | ecdh_curve25519.c | 38 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()
|
D | pk_decrypt.c | 46 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()
|
D | pk_sign.c | 43 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()
|
D | rsa_sign_pss.c | 44 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()
|
D | dh_genprime.c | 51 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()
|
D | pk_encrypt.c | 45 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()
|
D | ecdsa.c | 85 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()
|
D | rsa_encrypt.c | 43 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()
|
D | rsa_genkey.c | 46 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()
|
D | dh_server.c | 64 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()
|
D | rsa_decrypt.c | 46 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()
|
D | dh_client.c | 72 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/ |
D | fuzz_dtlsserver.c | 42 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()
|
D | fuzz_server.c | 42 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()
|
D | fuzz_dtlsclient.c | 38 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()
|
D | fuzz_privkey.c | 21 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()
|
D | fuzz_client.c | 42 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/ |
D | ssl_fork_server.c | 81 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()
|
D | mini_client.c | 152 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()
|
D | dtls_server.c | 87 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()
|
D | ssl_server.c | 74 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()
|
D | ssl_client1.c | 65 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()
|
D | dtls_client.c | 79 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()
|
D | ssl_pthread_server.c | 285 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()
|