Collecting entropy from device_attach() times.

2012-09-18 Thread Pawel Jakub Dawidek
Hi. I experimented a bit with collecting entropy from the time it takes for device_attach() to run (in CPU cycles). It seems that those times have enough variation that we can use it for entropy harvesting. It happens even before root is mounted, so pretty early. On the machine I'm testing it, wh

Re: svn commit: r239569 - head/etc/rc.d

2012-09-18 Thread Mark Murray
Pawel Jakub Dawidek writes: > Why can't we split harvesting entropy from /dev/random from harvesting > entropy from sources that are much more performance-sensitive? > Currently random_harvest_internal() is used for both and it is trying to > be fast, as we don't want to slow down the caller. But w

Re: Proposed fix; stage 1 (Was: svn commit: r239569 - head/etc/rc.d)

2012-09-18 Thread Ben Laurie
On Sun, Sep 16, 2012 at 10:27 PM, Doug Barton wrote: > Finally, I still think that making changes to the entropy-feeding > methods in initrandom or random are premature until we have a chance to > review Arthur's work on what's actually happening with the buffer. Until > we know where the problems