mbedtls/tests/suites
Gilles Peskine 7f420faf03 parse_attribute_value_hex_der_encoded: clean up length validation
Separate the fits-in-buffer check (*data_length <= data_size) from the
we-think-it's-a-sensible-size check (*data_length <=
MBEDTLS_X509_MAX_DN_NAME_SIZE).

This requires using an intermediate buffer for the DER data, since its
maximum sensible size has to be larger than the maximum sensible size for
the payload, due to the overhead of the ASN.1 tag+length.

Remove test cases focusing on the DER length since the implementation no
longer has a threshold for it.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2023-09-25 19:59:31 +02:00
..
helpers.function Support different types in the parameter store 2023-04-26 19:40:02 +02:00
host_test.function Support larger integer test arguments: C part 2023-04-26 19:40:02 +02:00
main_test.function Support larger integer test arguments: C part 2023-04-26 19:40:02 +02:00
test_suite_aes.cbc.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_aes.cfb.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_aes.ecb.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_aes.function For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE() 2023-07-21 11:45:25 +01:00
test_suite_aes.ofb.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_aes.rest.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_aes.xts.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_alignment.data Improve parsing of test data 2022-12-01 13:31:20 +00:00
test_suite_alignment.function Merge pull request #7936 from AgathiyanB/assert-false-macro 2023-08-10 15:01:34 +00:00
test_suite_aria.data
test_suite_aria.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_asn1parse.data Deprecate mbedtls_asn1_free_named_data() 2022-11-07 15:42:44 -05:00
test_suite_asn1parse.function For tests, rename TEST_CALLOC_OR_FAIL() to just TEST_CALLOC() 2023-07-21 11:32:25 +01:00
test_suite_asn1write.data Fix copypasta in test data 2022-06-15 21:16:42 +02:00
test_suite_asn1write.function Merge pull request #7936 from AgathiyanB/assert-false-macro 2023-08-10 15:01:34 +00:00
test_suite_base64.data Improve tests for mbedtls_ct_uchar_in_range_if 2023-05-26 12:42:48 +01:00
test_suite_base64.function Revert "Move constant_flow.h into the main library" 2023-07-31 17:22:55 +01:00
test_suite_bignum.function Merge pull request #7578 from daverodgman/safer-ct5 2023-08-10 16:57:39 +00:00
test_suite_bignum.misc.data Remove string hack for mbedtls_mpi_mod_int testing 2023-04-26 19:40:02 +02:00
test_suite_bignum_core.function Merge branch 'development' into safer-ct5 2023-08-07 11:47:35 +01:00
test_suite_bignum_core.misc.data Remove undesirable test 2023-04-25 18:07:29 +01:00
test_suite_bignum_mod.function Remove new bignum when not needed 2023-08-17 14:36:59 +01:00
test_suite_bignum_mod.misc.data bignum: Removed merge scaffolding. 2023-04-05 16:13:11 +01:00
test_suite_bignum_mod_raw.data bignum: Removed merge scaffolding. 2023-04-05 16:13:11 +01:00
test_suite_bignum_mod_raw.function Remove new bignum when not needed 2023-08-17 14:36:59 +01:00
test_suite_bignum_random.data Fix representation of mod-random output 2022-12-20 20:28:02 +01:00
test_suite_bignum_random.function Remove new bignum when not needed 2023-08-17 14:36:59 +01:00
test_suite_camellia.data
test_suite_camellia.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_ccm.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_ccm.function For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE() 2023-07-21 11:45:25 +01:00
test_suite_chacha20.data
test_suite_chacha20.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_chachapoly.data
test_suite_chachapoly.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_cipher.aes.data Add correct dependencies for AES-192/256 cipher tests 2023-09-21 16:22:15 +01:00
test_suite_cipher.aria.data Add more tests to check setting padding mode 2023-09-21 14:04:35 +01:00
test_suite_cipher.camellia.data Add more tests to check setting padding mode 2023-09-21 14:04:35 +01:00
test_suite_cipher.ccm.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_cipher.chacha20.data Modifies data files to match new test function name 2022-02-21 09:57:51 +00:00
test_suite_cipher.chachapoly.data Modifies data files to match new test function name 2022-02-21 09:57:51 +00:00
test_suite_cipher.des.data Add more tests to check setting padding mode 2023-09-21 14:04:35 +01:00
test_suite_cipher.function Add more tests to check setting padding mode 2023-09-21 14:04:35 +01:00
test_suite_cipher.gcm.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_cipher.misc.data
test_suite_cipher.nist_kw.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_cipher.null.data
test_suite_cipher.padding.data
test_suite_cmac.data Merge pull request #1038 from Mbed-TLS/development 2023-07-21 15:40:36 +02:00
test_suite_cmac.function Officially deprecate MBEDTLS_CIPHER_BLKSIZE_MAX 2023-06-14 18:00:37 +02:00
test_suite_common.data Add tests for xor over large blocks 2023-06-07 16:38:26 +01:00
test_suite_common.function Fix unnecessary header prefixes in tests 2023-08-30 15:34:34 +01:00
test_suite_constant_time.data Add mbedtls_ct_error_if, with tests 2023-09-22 09:58:25 +01:00
test_suite_constant_time.function Fix test error 2023-09-22 10:56:13 +01:00
test_suite_constant_time_hmac.data SSL: use MD_CAN macros 2023-03-21 16:29:31 +01:00
test_suite_constant_time_hmac.function Merge branch 'development' into safer-ct5 2023-08-07 11:47:35 +01:00
test_suite_ctr_drbg.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_ctr_drbg.function Fix use of sizeof without brackets 2023-02-02 12:40:50 +00:00
test_suite_debug.data debug: replace occurence of ECP_LIGHT with PK_HAVE_ECC_KEYS 2023-07-10 09:13:57 +02:00
test_suite_debug.function test_suite_debug: fix USE_PSA_INIT/DONE guards in a test 2023-05-17 15:38:34 +02:00
test_suite_des.data
test_suite_des.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_dhm.data test_suite_dhm: Add missing dependencies on MBEDTLS_PEM_PARSE_C 2022-10-11 20:57:21 +02:00
test_suite_dhm.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_ecdh.data
test_suite_ecdh.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_ecdsa.data OID + misc crypto: use MD_CAN and fix failures 2023-03-21 16:28:00 +01:00
test_suite_ecdsa.function Remove hash_info.[ch] 2023-06-06 10:33:54 +02:00
test_suite_ecjpake.data mbedtls_ecp_point_read_binary from compressed fmt 2022-10-03 05:43:27 -04:00
test_suite_ecjpake.function Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
test_suite_ecp.data Merge pull request #7892 from AgathiyanB/fix-coverage-MBEDTLS_ECP_NIST_OPTIM-disabled 2023-08-07 14:37:08 +00:00
test_suite_ecp.function Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
test_suite_entropy.data
test_suite_entropy.function Don't call psa_crypto_init with uninitialized local contexts (entropy) 2023-07-26 18:43:39 +02:00
test_suite_error.data
test_suite_error.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_gcm.aes128_de.data
test_suite_gcm.aes128_en.data Fix missing AES dependencies 2022-10-19 08:35:08 -04:00
test_suite_gcm.aes192_de.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_gcm.aes192_en.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_gcm.aes256_de.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_gcm.aes256_en.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_gcm.camellia.data
test_suite_gcm.function For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE() 2023-07-21 11:45:25 +01:00
test_suite_gcm.misc.data
test_suite_hkdf.data Enable HKDF in driver-only hashes test 2023-03-21 16:42:05 +01:00
test_suite_hkdf.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_hmac_drbg.function Enable HMAC-DRBG in driver-only hashes component 2023-03-21 16:42:05 +01:00
test_suite_hmac_drbg.misc.data Fix test dependencies 2023-06-08 13:48:42 +01:00
test_suite_hmac_drbg.no_reseed.data Enable HMAC-DRBG in driver-only hashes component 2023-03-21 16:42:05 +01:00
test_suite_hmac_drbg.nopr.data Enable HMAC-DRBG in driver-only hashes component 2023-03-21 16:42:05 +01:00
test_suite_hmac_drbg.pr.data Enable HMAC-DRBG in driver-only hashes component 2023-03-21 16:42:05 +01:00
test_suite_lmots.data Fix file names in reproduction instructions in test data 2022-10-13 20:48:15 +02:00
test_suite_lmots.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_lms.data Fix instructions and test data for pyhsslms interop tests 2022-10-13 20:45:05 +02:00
test_suite_lms.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_md.data Fix SHA-3 dependencies in test_suite_md 2023-09-25 10:05:23 +02:00
test_suite_md.function Merge pull request #7839 from daverodgman/psa-sha3 2023-08-30 08:51:36 +00:00
test_suite_md.psa.data Fix dependencies for SHA-3 MD dispatch tests 2023-09-24 09:48:46 +02:00
test_suite_mdx.data
test_suite_mdx.function Fix use of sizeof without brackets 2023-02-02 12:40:50 +00:00
test_suite_memory_buffer_alloc.data
test_suite_memory_buffer_alloc.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_mps.data
test_suite_mps.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_net.data
test_suite_net.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_nist_kw.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_nist_kw.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_oid.data Add OID tests for HMAC-xxx 2023-07-27 16:02:42 +01:00
test_suite_oid.function Add OID tests for HMAC-xxx 2023-07-27 16:02:42 +01:00
test_suite_pem.data tests/test_suite_pem: Augment DES test cases with AES: PEM 2023-07-06 14:21:23 +01:00
test_suite_pem.function Use TEST_EQUAL instead of TEST_ASSERT 2023-05-03 17:47:29 +02:00
test_suite_pk.data Improve naming of mimimum RSA key size generation configurations 2023-07-27 14:50:09 +00:00
test_suite_pk.function Improve naming of mimimum RSA key size generation configurations 2023-07-27 14:50:09 +00:00
test_suite_pkcs1_v15.data RSA: use MD_CAN macros 2023-03-21 16:28:00 +01:00
test_suite_pkcs1_v15.function Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
test_suite_pkcs1_v21.data RSA: use MD_CAN macros 2023-03-21 16:28:00 +01:00
test_suite_pkcs1_v21.function For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE() 2023-07-21 11:45:25 +01:00
test_suite_pkcs5.data Improve mbedtls_pkcs5_pbes2_ext function test data 2023-08-29 14:55:03 +01:00
test_suite_pkcs5.function Switch pkparse to use new mbedtls_pkcs5_pbes2_ext function 2023-09-20 19:28:28 +01:00
test_suite_pkcs7.data X.509: use MD_CAN macros 2023-03-21 16:28:00 +01:00
test_suite_pkcs7.function Prevent potential use of uninitialised data in pkcs7 tests 2023-09-12 11:58:21 +01:00
test_suite_pkcs12.data Add new mbedtls_pkcs12_pbe_ext function to replace old function 2023-09-08 16:51:26 +01:00
test_suite_pkcs12.function Switch pkparse to use new mbedtls_pkcs12_pbe_ext function 2023-09-20 19:29:02 +01:00
test_suite_pkparse.data Add PKCS5/12 dependecies to pkparse tests 2023-09-21 08:45:56 +01:00
test_suite_pkparse.function Improve pkparse test dependencies and changelog 2023-09-21 15:21:10 +01:00
test_suite_pkwrite.data Fix incorrect test dependencies in pkwrite tests 2023-09-07 17:43:12 +01:00
test_suite_pkwrite.function Fix incorrect use of mbedtls_platform_zeroize() in tests 2023-09-02 19:22:45 +01:00
test_suite_platform.data Move the overallocation test to test suites 2023-06-27 09:26:08 -04:00
test_suite_platform.function Add a dummy usage of a pointer in tests 2023-07-03 10:42:27 -04:00
test_suite_platform_printf.data Add test cases with a question mark 2023-04-26 19:50:57 +02:00
test_suite_platform_printf.function For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE() 2023-07-21 11:45:25 +01:00
test_suite_platform_util.data Add tests that cover msan explicit_bzero issue 2023-03-16 12:02:15 +00:00
test_suite_platform_util.function Add explanatory comment 2023-03-16 13:43:32 +00:00
test_suite_poly1305.data
test_suite_poly1305.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_psa_crypto.data Merge pull request #8092 from silabs-Kusumit/PBKDF2_output_key 2023-09-22 18:01:06 +00:00
test_suite_psa_crypto.function Merge pull request #8092 from silabs-Kusumit/PBKDF2_output_key 2023-09-22 18:01:06 +00:00
test_suite_psa_crypto.pbkdf2.data Modify test description 2023-08-18 12:49:07 +05:30
test_suite_psa_crypto_attributes.data
test_suite_psa_crypto_attributes.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_psa_crypto_driver_wrappers.data test: replace RSA_KEY_PAIR_LEGACY with proper symbols 2023-07-11 14:06:00 +02:00
test_suite_psa_crypto_driver_wrappers.function Merge pull request #7936 from AgathiyanB/assert-false-macro 2023-08-10 15:01:34 +00:00
test_suite_psa_crypto_entropy.data test: replace RSA_KEY_PAIR_LEGACY with proper symbols 2023-07-11 14:06:00 +02:00
test_suite_psa_crypto_entropy.function Merge pull request #6253 from tom-cosgrove-arm/rename-assert_compare-to-test_assert_compare 2023-08-04 13:45:10 +00:00
test_suite_psa_crypto_generate_key.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_psa_crypto_hash.data Fix error in test vectors 2023-07-28 16:44:18 +01:00
test_suite_psa_crypto_hash.function Merge pull request #7839 from daverodgman/psa-sha3 2023-08-30 08:51:36 +00:00
test_suite_psa_crypto_init.data MBEDTLS_PSA_INJECT_ENTROPY: Skip incompatible tests 2023-04-28 23:45:36 +02:00
test_suite_psa_crypto_init.function For tests, rename TEST_CALLOC_OR_FAIL() to just TEST_CALLOC() 2023-07-21 11:32:25 +01:00
test_suite_psa_crypto_low_hash.function Remove dead code 2023-08-22 09:59:50 +02:00
test_suite_psa_crypto_metadata.data Merge pull request #7839 from daverodgman/psa-sha3 2023-08-30 08:51:36 +00:00
test_suite_psa_crypto_metadata.function Minor adaptations after ffdh was enabled for tls1.3 2023-07-05 09:12:08 +02:00
test_suite_psa_crypto_not_supported.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_psa_crypto_not_supported.misc.data
test_suite_psa_crypto_op_fail.function test: properly size output buffer in key_agreement_fail() 2023-07-31 11:35:48 +02:00
test_suite_psa_crypto_op_fail.misc.data test: replace RSA_KEY_PAIR_LEGACY with proper symbols 2023-07-11 14:06:00 +02:00
test_suite_psa_crypto_pake.data test: replace ECC_KEY_PAIR_LEGACY with DERIVE 2023-06-30 10:16:21 +02:00
test_suite_psa_crypto_pake.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_psa_crypto_persistent_key.data test: replace RSA_KEY_PAIR_LEGACY with proper symbols 2023-07-11 14:06:00 +02:00
test_suite_psa_crypto_persistent_key.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_psa_crypto_se_driver_hal.data Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_psa_crypto_se_driver_hal.function Merge pull request #7936 from AgathiyanB/assert-false-macro 2023-08-10 15:01:34 +00:00
test_suite_psa_crypto_se_driver_hal_mocks.data
test_suite_psa_crypto_se_driver_hal_mocks.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_psa_crypto_slot_management.data lib/test: replace BASIC_IMPORT_EXPORT internal symbol with BASIC,IMPORT,EXPORT 2023-06-30 10:16:22 +02:00
test_suite_psa_crypto_slot_management.function Merge pull request #7936 from AgathiyanB/assert-false-macro 2023-08-10 15:01:34 +00:00
test_suite_psa_crypto_storage_format.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_psa_crypto_storage_format.misc.data
test_suite_psa_its.data BUGFIX: PSA test vectors use UID 1 instead of 0. 2022-02-08 15:19:26 +01:00
test_suite_psa_its.function Fix unnecessary header prefixes in tests 2023-08-30 15:34:34 +01:00
test_suite_random.data Fix instances of old feature macros being used 2023-03-24 10:43:40 +01:00
test_suite_random.function Merge pull request #6253 from tom-cosgrove-arm/rename-assert_compare-to-test_assert_compare 2023-08-04 13:45:10 +00:00
test_suite_rsa.data Improve naming of mimimum RSA key size generation configurations 2023-07-27 14:50:09 +00:00
test_suite_rsa.function Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
test_suite_shax.data Add tests for invalid paramters 2023-06-07 17:06:35 +01:00
test_suite_shax.function Ensure mbedtls_sha3_finish zeroizes the context 2023-08-30 18:43:23 +01:00
test_suite_ssl.data Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
test_suite_ssl.function Merge remote-tracking branch 'upstream-public/development' into development-restricted-merge-20230925 2023-09-25 16:16:26 +02:00
test_suite_ssl_decrypt.function Test mbedtls_ssl_decrypt_buf(): stream cipher, negative cases 2023-09-18 19:07:50 +02:00
test_suite_ssl_decrypt.misc.data Test mbedtls_ssl_decrypt_buf(): stream cipher, negative cases 2023-09-18 19:07:50 +02:00
test_suite_timing.data Remove the dependency on MBEDTLS_HAVE_TIME from MBEDTLS_TIMING_C 2022-04-08 04:41:42 -04:00
test_suite_timing.function Whitespace fix 2023-03-31 18:04:34 +01:00
test_suite_version.data Bump version to 3.4.1 2023-08-02 12:50:23 +02:00
test_suite_version.function Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
test_suite_x509parse.data Add test for non ascii x509 subject name 2023-08-22 10:39:56 +01:00
test_suite_x509parse.function Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
test_suite_x509write.data parse_attribute_value_hex_der_encoded: clean up length validation 2023-09-25 19:59:31 +02:00
test_suite_x509write.function Add may-fail mode to mbedtls_x509_string_to_names output tests 2023-09-25 19:59:31 +02:00