In message <[EMAIL PROTECTED]> on Sat, 20 Mar 2004 02:28:01 -0600, "Vu Pham" <[EMAIL 
PROTECTED]> said:

vu> I run the following function on Solaris x86 and Linux (RH9)
vu> RAND_load_file("/dev/random", 2048)
vu> 
vu> On the Solaris x86 ( AMD 2700+) , it takes less than 1 second.
vu> On the RH9 ( AMD 2400+ ), it takes almost a minute.
vu> 
vu> I don't think that small cpu speed difference can cause that big difference
vu> performance. What else can cause this long time on RH9 ?

/dev/random may block if it's internal randomness pool gets
exhausted.  Apparently, you're hitting that much faster on RH9, dor
whatever reason.

Loading that much data from /dev/random is a bad idea altogether.
OpenSSL will automagically load bytes from /dev/urandom, /dev/random
and a few more sources anyway, and just enough to make OpenSSL's
randomness pool sufficiently secure.

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte   \ Tunnlandsvägen 52 \ [EMAIL PROTECTED]
[EMAIL PROTECTED]  \ S-168 36  BROMMA  \ T: +46-708-26 53 44
                    \      SWEDEN       \
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to