You really have lost me now!
-----Original Message-----
From: John Hughes [mailto:[EMAIL PROTECTED]]
Sent: 02 February 2001 15:15
To: [EMAIL PROTECTED]
Subject: RE: random state, openssl.cnf and RAND_edg("/var/run/egd-pool")
> 1. in apps/app_rand.c:181 the openssl application tries to read from file
> 'n' regardless whether RAND_egd(n) already succeeded.
Aha.
--- app_rand.c.orig Tue Mar 14 00:54:04 2000
+++ app_rand.c Fri Feb 2 16:06:32 2001
@@ -177,8 +177,10 @@
if (*n == '\0') break;
egd=RAND_egd(n);
- if (egd > 0) tot+=egd;
- tot+=RAND_load_file(n,-1);
+ if (egd > 0)
+ tot+=egd;
+ else
+ tot+=RAND_load_file(n,-1);
if (last) break;
}
if (tot > 512)
And now:
$ openssl rand -out ~/.rnd -rand /u/local/var/entropy 1024
255 semi-random bytes loaded
> I think this is insane, probably it is related to look like a
> FIFO, where open() makes sense.
Yup, totaly insane.
--
John Hughes <[EMAIL PROTECTED]>,
CalvaEDI SA. Tel: +33-1-4313-3131
66 rue du Moulin de la Pointe, Fax: +33-1-4313-3139
75013 PARIS.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]