mbedtls/tf-psa-crypto
Valerio Setti 91577020a2 pkwrite: fix buffer overrun
This commit fixes potential buffer overrun in:
- pk_write_rsa_der
- pk_write_ec_pubkey

In both functions, when dealing with opaque keys, there was no
check that the provided buffer was large enough to contain the
key being exported. This commit fixes this problem and it also
adds some testing in test_suite_pkwrite to trigger these checks.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2024-10-11 14:55:24 +02:00
..
core cmake: tf-psa-crypto: Replace some Mbed TLS options/variables by TF-PSA-Crypto ones 2024-10-01 15:32:01 +02:00
drivers pkwrite: fix buffer overrun 2024-10-11 14:55:24 +02:00
framework Add support to build only the tf-psa-crypto tree 2024-10-01 15:32:01 +02:00
include Introduce PSA_HAVE_ALG_ECDSA_SIGN and PSA_HAVE_ALG_ECDSA_VERIFY 2024-09-09 11:17:36 +01:00
programs Add support to build only the tf-psa-crypto tree 2024-10-01 15:32:01 +02:00
scripts Use scripts/project_name.txt in Python scripts 2024-09-10 10:43:02 +02:00
tests pkwrite: fix buffer overrun 2024-10-11 14:55:24 +02:00
.gitignore
CMakeLists.txt Add support to build only the tf-psa-crypto tree 2024-10-01 15:32:01 +02:00
DartConfiguration.tcl Add support to build only the tf-psa-crypto tree 2024-10-01 15:32:01 +02:00
TF-PSA-Crypto.cmake Add support to build only the tf-psa-crypto tree 2024-10-01 15:32:01 +02:00