Lines Matching full:prng
256 act = "Reseed PRNG"; in trng_reseed()
307 uint32_t rng[TEST_DATA_WORDS], prng[TEST_DATA_WORDS]; in trng_test_autogen() local
312 /* PRNG run #1 */ in trng_test_autogen()
316 n = trng_collect(prng, cnt); in trng_test_autogen()
322 /* TRNG, should not match PRNG */ in trng_test_autogen()
332 /* PRNG #2: should matches run #1 */ in trng_test_autogen()
342 if (memcmp(rng, prng, sizeof(rng))) { in trng_test_autogen()
355 /* PRNG run #1 */ in trng_test_oneshot()
364 /* TRNG, should not match PRNG */ in trng_test_oneshot()
377 uint32_t rng[TEST_DATA_WORDS], prng[TEST_DATA_WORDS]; in trng_test_per_str() local
388 n = trng_collect(prng, cnt); in trng_test_per_str()
399 if (memcmp(rng, prng, sizeof(rng))) { in trng_test_per_str()
411 if (!memcmp(rng, prng, sizeof(rng))) { in trng_test_per_str()
418 const char *prop = "forced-prng"; in trng_test_forced_prng()
422 uint32_t rng[TEST_DATA_WORDS], prng[TEST_DATA_WORDS]; in trng_test_forced_prng() local
433 n = trng_collect(prng, cnt); in trng_test_forced_prng()
444 if (memcmp(rng, prng, sizeof(rng))) { in trng_test_forced_prng()
445 TRNG_FAILED("Forced-prng test failed: results do not match"); in trng_test_forced_prng()