Reduce default MBEDTLS_MPI_MAX_SIZE

Reduce the default size of `MBEDTLS_MPI_MAX_SIZE` to 512 bytes,
as the default 1024 consumes much stack, and supporting RSA 4096 bit
may suffice at the moment.
pull/8936/head
Ron Eldor 2018-12-02 15:37:27 +02:00
parent f8e1116019
commit 097996c25a
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ conf unset MBEDTLS_SSL_TRUNCATED_HMAC
conf unset MBEDTLS_PLATFORM_TIME_TYPE_MACRO
conf set MBEDTLS_MPI_MAX_SIZE 512
# The following configurations are a needed for Mbed Crypto submodule.
# They are related to the persistent key storage feature.
conf set MBEDTLS_PSA_CRYPTO_STORAGE_C