Lines Matching refs:primary

173                             EVP_RAND_CTX *primary,  in test_drbg_reseed()  argument
200 if (!TEST_int_ne(primary_reseed = reseed_counter(primary), 0) in test_drbg_reseed()
227 if (!TEST_int_eq(state(primary), expected_state) in test_drbg_reseed()
234 if (!TEST_int_ge(reseed_counter(primary), primary_reseed)) in test_drbg_reseed()
242 reseed_counter(primary))) in test_drbg_reseed()
250 reseed_counter(primary))) in test_drbg_reseed()
256 if (!TEST_time_t_le(before_reseed, reseed_time(primary)) in test_drbg_reseed()
257 || !TEST_time_t_le(reseed_time(primary), after_reseed)) in test_drbg_reseed()
261 if (!TEST_time_t_ge(reseed_time(public), reseed_time(primary)) in test_drbg_reseed()
262 || !TEST_time_t_ge(reseed_time(private), reseed_time(primary))) in test_drbg_reseed()
328 static int test_drbg_reseed_in_child(EVP_RAND_CTX *primary, in test_drbg_reseed_in_child() argument
380 if (TEST_true(test_drbg_reseed(1, primary, public, private, in test_drbg_reseed_in_child()
397 static int test_rand_reseed_on_fork(EVP_RAND_CTX *primary, in test_rand_reseed_on_fork() argument
422 if (!TEST_true(test_drbg_reseed_in_child(primary, in test_rand_reseed_on_fork()
433 primary, public, private, in test_rand_reseed_on_fork()
521 EVP_RAND_CTX *primary, *public, *private; in test_rand_fork_safety() local
524 if (!TEST_ptr(primary = RAND_get0_primary(NULL)) in test_rand_fork_safety()
530 if (!TEST_true(test_rand_reseed_on_fork(primary, public, private))) in test_rand_fork_safety()
548 EVP_RAND_CTX *primary, *public, *private; in test_rand_reseed() local
563 if (!TEST_ptr(primary = RAND_get0_primary(NULL)) in test_rand_reseed()
570 || !TEST_ptr_ne(public, primary) in test_rand_reseed()
571 || !TEST_ptr_ne(private, primary) in test_rand_reseed()
572 || !TEST_ptr_eq(prov_rand(public)->parent, prov_rand(primary)) in test_rand_reseed()
573 || !TEST_ptr_eq(prov_rand(private)->parent, prov_rand(primary))) in test_rand_reseed()
577 if (!TEST_true(disable_crngt(primary))) in test_rand_reseed()
581 EVP_RAND_uninstantiate(primary); in test_rand_reseed()
590 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()
655 primary, public, private, in test_rand_reseed()
670 primary, public, private, in test_rand_reseed()