mbedtls/tests/suites
Gilles Peskine d8dc8e29c1 x509parse_crl: more negative test cases
Add a few more negative test cases for mbedtls_x509_crl_parse.
The test data is manually adapted from the existing positive test case
"X509 CRL ASN1 (TBSCertList, sig present)" which decomposes as

305c
 3047                                   tbsCertList TBSCertList
  020100                                version INTEGER OPTIONAL
  300d                                  signatureAlgorithm AlgorithmIdentifier
   06092a864886f70d01010e
   0500
  300f                                  issuer Name
   310d300b0603550403130441424344
  170c303930313031303030303030          thisUpdate Time
  3014                                  revokedCertificates
   3012                                 entry 1
    8202abcd                            userCertificate CertificateSerialNumber
    170c303831323331323335393539        revocationDate Time
 300d                                   signatureAlgorithm AlgorithmIdentifier
  06092a864886f70d01010e
  0500
 03020001                               signatureValue BIT STRING

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-08-12 12:50:42 +02:00
..
helpers.function tests: Add mbedtls_test_ prefix to *hexify functions 2020-06-26 09:15:43 +02:00
host_test.function tests: Reformating due to *hexify functions renaming 2020-06-26 09:38:21 +02:00
main_test.function Strict C99: make sure that fileno() is declared 2020-04-28 15:02:50 +02:00
target_test.function tests: Add mbedtls_test_ prefix to *hexify functions 2020-06-26 09:15:43 +02:00
test_suite_aes.cbc.data
test_suite_aes.cfb.data
test_suite_aes.ecb.data
test_suite_aes.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_aes.ofb.data Add test cases for AES OFB block mode 2018-06-11 14:03:22 +01:00
test_suite_aes.rest.data Add param validation for mbedtls_aes_crypt_cbc() 2018-12-18 12:22:40 +01:00
test_suite_aes.xts.data tests: Remove NIST AES-XTS test vectors 2018-06-13 12:13:58 +01:00
test_suite_arc4.data
test_suite_arc4.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_aria.data Move testing of mbedtls_aria_free() to separate test 2018-12-19 12:51:00 +00:00
test_suite_aria.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_asn1write.data
test_suite_asn1write.function Typo fix in test_suite_asn1write.function 2020-03-25 07:48:11 -04:00
test_suite_base64.data
test_suite_base64.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_blowfish.data Move testing of mbedtls_blowfish_free() to separate test case 2018-12-19 12:52:59 +00:00
test_suite_blowfish.function Move testing of mbedtls_blowfish_free() to separate test case 2018-12-19 12:52:59 +00:00
test_suite_camellia.data Move test of mbedtls_camellia_free() to separate test 2018-12-19 12:47:55 +00:00
test_suite_camellia.function Move test of mbedtls_camellia_free() to separate test 2018-12-19 12:47:55 +00:00
test_suite_ccm.data Fix #2370, minor typos and spelling mistakes 2019-02-18 14:50:57 +00:00
test_suite_ccm.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_chacha20.data chacha20: add test for parameter validation 2018-05-24 13:37:31 +02:00
test_suite_chacha20.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_chachapoly.data chachapoly: add test for state flow 2018-05-24 13:37:31 +02:00
test_suite_chachapoly.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_cipher.aes.data test: Check empty buffer decryption for chachapoly 2019-06-06 12:04:13 +01:00
test_suite_cipher.arc4.data Add tests for "return plaintext data faster on unpadded decryption" 2018-03-27 19:25:35 -07:00
test_suite_cipher.blowfish.data Add tests for "return plaintext data faster on unpadded decryption" 2018-03-27 19:25:35 -07:00
test_suite_cipher.camellia.data Add tests for "return plaintext data faster on unpadded decryption" 2018-03-27 19:25:35 -07:00
test_suite_cipher.ccm.data Fix test functions and data after moving hexify/unhexify out 2018-08-06 11:40:57 +01:00
test_suite_cipher.chacha20.data test: Remove redundant 0-byte decryption test 2019-06-06 12:04:13 +01:00
test_suite_cipher.chachapoly.data test: Check empty buffer decryption for chachapoly 2019-06-06 12:04:13 +01:00
test_suite_cipher.des.data Add tests for "return plaintext data faster on unpadded decryption" 2018-03-27 19:25:35 -07:00
test_suite_cipher.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_cipher.gcm.data Add missing dependencies in test_suite_cipher.gcm 2019-01-02 10:48:25 +00:00
test_suite_cipher.misc.data Split the unconditional and conditional parameter validation tests 2018-12-19 18:06:35 +01:00
test_suite_cipher.null.data Add tests for "return plaintext data faster on unpadded decryption" 2018-03-27 19:25:35 -07:00
test_suite_cipher.padding.data Include static cipher functions in the parameter validation scheme 2018-12-19 17:34:13 +01:00
test_suite_cmac.data
test_suite_cmac.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_ctr_drbg.data Refactor test code for CTR DRBG to clarify test functions 2018-08-29 23:38:57 +03:00
test_suite_ctr_drbg.function CTR_DRBG: support set_entropy_len() before seed() 2019-10-23 18:00:03 +02:00
test_suite_debug.data Update certificates to expire in 2029 2019-07-10 18:35:10 +03:00
test_suite_debug.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_des.data
test_suite_des.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_dhm.data Test parameter validation for DHM module 2018-12-18 16:59:09 +00:00
test_suite_dhm.function Minor improvements to DHM module 2018-12-18 16:59:09 +00:00
test_suite_ecdh.data Add test case for ecdh_get_params with mismatching group 2019-02-22 10:24:31 +01:00
test_suite_ecdh.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_ecdsa.data Test parameter validation in ECDSA module 2018-12-18 14:31:50 +00:00
test_suite_ecdsa.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_ecjpake.data Add a test for mlaformed ECJPAKE context 2019-07-08 15:44:37 +02:00
test_suite_ecjpake.function Add a test for mlaformed ECJPAKE context 2019-07-08 15:44:37 +02:00
test_suite_ecp.data Add test cases to check rng failure 2020-05-25 13:55:09 +02:00
test_suite_ecp.function Add test cases to check rng failure 2020-05-25 13:55:09 +02:00
test_suite_entropy.data
test_suite_entropy.function Fix build failure with MBEDTLS_PLATFORM_NV_SEED_ALT 2020-04-28 15:02:50 +02:00
test_suite_error.data
test_suite_error.function Intermediate hexify out change 2018-08-06 11:40:57 +01:00
test_suite_gcm.aes128_de.data Fix test functions and data after moving hexify/unhexify out 2018-08-06 11:40:57 +01:00
test_suite_gcm.aes128_en.data
test_suite_gcm.aes192_de.data Fix test functions and data after moving hexify/unhexify out 2018-08-06 11:40:57 +01:00
test_suite_gcm.aes192_en.data
test_suite_gcm.aes256_de.data Fix test functions and data after moving hexify/unhexify out 2018-08-06 11:40:57 +01:00
test_suite_gcm.aes256_en.data
test_suite_gcm.camellia.data Fix test functions and data after moving hexify/unhexify out 2018-08-06 11:40:57 +01:00
test_suite_gcm.function Add tests for valid NULL in gcm_free() 2018-12-19 17:30:38 +01:00
test_suite_gcm.misc.data Add tests for valid NULL in gcm_free() 2018-12-19 17:30:38 +01:00
test_suite_hkdf.data hkdf: Add negative tests 2018-06-11 13:10:14 +01:00
test_suite_hkdf.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_hmac_drbg.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_hmac_drbg.misc.data
test_suite_hmac_drbg.no_reseed.data
test_suite_hmac_drbg.nopr.data
test_suite_hmac_drbg.pr.data
test_suite_md.data
test_suite_md.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_mdx.data
test_suite_mdx.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_memory_buffer_alloc.data More accurate test case description 2019-11-26 18:44:55 +01:00
test_suite_memory_buffer_alloc.function Enable more test cases without MBEDTLS_MEMORY_DEBUG 2019-11-26 18:45:00 +01:00
test_suite_mpi.data shrink tests: clearer description 2020-02-03 16:21:32 +01:00
test_suite_mpi.function Move test functions from Lilliput to Blefuscu 2020-02-03 16:21:31 +01:00
test_suite_nist_kw.data Enhance nist_kw with some NULL buffers tests 2018-08-13 14:46:45 +03:00
test_suite_nist_kw.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_pem.data
test_suite_pem.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_pk.data Properly test pk_write with an empty output buffer 2018-12-19 17:08:51 +01:00
test_suite_pk.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_pkcs1_v15.data Add tests for PKCS#1 v1.5 decoding 2018-10-08 11:13:21 +02:00
test_suite_pkcs1_v15.function Reduce stack usage of test_suite_pkcs1_v15 2019-09-25 14:53:15 +03:00
test_suite_pkcs1_v21.data rsa: pss: Add no possible salt size tests 2018-09-27 18:23:08 +01:00
test_suite_pkcs1_v21.function Reduce stack usage of test_suite_pkcs1_v21 2019-09-25 14:53:04 +03:00
test_suite_pkcs5.data tests/pkcs5/pbkdf2_hmac: add unit tests for additional SHA algorithms 2018-02-08 17:18:19 +08:00
test_suite_pkcs5.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_pkparse.data Test each failure mode of pk_parse_key_pkcs1_der() 2020-02-18 10:49:06 +01:00
test_suite_pkparse.function Clean up test function pk_parse_key 2020-02-18 10:49:06 +01:00
test_suite_pkwrite.data Fix copypasta in test dependency 2018-11-06 14:38:06 +01:00
test_suite_pkwrite.function Add dependency of pkwrite test suite on pkparse module 2018-10-16 13:46:25 +01:00
test_suite_poly1305.data poly1305: add test for parameter validation 2018-05-24 13:37:31 +02:00
test_suite_poly1305.function tests: Get rid of mbedtls_test_unhexify() in unit test code 2020-06-26 10:19:21 +02:00
test_suite_rsa.data Reduce stack usage of test_suite_rsa 2019-09-25 14:51:19 +03:00
test_suite_rsa.function Fix undeclared deps on MBEDTLS_CTR_DRBG in tests 2020-06-02 12:16:07 +02:00
test_suite_shax.data Merge remote-tracking branch 'public/pr/2271' into development 2018-12-20 12:15:08 +00:00
test_suite_shax.function Merge remote-tracking branch 'public/pr/2271' into development 2018-12-20 12:15:08 +00:00
test_suite_ssl.data Combine hex parameters in a struct 2018-08-06 11:40:57 +01:00
test_suite_ssl.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00
test_suite_timing.data Reduce the timing tests complexity 2019-01-29 13:02:19 +01:00
test_suite_timing.function Correct code formatting in the timing test suites 2019-02-05 10:05:01 +01:00
test_suite_version.data Bump version to Mbed TLS 2.16.7 2020-06-26 12:35:53 +01:00
test_suite_version.function Intermediate hexify out change 2018-08-06 11:40:57 +01:00
test_suite_x509parse.data x509parse_crl: more negative test cases 2020-08-12 12:50:42 +02:00
test_suite_x509parse.function Add test cases exercising successful verification of MD2/MD4/MD5 CRT 2019-06-03 16:20:02 +01:00
test_suite_x509write.data Update certificates to expire in 2029 2019-07-10 18:35:10 +03:00
test_suite_x509write.function Add tests for (named) bitstring to suite_asn1write 2019-02-11 21:23:49 +00:00
test_suite_xtea.data
test_suite_xtea.function Rename HexParam_t -> data_t for consistent coding style 2018-08-06 11:42:06 +01:00