opnsense-src/sys/dev/random
Mark Johnston fa8db724ae random: Treat writes to /dev/random as separate from /entropy
RANDOM_CACHED is overloaded to refer both to entropy obtained from files
loaded by the boot loader, and entropy obtained via writes to
/dev/random.  Introduce a new source, RANDOM_RANDOMDEV, to refer to the
latter.  This is to enable treating RANDOM_CACHED as a special case in
the NIST health test implementation.

Update the default harvest_mask in rc.conf to include RANDOM_RANDOMDEV,
preserving the old behaviour of accepting writes to /dev/random.

Bump __FreeBSD_version for modules which register a pure source, since
all of their values have now shifted.

Reviewed by:	cem
MFC after:	3 months
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D51155
2025-07-18 20:33:06 +00:00
..
fenestrasX machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
armv8rng.c armv8rng: Don't require toolchain to support FEAT_RNG 2023-12-01 23:59:07 +00:00
build.sh sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
darn.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fortuna.c random: Add NIST SP 800-90B entropy source health test implementations 2025-07-18 20:33:06 +00:00
fortuna.h random: Avoid magic numbers 2024-09-22 00:35:47 -07:00
hash.c random(4): Fix a typo in a source code comment 2024-02-22 16:54:50 +01:00
hash.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ivy.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nehemiah.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
other_algorithm.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
other_algorithm.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
random_harvestq.c random: Treat writes to /dev/random as separate from /entropy 2025-07-18 20:33:06 +00:00
random_harvestq.h random: Add NIST SP 800-90B entropy source health test implementations 2025-07-18 20:33:06 +00:00
random_infra.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
randomdev.c random: Treat writes to /dev/random as separate from /entropy 2025-07-18 20:33:06 +00:00
randomdev.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
uint128.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
unit_test.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
unit_test.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00