mbedtls/tests
Manuel Pégourié-Gonnard 355bbc0e70 Test each failure mode of pk_parse_key_pkcs1_der()
(Only the top-level ones, ie, for each call to eg asn1_get_mpi(), ensure
there's at least one test case that makes this call fail in one way, but don't
test the various ways to make asn1_get_mpi fail - that should be covered
elsewhere.)

- the new checks added by the previous commits needed exercising
- existing tests sometimes had wrong descriptions or where passing for the
  wrong reason (eg with the "length mismatch" test, the function actually
failed before reaching the length check)
- while at it, add tests for the rest as well

The valid minimal-size key was generated with:

openssl genrsa 128 2>/dev/null | openssl rsa -outform der 2>/dev/null | xxd -p
2020-02-18 11:27:08 +01:00
..
.jenkins Add Jenkinsfile for PR job 2018-10-19 15:25:57 +01:00
configs Add a test component with malloc(0) returning NULL 2019-09-30 14:01:37 +02:00
data_files Fix CA encoding issue with gnutls-cli 2020-02-03 15:55:43 +01:00
git-scripts Add doxygen.sh script to git hooks 2018-10-29 10:45:00 +02:00
scripts Test GCC and Clang with common build options 2020-02-03 20:06:31 +01:00
suites Test each failure mode of pk_parse_key_pkcs1_der() 2020-02-18 11:27:08 +01:00
.gitignore
CMakeLists.txt Add a facility to skip running some test suites 2018-12-14 18:50:34 +01:00
compat.sh Exclude DTLS 1.2 only with older OpenSSL 2019-08-13 11:44:30 +02:00
Descriptions.txt
Makefile Merge remote-tracking branch 'origin/pr/2320' into mbedtls-2.7 2019-06-21 15:55:21 +01:00
ssl-opt.sh Merge pull request #3020 from mpg/fix-ssl-opt-gnutls-no-sha1-2.7 2020-02-04 11:19:18 +00:00