forked from zephyrproject-rtos/zephyr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig.mcux
78 lines (68 loc) · 2.07 KB
/
Kconfig.mcux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# mcux entropy generator driver configuration
# Copyright (c) 2016 ARM Ltd.
# SPDX-License-Identifier: Apache-2.0
config ENTROPY_MCUX_RNGA
bool "MCUX RNGA driver"
default y
depends on DT_HAS_NXP_KINETIS_RNGA_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the random number generator accelerator (RNGA)
driver based on the MCUX RNGA driver.
config ENTROPY_MCUX_TRNG
bool "MCUX TRNG driver"
default y
depends on DT_HAS_NXP_KINETIS_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the true random number generator (TRNG)
driver based on the MCUX TRNG driver.
config ENTROPY_MCUX_RNG
bool "MCUX RNG driver"
default y
depends on DT_HAS_NXP_LPC_RNG_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the true random number generator (TRNG)
driver based on the MCUX RNG driver on LPC Family.
config ENTROPY_MCUX_CAAM
bool "MCUX CAAM driver"
default y
depends on DT_HAS_NXP_IMX_CAAM_ENABLED
select ENTROPY_HAS_DRIVER
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help
This option enables the CAAM driver based on the MCUX
CAAM driver.
config ENTROPY_MCUX_CSS
bool "MCUX CSS RNG driver"
default y
depends on DT_HAS_NXP_CSS_V2_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the driver for random number generation using
the CSS (Crypto Subsystem).
#
# 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
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