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

/dev/random rate



I am trying to generate an SSL key using OpenSSL and /dev/random . However, it looks that the entropy generation rate is very low. Everything works in less than a second if I use /dev/urandom, but with /dev/random I can strace the process and see it reading about 8 bytes per second (even though I generate as much noise as I can (mouse+keyboard+network)).

read(4, "\332\242_\26\360\3140e"..., 190) = 8
read(4, "\256\212\263-~\245n\37"..., 182) = 8
read(4, "\33A\f\205@\327\274D"..., 174) = 8
read(4, "\364\325\327D\261\r\346\233"..., 166) = 8
read(4, "\237\327}r3\24S\334"..., 158)  = 8
read(4, "q\204\237\252\261\2515,"..., 150) = 8
read(4, "W\320A\331`8\201\252"..., 142) = 8
read(4, "o\257\314\363\270B\206\331"..., 134) = 8

Any ideas? You can try this:

strace openssl genrsa -out test.random -rand /dev/random 1024

on your system and tell me what you see. :-)

STF

http://eisenbits.homelinux.net/~stf/
OpenPGP: DFD9 0146 3794 9CF6 17EA  D63F DBF5 8AA8 3B31 FE8A


Reply to: