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 Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
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 Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
depends-hashes.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
depends-pkalgs.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
doxygen.sh Add scripts/apidoc_full.sh 2016-01-12 14:48:03 +00:00
gen_ctr_drbg.pl Merge remote-tracking branch 'public/pr/1533' into development 2018-06-27 10:50:58 +01:00
gen_gcm_decrypt.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
gen_gcm_encrypt.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
gen_pkcs1_v21_sign_verify.pl Merge remote-tracking branch 'public/pr/1533' into development 2018-06-27 10:50:58 +01:00
generate_test_code.py Silence pylint 2019-02-27 11:03:25 +01:00
generate-afl-tests.sh Added script to split the test case data files 2016-03-09 19:32:09 +00:00
key-exchanges.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
list-enum-consts.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
list-identifiers.sh Document the scripts behaviour further 2019-04-18 13:09:25 +01:00
list-macros.sh Add test script check-names.sh 2015-04-09 10:53:11 +02:00
list-symbols.sh Fix list-symbols.sh 2015-08-04 17:46:21 +02:00
mbedtls_test.py Silence pylint 2019-02-27 11:03:25 +01:00
recursion.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
run-test-suites.pl Merge remote-tracking branch 'origin/pr/2293' into development 2019-03-05 16:30:37 +00:00
tcp_client.pl Fix FALLBACK_SCSV parsing 2017-05-16 17:53:03 +02:00
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
test-ref-configs.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
travis-log-failure.sh Fixes Travis post-mortem script dump following review 2016-04-10 15:11:27 +01:00