aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/config_entropy.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-10-28 00:10:18 +0000
committerMichael Brown <mcb30@ipxe.org>2024-10-28 15:55:24 +0000
commitbe0c9788a13423b851af4d38be149af17f7b8494 (patch)
tree539b0105300cec6d854b83694ddea91b5e4abb1b /src/config/config_entropy.c
parentcd54e7c844e2148b46c960d72ed853f8f75bf400 (diff)
downloadipxe-be0c9788a13423b851af4d38be149af17f7b8494.tar.gz
[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>
Diffstat (limited to 'src/config/config_entropy.c')
-rw-r--r--src/config/config_entropy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/config_entropy.c b/src/config/config_entropy.c
index 9f12f1fa3..92aa97884 100644
--- a/src/config/config_entropy.c
+++ b/src/config/config_entropy.c
@@ -49,3 +49,6 @@ REQUIRE_OBJECT ( linux_entropy );
#ifdef ENTROPY_RDRAND
REQUIRE_OBJECT ( rdrand );
#endif
+#ifdef ENTROPY_ZKR
+REQUIRE_OBJECT ( zkr );
+#endif