We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b32151b + edc09cf commit 3325070Copy full SHA for 3325070
features/mbedtls/importer/adjust-config.sh
@@ -140,6 +140,12 @@ conf unset MBEDTLS_SSL_TRUNCATED_HMAC
140
141
conf unset MBEDTLS_PLATFORM_TIME_TYPE_MACRO
142
143
+# The default size of MBEDTLS_MPI_MAX_SIZE is 1024 bytes.
144
+# In some cases, this value is set to stack buffers.
145
+# Reduce the maximal MBEDTLS_MPI_MAX_SIZE to 512 bytes,
146
+# which should fit RSA 4096 bit keys.
147
+conf set MBEDTLS_MPI_MAX_SIZE 512
148
+
149
# The following configurations are a needed for Mbed Crypto submodule.
150
# They are related to the persistent key storage feature.
151
conf set MBEDTLS_PSA_CRYPTO_STORAGE_C
0 commit comments