Re: new /dev/random
From: Patrick J. LoPresti (patl_at_users.sourceforge.net)
Date: 10/08/04
- Previous message: Tony Bruguier: "Coloring of a map"
- In reply to: Bill Unruh: "Re: new /dev/random"
- Next in thread: Bill Unruh: "Re: new /dev/random"
- Reply: Bill Unruh: "Re: new /dev/random"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 08 Oct 2004 11:48:31 -0400 To: "Bill Unruh" <unruh@physics.ubc.ca>
Bill Unruh <unruh@physics.ubc.ca> writes:
> Could you please summarize why you believe that /dev/urandom is not
> it. Many have made that statement, and I have not seen any argument
> to support it. Cooke said he read the source and he did not like
> it-- it was messy-- and liked Fortuna better. His particular likes
> are irrelevant.
>
> Why is /dev/urandom not a proper cryptographically secure random
> number generator?
The seeding problem is serious. Even if it can be avoided in
userspace (can it? how?), the kernel-provided driver really ought to
provide secure output by default. It is not like this is hard to
implement; FreeBSD already does it, apparently.
I have not examined the /dev/urandom source, so these next comments
are based on hearsay. The best approach for /dev/urandom would be to
pick a well-known and well-analyzed RNG from the literature, and make
your implementation match that literature as closely as possible.
Such RNGs typically combine well-known primitives in easily analyzed
ways, and have associated proofs that the quality of the generator is
implied by the strength of the primitives.
For example, if I were designing /dev/urandom, I would probably use
AES in CTR mode. I do not keep up with the state of the art in random
number generation, so I would go with what I know.
Now, from what I have heard, /dev/urandom does not consist merely of
well-known primitives composed in a provably good way. In my world,
that is a design flaw.
- Pat
P.S. I am not necessarily advocating Fortuna, by the way. It does
have that "automatic recovery from state compromise" property, but it
introduces a lot of complexity to get it. And I have trouble
envisioning a likely attack which could compromise the RNG state
without compromising the entire system...
- Previous message: Tony Bruguier: "Coloring of a map"
- In reply to: Bill Unruh: "Re: new /dev/random"
- Next in thread: Bill Unruh: "Re: new /dev/random"
- Reply: Bill Unruh: "Re: new /dev/random"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|