2019-11-01 20:45:29 +08:00
|
|
|
# mcux entropy generator driver configuration
|
|
|
|
|
2016-11-29 04:39:43 +08:00
|
|
|
# Copyright (c) 2016 ARM Ltd.
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-11-29 04:39:43 +08:00
|
|
|
|
2019-10-22 07:04:04 +08:00
|
|
|
config ENTROPY_MCUX_RNGA
|
2017-02-27 22:45:08 +08:00
|
|
|
bool "MCUX RNGA driver"
|
2022-07-22 14:40:12 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_KINETIS_RNGA_ENABLED
|
2017-10-14 07:30:55 +08:00
|
|
|
select ENTROPY_HAS_DRIVER
|
2016-11-29 04:39:43 +08:00
|
|
|
help
|
|
|
|
This option enables the random number generator accelerator (RNGA)
|
2017-01-03 04:24:58 +08:00
|
|
|
driver based on the MCUX RNGA driver.
|
2017-02-28 19:24:43 +08:00
|
|
|
|
2019-10-22 07:04:04 +08:00
|
|
|
config ENTROPY_MCUX_TRNG
|
2017-02-28 19:24:43 +08:00
|
|
|
bool "MCUX TRNG driver"
|
2022-07-22 14:40:12 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_KINETIS_TRNG_ENABLED
|
2017-10-14 07:30:55 +08:00
|
|
|
select ENTROPY_HAS_DRIVER
|
2017-02-28 19:24:43 +08:00
|
|
|
help
|
|
|
|
This option enables the true random number generator (TRNG)
|
|
|
|
driver based on the MCUX TRNG driver.
|
2020-05-04 22:32:31 +08:00
|
|
|
|
|
|
|
config ENTROPY_MCUX_RNG
|
|
|
|
bool "MCUX RNG driver"
|
2022-07-22 14:40:12 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_LPC_RNG_ENABLED
|
2020-05-04 22:32:31 +08: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 06:21:16 +08:00
|
|
|
|
2022-08-11 03:22:45 +08:00
|
|
|
config ENTROPY_MCUX_CAAM
|
|
|
|
bool "MCUX CAAM driver"
|
2022-09-27 22:40:11 +08:00
|
|
|
default y
|
2022-08-11 03:22:45 +08:00
|
|
|
depends on DT_HAS_NXP_IMX_CAAM_ENABLED
|
|
|
|
select ENTROPY_HAS_DRIVER
|
2022-09-27 22:40:11 +08:00
|
|
|
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
|
2022-08-11 03:22:45 +08:00
|
|
|
help
|
|
|
|
This option enables the CAAM driver based on the MCUX
|
|
|
|
CAAM driver.
|
|
|
|
|
2021-08-03 06:21:16 +08: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 12:49:31 +08: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
|