summaryrefslogtreecommitdiffstats
path: root/src/config/entropy.h
diff options
context:
space:
mode:
authorMichael Brown2012-02-19 23:14:06 +0100
committerMichael Brown2012-02-21 13:42:38 +0100
commit073f41085f0791593d96233ef617fcefe3cdacb9 (patch)
treeba9794f51055b9d1b82f34d1fa204cc9af2b1957 /src/config/entropy.h
parent[rng] Record validity within DRBG state (diff)
downloadipxe-073f41085f0791593d96233ef617fcefe3cdacb9.tar.gz
ipxe-073f41085f0791593d96233ef617fcefe3cdacb9.tar.xz
ipxe-073f41085f0791593d96233ef617fcefe3cdacb9.zip
[rng] Add ANS X9.82 Approved Source of Entropy Input
ANS X9.82 specifies several Approved Sources of Entropy Input (SEI). One such SEI uses an entropy source as the Source of Entropy Input, condensing each entropy source output after each GetEntropy call. This can be implemented relatively cheaply in iPXE and avoids the need to allocate potentially very large buffers. (Note that the terms "entropy source" and "Source of Entropy Input" are not synonyms within the context of ANS X9.82.) Use the iPXE API mechanism to allow entropy sources to be selected at compilation time. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config/entropy.h')
-rw-r--r--src/config/entropy.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/config/entropy.h b/src/config/entropy.h
new file mode 100644
index 00000000..7de2f673
--- /dev/null
+++ b/src/config/entropy.h
@@ -0,0 +1,16 @@
+#ifndef CONFIG_ENTROPY_H
+#define CONFIG_ENTROPY_H
+
+/** @file
+ *
+ * Entropy API configuration
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <config/defaults.h>
+
+#include <config/local/entropy.h>
+
+#endif /* CONFIG_ENTROPY_H */