diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-10-28 00:10:18 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-10-28 15:55:24 +0000 |
commit | be0c9788a13423b851af4d38be149af17f7b8494 (patch) | |
tree | 539b0105300cec6d854b83694ddea91b5e4abb1b /src/config/config_entropy.c | |
parent | cd54e7c844e2148b46c960d72ed853f8f75bf400 (diff) | |
download | ipxe-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.c | 3 |
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 |