mirage / mirage-entropy

Entropy driver for MirageOS -- this has been imported into https://github.com/mirage/mirage-crypto
http://openmirage.org/
BSD 2-Clause "Simplified" License
12 stars 11 forks source link

Event driven #3

Closed pqwy closed 10 years ago

pqwy commented 10 years ago

The other side of evented entropy.

The interface now feeds entropy to a provided handler.

On the Unix side, this means spinning up a timer-wheel and simply reading /dev/urandom periodically. Which should instead be done after other events fire, to avoid needless wakeups. The handler is fed some initial entropy as soon as it is installed.

On the Xen side, we still just use built-in (soft) RNG and not even bother spinning the timers. This provider should start handing out time measurements and such from drivers, later on.

hannesm commented 10 years ago

well, I believe this matches the current mirage type - whereas the other one does not anymore... thus merging