1 /* A secure PRNG using the RNG functions. Basically this is a
2 * wrapper that allows you to use a secure RNG as a PRNG
3 * in the various other functions.
9 const struct _prng_descriptor sprng_desc =
18 int sprng_start(prng_state *prng)
23 int sprng_add_entropy(const unsigned char *buf, unsigned long len, prng_state *prng)
28 int sprng_ready(prng_state *prng)
33 unsigned long sprng_read(unsigned char *buf, unsigned long len, prng_state *prng)
36 return rng_get_bytes(buf, len, NULL);