summaryrefslogtreecommitdiff
path: root/sys/dev/random/random.c
AgeCommit message (Collapse)Author
2 dayskernel: dev: Add /dev/randomAlex Funo
Introduce a prototype cryptographically secure (?) random number generator. The RNG uses ChaCha20 seeded with a SipHash-processed entropy pool. Entropy is collected only at read time and is mixed into the internal pool before each ChaCha20 reseed. The design is still experimental. Signed-off-by: Alex Funo <frost@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>