[PATCH 2/7] Two new CONFIG options for the random(4) driver

From: Sandy Harris
Date: Sat Nov 07 2015 - 09:32:27 EST


Signed-off-by: Sandy Harris <sandyinchina@xxxxxxxxx>
---
drivers/char/Kconfig | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
index a043107..0e0e6b5 100644
--- a/drivers/char/Kconfig
+++ b/drivers/char/Kconfig
@@ -603,5 +603,28 @@ config TILE_SROM

source "drivers/char/xillybus/Kconfig"

+
+config RANDOM_INIT
+ bool "Initialise random(4) pools with random data (NEW)"
+ default n
+ help
+ Use /dev/urandom on development machine to set
+ up pools, different for each compile.
+ Compiles scripts/gen_random_init.c
+ Creates include/generated/random_init.h
+
+config RANDOM_GCM
+ bool "modified random(4) driver (EXPERIMENTAL)"
+ depends on RANDOM_INIT
+ default n
+ help
+ New version using the hash from AES-GCM.
+ Main goal decoupling so that heavy use of
+ /dev/urandom cannot deplete entropy for
+ /dev/random.
+ Should not be used in production before much
+ more analysis and testing is done.
+ When in doubt, say "N".
+
endmenu

--
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/