From 1b7455c1713d72e3149ee93333772b7f3ea8fed9 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 17 Jul 2016 11:09:01 -0600 Subject: [PATCH] Update comments in a Kconfig --- drivers/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/Kconfig b/drivers/Kconfig index aba608676c..1f0f7dbe3c 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -33,6 +33,14 @@ config DEV_RANDOM config DEV_URANDOM bool "Enable /dev/urandom" default n + ---help--- + Enable support for /dev/urandom provided by a software PRNG + implementation. + + NOTE: This option may not be cryptographially secure and should not + be enabled if you are concerned about cyptographically secure + pseudo-random numbers (CPRNG) and do not know the characteristics + of the software PRNG impelementation! if DEV_URANDOM @@ -46,6 +54,8 @@ config DEV_URANDOM_XORSHIFT128 xorshift128 is a pseudorandom number generator that's simple, portable, and can also be used on 8-bit and 16-bit MCUs. + NOTE: Not cyptographically secure + config DEV_URANDOM_CONGRUENTIAL bool "Conguential" ---help--- @@ -54,6 +64,9 @@ config DEV_URANDOM_CONGRUENTIAL point. NOTE: Good randomness from the congruential generator also requires that you also select CONFIG_LIB_RAND_ORDER > 2 + NOTE: Cyptographically secure? Certainly not if CONFIG_LIB_RAND_ORDER + is small. + endchoice # /dev/urandom algorithm endif # DEV_URANDOM