diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-07 04:56:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-07 04:56:53 +0000 |
commit | 863b2e9e8ac2b7c579d515f97a34123a6ca87a62 (patch) | |
tree | 6535b97607ec59f67c2cc829c407bc1a76652ae5 /regress/sys | |
parent | 930a9cd1a981211e2e2383d17793ab6655f02e61 (diff) |
substantial rewrite. put a very thin mutex at the entropy-collection
side so that entropy events can come in from any kernel context. place
a 2nd very thin mutex at the call-down path as well, so that any context can
request random data. in the middle, meet with a bcopy that has no mutex,
but copying unlocked data is actually a benefit.
move the pool->MD5->RC4init sequence into a workq driven from a timeout,
so that we can do all the heavy work without any mutex held or IPL; only
grab the 2nd mutex to swap to a new RC4 state. (this workq design from tedu)
ok dlg tedu
Diffstat (limited to 'regress/sys')
0 files changed, 0 insertions, 0 deletions