soc: arm: nxp_imx: rt: Configure settings for TRNG IP
RT platforms that support TRNG IP (rt10xx and rt6xx) need to set RNG and CSRNG to Xoroshiro and CTR_DRBG respectively instead of using TRNG as random source. Fixes: #37307 Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
parent
ee327803e3
commit
569a1a0a5d
3 changed files with 52 additions and 0 deletions
|
@ -26,3 +26,19 @@ config ENTROPY_MCUX_RNG
|
|||
help
|
||||
This option enables the true random number generator (TRNG)
|
||||
driver based on the MCUX RNG driver on LPC Family.
|
||||
|
||||
#
|
||||
# Don't use use the MCUX TRNG as a random source as it is not designed
|
||||
# to supply a continuous random stream. Instead, it is used to provide
|
||||
# a seed to RNG generator.
|
||||
#
|
||||
# Use the software implemented xoroshiro RNG.
|
||||
# Use CSPRNG for cryptographically secure RNG source.
|
||||
#
|
||||
choice RNG_GENERATOR_CHOICE
|
||||
default XOSHIRO_RANDOM_GENERATOR if ENTROPY_MCUX_TRNG
|
||||
endchoice
|
||||
|
||||
choice CSPRNG_GENERATOR_CHOICE
|
||||
default CTR_DRBG_CSPRNG_GENERATOR if ENTROPY_MCUX_TRNG
|
||||
endchoice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue