summaryrefslogtreecommitdiffstats
path: root/sys/dev/randomdev/harvest.c
Commit message (Collapse)AuthorAgeFilesLines
* Large upgrade to the entropy device; mainly inspired by feedbackmarkm2000-09-101-0/+19
| | | | | | | | | | | | | | | | from many folk. o The reseed process is now a kthread. With SMPng, kthreads are pre-emptive, so the annoying jerkiness of the mouse is gone. o The data structures are protected by mutexes now, not splfoo()/splx(). o The cryptographic routines are broken out into their own subroutines. this facilitates review, and possible replacement if that is ever found necessary. Thanks to: kris, green, peter, jasone, grog, jhb Forgotten to thank: You know who you are; no offense intended.
* o Fix a horrible bug where small reads (< 8 bytes) would return themarkm2000-07-251-4/+4
| | | | | | | | wrong bytes. o Improve the public interface; use void* instead of char* or u_int64_t to pass arbitrary data around. Submitted by: kris ("horrible bug")
* Clean this up with some BDE-inspired fixes.markm2000-07-231-10/+12
| | | | | | | | | | | o Make the comments KNF-compliant. o Use nanotime instead of getnanotime; the manpage lies about the kern.timecounter.method - it has been removed. o Fix the ENTROPYSOURCE const permanently. o Make variable names more consistent. o Make function prototypes more consistent. Some more needs to be done; to follow.
* Storing to a pointer is (effectively) atomic; no need to protect thismarkm2000-07-111-8/+0
| | | | | | | with splhigh(). However, the entropy-harvesting routine needs pretty serious irq-protection, as it is called out of irq handlers etc. Clues given by: bde
* Add entropy gathering code. This will work whether the module ismarkm2000-07-071-0/+81
compiled in or loaded.
OpenPOWER on IntegriCloud