mbedtls: MBEDTLS_ENTROPY_POLL_ZEPHYR default on if MBEDTLS_ENTROPY_C
As long as MBEDTLS_ENTROPY_C is enabled, Mbed TLS needs to poll some entropy source to gather data that will then be processed by CTR/HMAC-DRBG modules. This means that in most of the cases, once MBEDTLS_ENTROPY_C is enabled then also MBEDTLS_ENTROPY_POLL_ZEPHYR needs to be enabled. This was done manually until now, as the long list of samples/tests demonstrate. This commit solves this dependency by defaulting MBEDTLS_ENTROPY_POLL_ZEPHYR to on as soon as MBEDTLS_ENTROPY_C is set. As a consequence, all manual enablement of MBEDTLS_ENTROPY_POLL_ZEPHYR in samples/tests are removed. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
08bd9c72bd
commit
516886be1b
12 changed files with 2 additions and 10 deletions
|
@ -13,7 +13,6 @@ CONFIG_MBEDTLS=y
|
|||
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
||||
CONFIG_MBEDTLS_HEAP_SIZE=2048
|
||||
CONFIG_MBEDTLS_ENTROPY_C=y
|
||||
CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR=y
|
||||
|
||||
# PSA Crypto options
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_MAIN_STACK_SIZE=2048
|
|||
CONFIG_MBEDTLS=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_TIMER_RANDOM_GENERATOR=y
|
||||
CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR=y
|
||||
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
|
||||
|
||||
CONFIG_SECURE_STORAGE=y
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
CONFIG_MBEDTLS=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_TIMER_RANDOM_GENERATOR=y
|
||||
CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR=y
|
||||
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
|
||||
|
||||
# SETTINGS_MAX_VAL_LEN (256) - flags (1) - CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD (28)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
CONFIG_FLASH_AREA_CHECK_INTEGRITY_PSA=y
|
||||
CONFIG_MBEDTLS=y
|
||||
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue