Lines Matching refs:primary

134     EVP_RAND_CTX *primary = RAND_get0_primary(NULL);  in using_fips_rng()  local
138 if (!TEST_ptr(primary)) in using_fips_rng()
141 prov = EVP_RAND_get0_provider(EVP_RAND_CTX_get0_rand(primary)); in using_fips_rng()
175 EVP_RAND_CTX *primary, in test_drbg_reseed() argument
202 if (!TEST_int_ne(primary_reseed = reseed_counter(primary), 0) in test_drbg_reseed()
229 if (!TEST_int_eq(state(primary), expected_state) in test_drbg_reseed()
236 if (!TEST_int_ge(reseed_counter(primary), primary_reseed)) in test_drbg_reseed()
244 reseed_counter(primary))) in test_drbg_reseed()
252 reseed_counter(primary))) in test_drbg_reseed()
258 if (!TEST_time_t_le(before_reseed, reseed_time(primary)) in test_drbg_reseed()
259 || !TEST_time_t_le(reseed_time(primary), after_reseed)) in test_drbg_reseed()
263 if (!TEST_time_t_ge(reseed_time(public), reseed_time(primary)) in test_drbg_reseed()
264 || !TEST_time_t_ge(reseed_time(private), reseed_time(primary))) in test_drbg_reseed()
330 static int test_drbg_reseed_in_child(EVP_RAND_CTX *primary, in test_drbg_reseed_in_child() argument
382 if (TEST_true(test_drbg_reseed(1, primary, public, private, in test_drbg_reseed_in_child()
399 static int test_rand_reseed_on_fork(EVP_RAND_CTX *primary, in test_rand_reseed_on_fork() argument
424 if (!TEST_true(test_drbg_reseed_in_child(primary, in test_rand_reseed_on_fork()
435 primary, public, private, in test_rand_reseed_on_fork()
523 EVP_RAND_CTX *primary, *public, *private; in test_rand_fork_safety() local
526 if (!TEST_ptr(primary = RAND_get0_primary(NULL)) in test_rand_fork_safety()
532 if (!TEST_true(test_rand_reseed_on_fork(primary, public, private))) in test_rand_fork_safety()
550 EVP_RAND_CTX *primary, *public, *private; in test_rand_reseed() local
565 if (!TEST_ptr(primary = RAND_get0_primary(NULL)) in test_rand_reseed()
572 || !TEST_ptr_ne(public, primary) in test_rand_reseed()
573 || !TEST_ptr_ne(private, primary) in test_rand_reseed()
574 || !TEST_ptr_eq(prov_rand(public)->parent, prov_rand(primary)) in test_rand_reseed()
575 || !TEST_ptr_eq(prov_rand(private)->parent, prov_rand(primary))) in test_rand_reseed()
579 if (!TEST_true(disable_crngt(primary))) in test_rand_reseed()
583 EVP_RAND_uninstantiate(primary); in test_rand_reseed()
591 primary, public, private, in test_rand_reseed()
600 primary, public, private, in test_rand_reseed()
609 inc_reseed_counter(primary); in test_rand_reseed()
611 primary, public, private, in test_rand_reseed()
620 inc_reseed_counter(primary); in test_rand_reseed()
623 primary, public, private, in test_rand_reseed()
632 inc_reseed_counter(primary); in test_rand_reseed()
635 primary, public, private, in test_rand_reseed()
654 primary, public, private, in test_rand_reseed()