mbedtls/tests/scripts
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
..
all.sh Add a test for signing content with a long ECDSA key 2019-06-10 11:46:18 +02:00
basic-build-test.sh Adjust DES exclude lists in test scripts 2019-03-01 10:22:04 +01:00
check-doxy-blocks.pl
check-files.py check-files.py: readability improvement in permission check 2019-02-27 11:03:25 +01:00
check-generated-files.sh Add gen_query_config.pl to check-gen-files and bump_version 2019-02-07 10:37:39 +00:00
check-names.sh Remove Yotta support from the docs, tests and build scripts 2018-09-26 17:55:09 +01:00
check-python-files.sh Fix pylint errors going uncaught 2019-02-27 11:03:25 +01:00
curves.pl
depends-hashes.pl
depends-pkalgs.pl
doxygen.sh
gen_ctr_drbg.pl
gen_gcm_decrypt.pl
gen_gcm_encrypt.pl
gen_pkcs1_v21_sign_verify.pl
generate-afl-tests.sh
generate_test_code.py Silence pylint 2019-02-27 11:03:25 +01:00
key-exchanges.pl
list-enum-consts.pl
list-identifiers.sh Document the scripts behaviour further 2019-04-18 13:09:25 +01:00
list-macros.sh
list-symbols.sh
mbedtls_test.py Silence pylint 2019-02-27 11:03:25 +01:00
recursion.pl
run-test-suites.pl Merge remote-tracking branch 'origin/pr/2293' into development 2019-03-05 16:30:37 +00:00
tcp_client.pl
test-ref-configs.pl
test_generate_test_code.py Silence pylint 2019-02-27 11:03:25 +01:00
test_zeroize.gdb Merge remote-tracking branch 'origin/pr/2332' into development 2019-01-30 15:53:00 +00:00
travis-log-failure.sh