kernel - add a fortuna-based CSPRNG
authorAlex Hornung <alex@alexhornung.com>
Thu, 12 Jun 2014 14:24:21 +0000 (15:24 +0100)
committerAlex Hornung <alex@alexhornung.com>
Mon, 14 Jul 2014 10:19:45 +0000 (11:19 +0100)
commit640491dac3a8e413675460849838bdd9c6d7b2bf
tree8f0f2f671aacd9c5db7fbd4e2d101f824f0fb495
parent0bb1727515a0e591326e878d0e0c3182608fd9a7
kernel - add a fortuna-based CSPRNG

 * This implements a Fortuna-based CSPRNG.

 * All entropy pools are shared across all CPUs in the system.

 * SHA256 is used instead of SHA256_d as cryptographical hash
   function.

 * ChaCha is used as stream cipher instead of AES in CTR mode.
sys/kern/subr_csprng.c [new file with mode: 0644]
sys/sys/csprng.h [new file with mode: 0644]