1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00
freebsd/sys/dev/random
Mark Murray a6278a2a42 After some complaints about the dir names, the random device is
now in dirs called sys/*/random/ instead of sys/*/randomdev/*.

Introduce blocking, but only at startup; the random device will
block until the first reseed happens to prevent clients from
using untrustworthy output.

Provide a read_random() call for the rest of the kernel so that
the entropy device does not need to be present. This means that
things like IPX no longer need to have "device random" hardcoded
into thir kernel config. The downside is that read_random() will
provide very poor output until the entropy device is loaded and
reseeded. It is recommended that developers do NOT use the
read_random() call; instead, they should use arc4random() which
internally uses read_random().

Clean up the mutex and locking code a bit; this makes it possible
to unload the module again.
2000-10-14 10:59:56 +00:00
..
harvest.c After some complaints about the dir names, the random device is 2000-10-14 10:59:56 +00:00
hash.c After some complaints about the dir names, the random device is 2000-10-14 10:59:56 +00:00
hash.h Large upgrade to the entropy device; mainly inspired by feedback 2000-09-10 13:52:19 +00:00
randomdev.c After some complaints about the dir names, the random device is 2000-10-14 10:59:56 +00:00
yarrow.c After some complaints about the dir names, the random device is 2000-10-14 10:59:56 +00:00
yarrow.h After some complaints about the dir names, the random device is 2000-10-14 10:59:56 +00:00