Re: strengthening /dev/urandom

From: Ernst Lippe (ernstl-at-planet-dot-nl_at_ignore.this)
Date: 08/31/04


Date: Tue, 31 Aug 2004 14:55:55 +0200

On Tue, 31 Aug 2004 04:09:05 -0700, Guy Macon wrote:

> Yes, we all know what "TRNG" means. TRNG means 100% entropy, just as PRNG
> means zero entropy.

A much better definition IMO is that a TRNG can generate an
unbounded amount of entropy in its outputs, while the output
from a PRNG can only contain a limited amount of entropy.

These definitions avoid several problems. First of all
there are no physical devices that can guarantee 100% entropy.
In all TRNG's that I know the raw outputs are either non-uniform
or they are not statistically independent. Entropy distillation
on these raw inputs will increase the entropy per output bit,
but from a mathematical point of view it will never be exactly equal
to 100% (the hard problem here is that physical measurements are
never completely independent).

The other problem is that a PRNG can contain some real entropy.
When the PRNG is seeded with an unknown value, (e.g. from
a TRNG) its outputs will contain some real entropy. Of course
the total entropy in its outputs can never be greater than the
number of bits in the seed, but still it can be greater than
zero.

Ernst Lippe



Relevant Pages

  • Re: strengthening /dev/urandom
    ... >>amount of entropy in its outputs, while the output from a PRNG can only ... >>contain a limited amount of entropy. ... > It sounds to me as if you are describing a HRNG, not a TRNG. ...
    (sci.crypt)
  • Re: strengthening /dev/urandom
    ... I like to repeat that your 'TRNG' implies in the present ... > just as PRNG means zero entropy. ... The trouble is that TRNG doesn't exist (or more ... One must be ready to accept 'approximations' ...
    (sci.crypt)
  • Re: strengthening /dev/urandom
    ... >> means zero entropy. ... >A much better definition IMO is that a TRNG can generate an ... >unbounded amount of entropy in its outputs, ... It sounds to me as if you are describing a HRNG, not a TRNG. ...
    (sci.crypt)
  • Re: strengthening /dev/urandom
    ... >> Knowing that you have discarded whichever portion of the input ... >> the input is not entropy. ... XOR a TRNG with a good PRNG. ...
    (sci.crypt)
  • Re: strengthening /dev/urandom
    ... >>Second, if you could 'distill', then that means ... >>somehow that Y doesn't have entropy and simply excludes it. ... XOR a TRNG with a good PRNG. ... > it discard the non-entropy from the PRNG and keep the enropy ...
    (sci.crypt)