mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
430a4f3968
'mbedtls_pk_psa_rsa_sign_ext' function allocates a buffer of maximum size 5679 bytes (MBEDTLS_PK_RSA_PRV_DER_MAX_BYTES) on the stack to store DER encoded private key. This increased stack usage significantly for RSA signature operations when MBEDTLS_PSA_CRYPTO_C is defined. This issue was discovered when adding support for EAP-TLS 1.3 (rfc9190). Signed-off-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
5 lines
186 B
Plaintext
5 lines
186 B
Plaintext
Changes
|
|
* Use heap memory to allocate DER encoded RSA private key.
|
|
This reduces stack usage significantly for RSA signature
|
|
operations when MBEDTLS_PSA_CRYPTO_C is defined.
|