Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gpg can't get random/entropy



On Wed, 21 Mar 2012, Thor Lancelot Simon wrote:

On Wed, Mar 21, 2012 at 04:49:57PM -0700, Paul Goyette wrote:

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 123 more bytes)

I have seen extremely odd behavior of this kind from gpg on other
platforms, even Linux.

I think gpg may have a bug -- I think rather than accumulating random
bytes from successive reads from /dev/random, it may be insisting on
getting as many as it wants to read, all in one read() system call.
Even the Linux /dev/random won't give it this under all conditions in
which there is as much entropy available as it wants.  So this is quite
frustrating.

I can investigate this further but not right now.  My personal suggestion
for the moment, if you don't want to chase down the bug, is that you
tell gpg to use /dev/urandom instead.

Thanks.  I'll give that a try.


-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index