freebsd-dev/sys/conf
Mark Murray 10cb24248a This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random.
This code has had an extensive rewrite and a good series of reviews, both by the author and other parties. This means a lot of code has been simplified. Pluggable structures for high-rate entropy generators are available, and it is most definitely not the case that /dev/random can be driven by only a hardware souce any more. This has been designed out of the device. Hardware sources are stirred into the CSPRNG (Yarrow, Fortuna) like any other entropy source. Pluggable modules may be written by third parties for additional sources.

The harvesting structures and consequently the locking have been simplified. Entropy harvesting is done in a more general way (the documentation for this will follow). There is some GREAT entropy to be had in the UMA allocator, but it is disabled for now as messing with that is likely to annoy many people.

The venerable (but effective) Yarrow algorithm, which is no longer supported by its authors now has an alternative, Fortuna. For now, Yarrow is retained as the default algorithm, but this may be changed using a kernel option. It is intended to make Fortuna the default algorithm for 11.0. Interested parties are encouraged to read ISBN 978-0-470-47424-2 "Cryptography Engineering" By Ferguson, Schneier and Kohno for Fortuna's gory details. Heck, read it anyway.

Many thanks to Arthur Mesh who did early grunt work, and who got caught in the crossfire rather more than he deserved to.

My thanks also to folks who helped me thresh this out on whiteboards and in the odd "Hallway track", or otherwise.

My Nomex pants are on. Let the feedback commence!

Reviewed by:	trasz,des(partial),imp(partial?),rwatson(partial?)
Approved by:	so(des)
2014-10-30 21:21:53 +00:00
..
files This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. 2014-10-30 21:21:53 +00:00
files.amd64 msi: add Xen MSI implementation 2014-09-30 16:46:45 +00:00
files.arm Add an elf not so kgdb detects the kernel as a FreeBSD elf file. The 2014-10-18 13:38:04 +00:00
files.i386 msi: add Xen MSI implementation 2014-09-30 16:46:45 +00:00
files.mips Merge all MD sf_buf allocators into one MI, residing in kern/subr_sfbuf.c 2014-08-05 09:44:10 +00:00
files.pc98 Merge pc98's machdep.c into i386/i386/machdep.c. 2014-10-04 06:01:30 +00:00
files.powerpc Move the adm1030 driver to the proper location, and rename it. 2014-10-16 01:32:22 +00:00
files.sparc64 Add a simple unaccelerated vt(4) framebuffer driver for Sun framebuffers 2014-08-05 18:19:51 +00:00
kern.mk For gcc 4.6 and newer, _Static_assert is a keyword, so don't try to 2014-10-10 00:35:13 +00:00
kern.opts.mk Remove MK_ARM_EABI, the armeb issues have been fixed. The code to support 2014-10-01 08:26:51 +00:00
kern.post.mk Truncate the ctfmerge command line, like we do with SYSTEM_LD. 2014-08-12 23:48:37 +00:00
kern.pre.mk Reviewed by: imp 2014-07-26 04:38:09 +00:00
kmod_syms.awk
kmod.mk Don't depend on @ or machine for assym.s or genassym.o. That's a 2014-10-17 04:36:48 +00:00
ldscript.amd64
ldscript.arm
ldscript.i386
ldscript.mips
ldscript.mips.cfe
ldscript.mips.mips64
ldscript.mips.octeon1
ldscript.powerpc Rename elf*-powerpc into elf*-powerpc-freebsd in binutils 2014-10-10 06:24:09 +00:00
ldscript.powerpc64 Rename elf*-powerpc into elf*-powerpc-freebsd in binutils 2014-10-10 06:24:09 +00:00
ldscript.sparc64
Makefile.amd64
Makefile.arm Only build the ARM tranpoline when KERNPHYSADDR is defined as it is 2014-10-19 20:56:05 +00:00
Makefile.i386
Makefile.mips
Makefile.pc98
Makefile.powerpc
Makefile.sparc64
makeLINT.mk
makeLINT.sed
newvers.sh Only catch the line from the compiler output where 'version' is a word 2014-10-09 12:35:17 +00:00
NOTES This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. 2014-10-30 21:21:53 +00:00
options This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. 2014-10-30 21:21:53 +00:00
options.amd64
options.arm Remove the ARM_DEVICE_MULTIPASS option and make its effect be the default. 2014-10-26 18:30:35 +00:00
options.i386
options.mips
options.pc98 Reduce diffs against i386. 2014-10-04 05:03:39 +00:00
options.powerpc
options.sparc64
systags.sh
WITHOUT_SOURCELESS
WITHOUT_SOURCELESS_HOST
WITHOUT_SOURCELESS_UCODE