Lines Matching full:prng
3 * PRNG: Pseudo Random Number Generator
4 * Based on NIST Recommended PRNG From ANSI X9.31 Appendix A.2.4 using
308 dbgprint(KERN_CRIT "PRNG: setkey() failed flags=%x\n", in reset_prng_context()
353 struct prng_context *prng = crypto_rng_ctx(tfm); in cprng_get_random() local
355 return get_prng_bytes(rdata, dlen, prng, 0); in cprng_get_random()
367 struct prng_context *prng = crypto_rng_ctx(tfm); in cprng_reset() local
377 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); in cprng_reset()
379 if (prng->flags & PRNG_NEED_RESET) in cprng_reset()
389 struct prng_context *prng = crypto_rng_ctx(tfm); in fips_cprng_get_random() local
391 return get_prng_bytes(rdata, dlen, prng, 1); in fips_cprng_get_random()
401 struct prng_context *prng = crypto_rng_ctx(tfm); in fips_cprng_reset() local
416 rc = get_prng_bytes(rdata, DEFAULT_BLK_SZ, prng, 0); in fips_cprng_reset()
417 prng->rand_data_valid = DEFAULT_BLK_SZ; in fips_cprng_reset()