]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[rng] Allow for entropy sources that fail during startup tests
authorMichael Brown <mcb30@ipxe.org>
Mon, 20 Feb 2023 13:55:40 +0000 (13:55 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 20 Feb 2023 14:53:10 +0000 (14:53 +0000)
commit7d71cf318a2a6fedde7aaf9303b1cdec0cf51660
tree1334c81e3e66bc029966bd00066fe31bcfca3abf
parent6625e49cea9fb9316b8eeee9b68a06ea4508bb77
[rng] Allow for entropy sources that fail during startup tests

Provide per-source state variables for the repetition count test and
adaptive proportion test, to allow for the situation in which an
entropy source can be enabled but then fails during the startup tests,
thereby requiring an alternative entropy source to be used.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/entropy.c
src/include/ipxe/entropy.h
src/tests/entropy_sample.c