mbedtls/tests
k-stachowiak c1955559ad Add a test for signing content with a long ECDSA key
Due to the way the current PK API works, it may have not been clear
for the library clients, how big output buffers they should pass
to the signing functions. Depending on the key type they depend on
MPI or EC specific compile-time constants.

Inside the library, there were places, where it was assumed that
the MPI size will always be enough, even for ECDSA signatures.
However, for very small sizes of the MBEDTLS_MPI_MAX_SIZE and
sufficiently large key, the EC signature could exceed the MPI size
and cause a stack overflow.

This test establishes both conditions -- small MPI size and the use
of a long ECDSA key -- and attempts to sign an arbitrary file.
This can cause a stack overvlow if the signature buffers are not
big enough, therefore the test is performed for an ASan build.
2019-06-10 11:46:18 +02:00
..
.jenkins Add Jenkinsfile for PR job 2018-10-19 15:25:10 +01:00
data_files Add a test for signing content with a long ECDSA key 2019-06-10 11:46:18 +02:00
git-scripts Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
scripts Add a test for signing content with a long ECDSA key 2019-06-10 11:46:18 +02:00
suites Merge remote-tracking branch 'origin/pr/2530' into development 2019-05-20 18:02:25 +01:00
.gitignore
CMakeLists.txt Fix a rebase error 2019-04-04 07:59:41 -07:00
compat.sh Adjust DES exclude lists in test scripts 2019-03-01 10:22:04 +01:00
Descriptions.txt
Makefile Merge remote-tracking branch 'origin/pr/2531' into development 2019-03-27 16:52:08 +00:00
ssl-opt.sh Add test for export keys functionality 2019-05-15 13:57:39 +03:00