opnsense-src/sys/dev/random
Conrad Meyer 095db7e6e7 random(4): Gather entropy from Pure sources
At initialization, hc_source_mask only includes non-Pure sources.

The patch changes source registration to enable the registered source in the
hc_source_mask bitmask. This mask governs which sources are harvested.

This patch also disallows userspace from disabling such sources.

PR:		222807
Submitted by:	W. Dean Freeman <badfilemagic AT gmail.com>
Reviewed by:	jmg (earlier version), delphij
Approved by:	secteam (delphij)
Obtained from:	HBSD 0054e3e170e083811acc9f3b637f8be8a86c03e7
Security:	yes
Differential Revision:	https://reviews.freebsd.org/D12611
2017-10-07 19:02:03 +00:00
..
build.sh Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c 2015-12-27 17:33:59 +00:00
fortuna.c random(4): Discard low entropy inputs 2017-10-06 18:27:55 +00:00
fortuna.h Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
hash.c Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c 2015-12-27 17:33:59 +00:00
hash.h * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
ivy.c Fix rdrand_rng.ko and padlock_rng.ko dependencies, making modules 2016-04-16 06:10:47 +00:00
nehemiah.c Fix rdrand_rng.ko and padlock_rng.ko dependencies, making modules 2016-04-16 06:10:47 +00:00
other_algorithm.c Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c 2015-12-27 17:33:59 +00:00
other_algorithm.h Add DEV_RANDOM pseudo-option and use it to "include out" random(4) 2015-08-17 07:36:12 +00:00
random_harvestq.c random(4): Gather entropy from Pure sources 2017-10-07 19:02:03 +00:00
random_harvestq.h Replace the RC4 algorithm for generating in-kernel secure random 2017-04-16 09:11:02 +00:00
random_infra.c Add DEV_RANDOM pseudo-option and use it to "include out" random(4) 2015-08-17 07:36:12 +00:00
randomdev.c random(4): Gather entropy from Pure sources 2017-10-07 19:02:03 +00:00
randomdev.h Add DEV_RANDOM pseudo-option and use it to "include out" random(4) 2015-08-17 07:36:12 +00:00
uint128.h Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
unit_test.c Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c 2015-12-27 17:33:59 +00:00
unit_test.h * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
yarrow.c dev/random: minor spelling fixes in comments. 2016-05-02 14:35:57 +00:00
yarrow.h Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00