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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue