Lines Matching refs:NULL

47     if (meth != NULL && meth != RAND_OpenSSL()) {  in gen_bytes()
48 if (meth->bytes != NULL) in gen_bytes()
54 if (drbg != NULL) in gen_bytes()
55 return EVP_RAND_generate(drbg, buf, num, 0, 0, NULL, 0); in gen_bytes()
61 return gen_bytes(RAND_get0_public(NULL), buf, num); in rand_bytes()
66 return gen_bytes(RAND_get0_private(NULL), buf, num); in rand_priv_bytes()
134 EVP_RAND_CTX *primary = RAND_get0_primary(NULL); in using_fips_rng()
145 return strstr(name, "FIPS Provider") != NULL; in using_fips_rng()
191 if (public_random == NULL) in test_drbg_reseed()
194 if (private_random == NULL) in test_drbg_reseed()
212 reseed_when = time(NULL); in test_drbg_reseed()
221 after_reseed = time(NULL); in test_drbg_reseed()
405 int verbose = (getenv("V") != NULL); in test_rand_reseed_on_fork()
526 if (!TEST_ptr(primary = RAND_get0_primary(NULL)) in test_rand_fork_safety()
527 || !TEST_ptr(public = RAND_get0_public(NULL)) in test_rand_fork_safety()
528 || !TEST_ptr(private = RAND_get0_private(NULL))) in test_rand_fork_safety()
565 if (!TEST_ptr(primary = RAND_get0_primary(NULL)) in test_rand_reseed()
566 || !TEST_ptr(public = RAND_get0_public(NULL)) in test_rand_reseed()
567 || !TEST_ptr(private = RAND_get0_private(NULL))) in test_rand_reseed()
592 NULL, NULL, in test_rand_reseed()
601 NULL, NULL, in test_rand_reseed()
612 NULL, NULL, in test_rand_reseed()
624 NULL, NULL, in test_rand_reseed()
636 NULL, NULL, in test_rand_reseed()
651 before_reseed = time(NULL); in test_rand_reseed()
655 NULL, NULL, in test_rand_reseed()
683 time_t start = time(NULL); in run_multi_thread_test()
684 EVP_RAND_CTX *public = NULL, *private = NULL; in run_multi_thread_test()
686 if (!TEST_ptr(public = RAND_get0_public(NULL)) in run_multi_thread_test()
687 || !TEST_ptr(private = RAND_get0_private(NULL)) in run_multi_thread_test()
700 while (time(NULL) - start < 5); in run_multi_thread_test()
720 *t = CreateThread(NULL, 0, thread_run, NULL, 0, NULL); in run_thread()
721 return *t != NULL; in run_thread()
741 return NULL; in thread_run()
746 return pthread_create(t, NULL, thread_run, NULL) == 0; in run_thread()
751 return pthread_join(thread, NULL) == 0; in wait_for_thread()
785 EVP_RAND *rand = NULL; in new_drbg()
786 EVP_RAND_CTX *drbg = NULL; in new_drbg()
792 if (!TEST_ptr(rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL)) in new_drbg()
796 drbg = NULL; in new_drbg()
804 EVP_RAND_CTX *x = NULL, *y = NULL, *z = NULL; in test_rand_prediction_resistance()
812 if (!TEST_ptr(x = new_drbg(NULL)) in test_rand_prediction_resistance()
814 || !TEST_true(EVP_RAND_instantiate(x, 0, 0, NULL, 0, NULL)) in test_rand_prediction_resistance()
816 || !TEST_true(EVP_RAND_instantiate(y, 0, 0, NULL, 0, NULL)) in test_rand_prediction_resistance()
818 || !TEST_true(EVP_RAND_instantiate(z, 0, 0, NULL, 0, NULL))) in test_rand_prediction_resistance()
829 if (!TEST_true(EVP_RAND_reseed(z, 0, NULL, 0, NULL, 0)) in test_rand_prediction_resistance()
840 if (!TEST_true(EVP_RAND_reseed(z, 1, NULL, 0, NULL, 0)) in test_rand_prediction_resistance()
852 if (!TEST_true(EVP_RAND_generate(z, buf1, sizeof(buf1), 0, 0, NULL, 0)) in test_rand_prediction_resistance()
863 if (!TEST_true(EVP_RAND_generate(z, buf2, sizeof(buf2), 0, 1, NULL, 0)) in test_rand_prediction_resistance()
875 if (!TEST_true(EVP_RAND_reseed(z, 0, NULL, 0, NULL, 0)) in test_rand_prediction_resistance()