PRNG not seeded on 0.9.8

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PRNG not seeded on 0.9.8

GOTOU Yuuzou
Hi,

OpenSSL 0.9.7 works with the following command.

% env HOME=/ /usr/local/ssl097/bin/openssl genrsa 512
Generating RSA private key, 512 bit long modulus
..............++++++++++++
.........++++++++++++
unable to write 'random state'
e is 65537 (0x10001)
-----BEGIN RSA PRIVATE KEY-----
MIIBOwIBAAJBAM3frGlqKZMS0ssaPODGd/OYXzVszIFqwtMofmG48+lYt4QxMoJX
n0StSxfyj7qcTcYQ17wOJixseuHMFtUDWtkCAwEAAQJAchsbEIJK8L1qIDA2tc7L
BTTa8F2RK9nkiezTv44ngpkuNGspfIuQAlJzK06g1bYpxPiiOWud+MhVWl4BxeM+
EQIhAPiH8uEQuFC3NRoeUx1Gbud14NygR/kbtZuwQlh5WvH7AiEA1A+LYM9SJRlV
pawdJga/fNf+UIMNTjb7KbX0VOzq4jsCIATZqlzIFcDFgozK8LZOjJWJ0GSd4Cm1
Z7rtGq5dV/AHAiEAw7hhFIXktBbw5Iq5EGqz+37C2v5JnoHCSFoGWwebNhcCIQCu
sL48EEGQJcmwwJy3Wm+m8/zAWD4fjLo0q4FxpTzk8g==
-----END RSA PRIVATE KEY-----

But 0.9.8 fails.

% env HOME=/ /usr/local/ssl098/bin/openssl genrsa 512
warning, not much extra random data, consider using the -rand option
Generating RSA private key, 512 bit long modulus
28601:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:503:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html
28601:error:04081003:rsa routines:RSA_BUILTIN_KEYGEN:BN lib:rsa_gen.c:183:

Is this intended behavior?

--
gotoyuzo
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: PRNG not seeded on 0.9.8

Peter Waltenberg

peterw@ibm:rand> diff rand_unix.c~ rand_unix.c
156c156
<       static const char *randomfiles[] = { "DEVRANDOM" };
---
>       static const char *randomfiles[] = { DEVRANDOM };

Peter Waltenberg





GOTOU Yuuzou <[hidden email]>
Sent by: [hidden email]

17/06/2005 05:21 PM

Please respond to
openssl-dev

To
[hidden email]
cc
Subject
PRNG not seeded on 0.9.8





Hi,

OpenSSL 0.9.7 works with the following command.

% env HOME=/ /usr/local/ssl097/bin/openssl genrsa 512
Generating RSA private key, 512 bit long modulus
..............++++++++++++
.........++++++++++++
unable to write 'random state'
e is 65537 (0x10001)
-----BEGIN RSA PRIVATE KEY-----
MIIBOwIBAAJBAM3frGlqKZMS0ssaPODGd/OYXzVszIFqwtMofmG48+lYt4QxMoJX
n0StSxfyj7qcTcYQ17wOJixseuHMFtUDWtkCAwEAAQJAchsbEIJK8L1qIDA2tc7L
BTTa8F2RK9nkiezTv44ngpkuNGspfIuQAlJzK06g1bYpxPiiOWud+MhVWl4BxeM+
EQIhAPiH8uEQuFC3NRoeUx1Gbud14NygR/kbtZuwQlh5WvH7AiEA1A+LYM9SJRlV
pawdJga/fNf+UIMNTjb7KbX0VOzq4jsCIATZqlzIFcDFgozK8LZOjJWJ0GSd4Cm1
Z7rtGq5dV/AHAiEAw7hhFIXktBbw5Iq5EGqz+37C2v5JnoHCSFoGWwebNhcCIQCu
sL48EEGQJcmwwJy3Wm+m8/zAWD4fjLo0q4FxpTzk8g==
-----END RSA PRIVATE KEY-----

But 0.9.8 fails.

% env HOME=/ /usr/local/ssl098/bin/openssl genrsa 512
warning, not much extra random data, consider using the -rand option
Generating RSA private key, 512 bit long modulus
28601:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:503:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html
28601:error:04081003:rsa routines:RSA_BUILTIN_KEYGEN:BN lib:rsa_gen.c:183:

Is this intended behavior?

--
gotoyuzo
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]