Skip to content

Commit 097996c

Browse files
Ron EldorRon Eldor
authored andcommitted
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.
1 parent f8e1116 commit 097996c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/mbedtls/importer/adjust-config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ conf unset MBEDTLS_SSL_TRUNCATED_HMAC
140140

141141
conf unset MBEDTLS_PLATFORM_TIME_TYPE_MACRO
142142

143+
conf set MBEDTLS_MPI_MAX_SIZE 512
144+
143145
# The following configurations are a needed for Mbed Crypto submodule.
144146
# They are related to the persistent key storage feature.
145147
conf set MBEDTLS_PSA_CRYPTO_STORAGE_C

0 commit comments

Comments
 (0)