[riscv] Add support for the seed CSR as an entropy source

The Zkr entropy source extension defines a potentially unprivileged
seed CSR that can be read to obtain 16 bits of entropy input, with a
mandated requirement that 256 entropy input bits read from the seed
CSR will contain at least 128 bits of min-entropy.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2024-10-28 00:10:18 +00:00
parent cd54e7c844
commit be0c9788a1
3 changed files with 114 additions and 0 deletions

View File

@@ -49,3 +49,6 @@ REQUIRE_OBJECT ( linux_entropy );
#ifdef ENTROPY_RDRAND
REQUIRE_OBJECT ( rdrand );
#endif
#ifdef ENTROPY_ZKR
REQUIRE_OBJECT ( zkr );
#endif