aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random/yarrow.h
Commit message (Collapse)AuthorAgeFilesLines
* Move the prototypes for random_set_wakeup* from yarrow.c to yarrow.h so thatJohn Baldwin2000-09-111-0/+2
| | | | | | | | | both yarrow.c and harvest.c can use them. Approved by: markm Notes: svn path=/head/; revision=65752
* Large upgrade to the entropy device; mainly inspired by feedbackMark Murray2000-09-101-10/+3
| | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=65686
* o Fix a horrible bug where small reads (< 8 bytes) would return theMark Murray2000-07-251-2/+2
| | | | | | | | | | | 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") Notes: svn path=/head/; revision=63855
* Clean this up with some BDE-inspired fixes.Mark Murray2000-07-231-7/+10
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=63771
* Yarrow tweaks; separate the fast and slow reseed tasks so that they don'tMark Murray2000-07-091-1/+1
| | | | | | | | stomp on each other; provide constant names (as enums) for the harvester to use (makes it more self-documenting). Notes: svn path=/head/; revision=62841
* Add entropy gathering code. This will work whether the module isMark Murray2000-07-071-10/+45
| | | | | | | compiled in or loaded. Notes: svn path=/head/; revision=62765
* New machine-independant /dev/random driver.Mark Murray2000-06-251-0/+42
This is work-in-progress, and the entropy-gathering routines are not yet present. As such, this should be viewed as a pretty reasonable PRNG with _ABSOLUTELY_NO_ security!! Entropy gathering will be the subject of ongoing work. This is written as a module, and as such is unloadable, but there is no refcounting done. I would like to use something like device_busy(9) to achieve this (eventually). Lots of useful ideas from: bde, phk, Jeroen van Gelderen Reviewed by: dfr Notes: svn path=/head/; revision=62053