mbedtls: use CSPRNG whenever possible as PSA random source
The main problem of MBEDTLS_PSA_CRYPTO_LEGACY_RNG is that it brings in some legacy modules (entropy + ctr_drbg/hmac_drbg) which means extra ROM/RAM footprint. MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG instead simply calls to the CSPRNG which makes it definitely smaller. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
ac6d834272
commit
08bd9c72bd
12 changed files with 16 additions and 10 deletions
|
@ -4,4 +4,3 @@ CONFIG_MBEDTLS_PSA_CRYPTO_C=y
|
|||
CONFIG_PSA_CRYPTO_ENABLE_ALL=y
|
||||
|
||||
CONFIG_ENTROPY_GENERATOR=y
|
||||
CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG=y
|
||||
|
|
|
@ -4,4 +4,3 @@ CONFIG_MBEDTLS_PSA_CRYPTO_C=y
|
|||
CONFIG_PSA_CRYPTO_ENABLE_ALL=y
|
||||
|
||||
CONFIG_ENTROPY_GENERATOR=y
|
||||
CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue