2019-11-01 13:45:29 +01:00
|
|
|
# mcux entropy generator driver configuration
|
|
|
|
|
2016-11-28 21:39:43 +01:00
|
|
|
# Copyright (c) 2016 ARM Ltd.
|
2017-01-19 02:01:01 +01:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-11-28 21:39:43 +01:00
|
|
|
|
2019-10-22 01:04:04 +02:00
|
|
|
config ENTROPY_MCUX_RNGA
|
2017-02-27 15:45:08 +01:00
|
|
|
bool "MCUX RNGA driver"
|
2022-07-22 08:40:12 +02:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_KINETIS_RNGA_ENABLED
|
2017-10-14 01:30:55 +02:00
|
|
|
select ENTROPY_HAS_DRIVER
|
2016-11-28 21:39:43 +01:00
|
|
|
help
|
|
|
|
This option enables the random number generator accelerator (RNGA)
|
2017-01-02 21:24:58 +01:00
|
|
|
driver based on the MCUX RNGA driver.
|
2017-02-28 12:24:43 +01:00
|
|
|
|
2019-10-22 01:04:04 +02:00
|
|
|
config ENTROPY_MCUX_TRNG
|
2017-02-28 12:24:43 +01:00
|
|
|
bool "MCUX TRNG driver"
|
2022-07-22 08:40:12 +02:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_KINETIS_TRNG_ENABLED
|
2017-10-14 01:30:55 +02:00
|
|
|
select ENTROPY_HAS_DRIVER
|
2017-02-28 12:24:43 +01:00
|
|
|
help
|
|
|
|
This option enables the true random number generator (TRNG)
|
|
|
|
driver based on the MCUX TRNG driver.
|
2020-05-04 16:32:31 +02:00
|
|
|
|
|
|
|
config ENTROPY_MCUX_RNG
|
|
|
|
bool "MCUX RNG driver"
|
2022-07-22 08:40:12 +02:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_LPC_RNG_ENABLED
|
2020-05-04 16:32:31 +02:00
|
|
|
select ENTROPY_HAS_DRIVER
|
|
|
|
help
|
|
|
|
This option enables the true random number generator (TRNG)
|
|
|
|
driver based on the MCUX RNG driver on LPC Family.
|
2021-08-03 00:21:16 +02:00
|
|
|
|
2022-08-10 21:22:45 +02:00
|
|
|
config ENTROPY_MCUX_CAAM
|
|
|
|
bool "MCUX CAAM driver"
|
2022-09-27 16:40:11 +02:00
|
|
|
default y
|
2022-08-10 21:22:45 +02:00
|
|
|
depends on DT_HAS_NXP_IMX_CAAM_ENABLED
|
|
|
|
select ENTROPY_HAS_DRIVER
|
2022-09-27 16:40:11 +02:00
|
|
|
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
|
2022-08-10 21:22:45 +02:00
|
|
|
help
|
|
|
|
This option enables the CAAM driver based on the MCUX
|
|
|
|
CAAM driver.
|
|
|
|
|
2021-08-03 00:21:16 +02:00
|
|
|
#
|
|
|
|
# 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
|
2023-01-25 05:49:31 +01:00
|
|
|
|
|
|
|
if ENTROPY_MCUX_CAAM
|
|
|
|
|
|
|
|
config ENTRY_MCUX_CAAM_POOL_SIZE
|
|
|
|
int "CAAM random number pool size"
|
|
|
|
range 4 1024
|
|
|
|
default 256
|
|
|
|
help
|
|
|
|
Buffer length in bytes used to store random bytes generated by
|
|
|
|
CAAM hardware. Please note, that size of the pool must be a
|
|
|
|
power of 2.
|
|
|
|
|
|
|
|
endif # ENTROPY_MCUX_CAAM
|