看板FB_security
標 題Re: Speed and security of /dev/urandom
發信站NCTU CS FreeBSD Server (Sat Jul 19 00:42:06 2014)
轉信站ptt!csnews.cs.nctu!news.cednctu!FreeBSD.cs.nctu!.POSTED!freebsd.org!ow
On Fri, 18 Jul 2014, Andrey Chernov wrote:
> On 18.07.2014 3:41, Steven Chamberlain wrote:
>> Is there a good reason arc4random_buf() can't take bytes directly from
>> /dev/urandom or sysctl KERN_ARND? Therefore no longer needing to seed
>> first, periodically reseed, or use any stream cipher?
>
> One of the reason I hear is that true random entropy bits can be quickly
> exhausted if every userland program will drain them so much.
Once the DRBG is seeded with a sufficient amount of truly random bits
("entropy"), its output remains unpredictable essentially indefinitely.
There is no "loss" or "draining" of entropy from the system over time
unless the algorithm is lousy.
-Ben
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "
[email protected]"