- Add Fortuna PRNG to pgcrypto.
Bruce Momjian <bruce@momjian.us>
- Add Fortuna PRNG to pgcrypto. - Move openssl random provider to openssl.c and builtin provider to internal.c - Make px_random_bytes use Fortuna, instead of giving error. - Retarget random.c to aquiring system randomness, for initial seeding of Fortuna. There is ATM 2 functions for Windows, reader from /dev/urandom and the regular time()/getpid() silliness. Marko Kreen
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgcrypto/internal.c | modified | +64 −1 |
| contrib/pgcrypto/Makefile | modified | +5 −9 |
| contrib/pgcrypto/openssl.c | modified | +59 −1 |
| contrib/pgcrypto/px.h | modified | +4 −1 |
| contrib/pgcrypto/random.c | modified | +152 −65 |