diff options
author | obrien <obrien@FreeBSD.org> | 2013-08-09 15:31:50 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2013-08-09 15:31:50 +0000 |
commit | f65ab5c10cefbefba1cca281b8e41b7956ec6d5e (patch) | |
tree | 4744a8ad00a83dbe699947a887d8742001dae753 /sys/conf | |
parent | e9f37cac7422f86c8a65b4c123705f5dccd43fa1 (diff) | |
download | FreeBSD-src-f65ab5c10cefbefba1cca281b8e41b7956ec6d5e.zip FreeBSD-src-f65ab5c10cefbefba1cca281b8e41b7956ec6d5e.tar.gz |
* Add random_adaptors.[ch] which is basically a store of random_adaptor's.
random_adaptor is basically an adapter that plugs in to random(4).
random_adaptor can only be plugged in to random(4) very early in bootup.
Unplugging random_adaptor from random(4) is not supported, and is probably a
bad idea anyway, due to potential loss of entropy pools.
We currently have 3 random_adaptors:
+ yarrow
+ rdrand (ivy.c)
+ nehemeiah
* Remove platform dependent logic from probe.c, and move it into
corresponding registration routines of each random_adaptor provider.
probe.c doesn't do anything other than picking a specific random_adaptor
from a list of registered ones.
* If the kernel doesn't have any random_adaptor adapters present then the
creation of /dev/random is postponed until next random_adaptor is kldload'ed.
* Fix randomdev_soft.c to refer to its own random_adaptor, instead of a
system wide one.
Submitted by: arthurmesh@gmail.com, obrien
Obtained from: Juniper Networks
Reviewed by: so (des)
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files index a748f08..17ec405 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -2032,6 +2032,7 @@ rt2860.fw optional rt2860fw | ralfw \ dev/random/harvest.c standard dev/random/hash.c optional random dev/random/probe.c optional random +dev/random/random_adaptors.c standard dev/random/randomdev.c optional random dev/random/randomdev_soft.c optional random dev/random/yarrow.c optional random |