Lines Matching full:private

171  * |primary|, |public|, |private|: pointers to the three shared DRBGs
183 EVP_RAND_CTX *private, in test_drbg_reseed() argument
210 || !TEST_int_ne(private_reseed = reseed_counter(private), 0)) in test_drbg_reseed()
220 /* Generate random output from the public and private DRBG */ in test_drbg_reseed()
237 || !TEST_int_eq(state(private), expected_state)) in test_drbg_reseed()
256 if (!TEST_int_ge(reseed_counter(private), private_reseed) in test_drbg_reseed()
257 || !TEST_uint_ge(reseed_counter(private), in test_drbg_reseed()
270 || !TEST_time_t_ge(reseed_time(private), reseed_time(primary))) in test_drbg_reseed()
292 int private; /* true if the private drbg was used */ member
308 /* separate public and private results */ in compare_drbg_fork_result()
309 result = l->private - r->private; in compare_drbg_fork_result()
331 * Test whether primary, public and private DRBG are reseeded
333 * output of the public and private DRBG and send it back to
338 EVP_RAND_CTX *private, in test_drbg_reseed_in_child() argument
366 result[0].private = 0; in test_drbg_reseed_in_child()
369 /* random output of private drbg */ in test_drbg_reseed_in_child()
371 result[1].private = 1; in test_drbg_reseed_in_child()
388 if (TEST_true(test_drbg_reseed(1, primary, public, private, in test_drbg_reseed_in_child()
407 EVP_RAND_CTX *private) in test_rand_reseed_on_fork() argument
432 private, in test_rand_reseed_on_fork()
441 primary, public, private, in test_rand_reseed_on_fork()
451 result[0].private = 0; in test_rand_reseed_on_fork()
454 /* output of private drbg */ in test_rand_reseed_on_fork()
456 result[1].private = 1; in test_rand_reseed_on_fork()
472 /* count public and private duplicates separately */ in test_rand_reseed_on_fork()
473 ++duplicate[result[i].private]; in test_rand_reseed_on_fork()
485 TEST_note("ERROR: %d duplicate prefixes in private random output", duplicate[1]); in test_rand_reseed_on_fork()
515 result[i].private ? "private" : "public" in test_rand_reseed_on_fork()
529 EVP_RAND_CTX *primary, *public, *private; in test_rand_fork_safety() local
534 || !TEST_ptr(private = RAND_get0_private(NULL))) in test_rand_fork_safety()
538 if (!TEST_true(test_rand_reseed_on_fork(primary, public, private))) in test_rand_fork_safety()
556 EVP_RAND_CTX *primary, *public, *private; in test_rand_reseed() local
573 || !TEST_ptr(private = RAND_get0_private(NULL))) in test_rand_reseed()
577 if (!TEST_ptr_ne(public, private) in test_rand_reseed()
579 || !TEST_ptr_ne(private, primary) in test_rand_reseed()
581 || !TEST_ptr_eq(prov_rand(private)->parent, prov_rand(primary))) in test_rand_reseed()
590 EVP_RAND_uninstantiate(private); in test_rand_reseed()
597 primary, public, private, in test_rand_reseed()
606 primary, public, private, in test_rand_reseed()
612 * Test whether the public and private DRBG are both reseeded when their in test_rand_reseed()
617 primary, public, private, in test_rand_reseed()
627 inc_reseed_counter(private); in test_rand_reseed()
629 primary, public, private, in test_rand_reseed()
635 * Test whether the private DRBG is reseeded when its reseed counter differs in test_rand_reseed()
641 primary, public, private, in test_rand_reseed()
660 primary, public, private, in test_rand_reseed()
690 EVP_RAND_CTX *public = NULL, *private = NULL; in run_multi_thread_test() local
693 || !TEST_ptr(private = RAND_get0_private(NULL)) in run_multi_thread_test()
694 || !TEST_true(set_reseed_time_interval(private, 1)) in run_multi_thread_test()