Re: [PATCHES] [patch 0/2] Add Fortuna PRNG to pgcrypto

2005-07-08 Thread Marko Kreen
On Fri, Jul 08, 2005 at 03:12:59PM -0500, Bruno Wolff III wrote: > On Fri, Jul 08, 2005 at 23:03:49 +0300, > Marko Kreen wrote: > > > > Well, those OS'es that already have urandom/random, don't need > > it. And those that don't - I really don't feel responsibility > > to write one... > > But

Re: [PATCHES] [patch 0/2] Add Fortuna PRNG to pgcrypto

2005-07-08 Thread Bruno Wolff III
On Fri, Jul 08, 2005 at 23:03:49 +0300, Marko Kreen wrote: > > Well, those OS'es that already have urandom/random, don't need > it. And those that don't - I really don't feel responsibility > to write one... But fortuna is essentially a high quality /dev/urandom. It doesn't make seem to much

Re: [PATCHES] [patch 0/2] Add Fortuna PRNG to pgcrypto

2005-07-08 Thread Marko Kreen
On Fri, Jul 08, 2005 at 02:10:47PM -0500, Bruno Wolff III wrote: > On Fri, Jul 08, 2005 at 20:54:40 +0300, > Marko Kreen wrote: > > > > The idea is to initially seed Fortuna with randomness from > > system and later feed SHA1 of user data into it too. Just > > to keep it from degenerating into

Re: [PATCHES] [patch 0/2] Add Fortuna PRNG to pgcrypto

2005-07-08 Thread Bruno Wolff III
On Fri, Jul 08, 2005 at 20:54:40 +0300, Marko Kreen wrote: > > The idea is to initially seed Fortuna with randomness from > system and later feed SHA1 of user data into it too. Just > to keep it from degenerating into pure PRNG. How is fortuna getting entropy? Wouldn't this be better placed i

[PATCHES] [patch 0/2] Add Fortuna PRNG to pgcrypto

2005-07-08 Thread Marko Kreen
Following two patches add Fortuna PRNG to pgcrypto. I think this is needed to really complete the 'no hand-config' direction of pgcrypto. Patch #1 adds implementation of SHA2 hashes (SHA256/384/512). They are required for Fortuna. As they are replacements for SHA1 (which was replacement for MD5)