Valerio Setti 5f1c8a720f 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-14 10:37:00 +02:00
..
.jenkins
configs Header updates 2023-11-03 12:21:36 +00:00
docker/bionic Header updates 2023-11-03 12:21:36 +00:00
git-scripts Header updates 2023-11-03 12:21:36 +00:00
include Don't call psa_crypto_init in unit tests when not required for TLS 1.3 2024-08-25 10:44:39 +02:00
opt-testcases Improve debug logs 2024-08-28 10:42:01 +02:00
scripts Merge pull request #9240 from gilles-peskine-arm/psa-keystore-dynamic-3.6 2024-08-22 12:53:32 +00:00
src Add generated files 2024-08-28 20:56:16 +01:00
suites pkwrite: fix buffer overrun 2024-10-14 10:37:00 +02:00
.gitignore Add generated files 2024-08-28 20:56:16 +01:00
CMakeLists.txt tests: CMake: Align/fix config test suite generation 2024-07-23 07:51:10 +02:00
compat-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
compat.sh Replace data_files path with variable in compat.sh 2024-07-08 15:36:48 +01:00
context-info.sh Update directory-climbing path in context-info.sh 2024-07-08 15:36:48 +01:00
Descriptions.txt
make-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
Makefile Don't clean test_keys.h and test_certs.h 2024-08-28 20:56:16 +01:00
ssl-opt-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
ssl-opt.sh Merge remote-tracking branch 'mbedtls-3.6' into mbedtls-3.6-restricted 2024-08-23 11:15:11 +02:00