Update comments in a Kconfig

This commit is contained in:
Gregory Nutt 2016-07-17 11:09:01 -06:00
parent 76dc238baf
commit 1b7455c171
1 changed files with 13 additions and 0 deletions

View File

@ -33,6 +33,14 @@ config DEV_RANDOM
config DEV_URANDOM config DEV_URANDOM
bool "Enable /dev/urandom" bool "Enable /dev/urandom"
default n 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 if DEV_URANDOM
@ -46,6 +54,8 @@ config DEV_URANDOM_XORSHIFT128
xorshift128 is a pseudorandom number generator that's simple, xorshift128 is a pseudorandom number generator that's simple,
portable, and can also be used on 8-bit and 16-bit MCUs. portable, and can also be used on 8-bit and 16-bit MCUs.
NOTE: Not cyptographically secure
config DEV_URANDOM_CONGRUENTIAL config DEV_URANDOM_CONGRUENTIAL
bool "Conguential" bool "Conguential"
---help--- ---help---
@ -54,6 +64,9 @@ config DEV_URANDOM_CONGRUENTIAL
point. NOTE: Good randomness from the congruential generator also point. NOTE: Good randomness from the congruential generator also
requires that you also select CONFIG_LIB_RAND_ORDER > 2 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 endchoice # /dev/urandom algorithm
endif # DEV_URANDOM endif # DEV_URANDOM