mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8936 from RonEld/reduce_default_mpi_max_size
Reduce default MBEDTLS_MPI_MAX_SIZEpull/9050/head
commit
3325070701
|
@ -140,6 +140,12 @@ conf unset MBEDTLS_SSL_TRUNCATED_HMAC
|
|||
|
||||
conf unset MBEDTLS_PLATFORM_TIME_TYPE_MACRO
|
||||
|
||||
# The default size of MBEDTLS_MPI_MAX_SIZE is 1024 bytes.
|
||||
# In some cases, this value is set to stack buffers.
|
||||
# Reduce the maximal MBEDTLS_MPI_MAX_SIZE to 512 bytes,
|
||||
# which should fit RSA 4096 bit keys.
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue