mbedtls/tests/suites
Paul Elliott 45b6e5e69f Prevent potential use of uninitialised data in pkcs7 tests
Move the initialisation of the pkcs7 object to before the first possible
test failure, otherwise failure in those tests could result in an
uninitialised pointer being free'd. Found by coverity.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2023-09-12 11:58:21 +01: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 AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_cipher.aria.data Fix missing padding dependencies 2022-10-19 08:35:08 -04:00
test_suite_cipher.camellia.data Fix missing padding dependencies 2022-10-19 08:35:08 -04: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 Fix missing padding dependencies 2022-10-19 08:35:08 -04:00
test_suite_cipher.function For tests, rename TEST_BUFFERS_EQUAL() to TEST_MEMORY_COMPARE() 2023-07-21 11:45:25 +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 Add AES 128-bit key dependency for tests data 2023-05-05 11:21:30 +08:00
test_suite_cmac.function Switch to the new code style 2023-01-11 14:50:10 +01: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 Improve tests for mbedtls_ct_uchar_in_range_if 2023-05-26 12:42:48 +01:00
test_suite_constant_time.function Document and test mbedtls_ct_size_if_else_0 2023-08-10 12:18: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 Merge pull request #7857 from minosgalanakis/bugifx/address_curve_bits 2023-08-31 13:14:11 +00:00
test_suite_entropy.data
test_suite_entropy.function MBEDTLS_PSA_INJECT_ENTROPY: Skip incompatible tests 2023-04-28 23:45:36 +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 Fix PSA AEAD GCM's update output buffer length verification. 2021-10-04 13:54:55 +02:00
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 Actually run MD<->PSA test, and fix it 2023-06-28 09:42:04 +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 Add tests for MBEDTLS_MD_SHA3_xxx_VIA_PSA 2023-07-05 19:55:15 +01: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 PKCS5: use MD_CAN macros 2023-03-21 16:28:00 +01:00
test_suite_pkcs5.function Remove legacy_or_psa.h 2023-03-21 16:29:31 +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 PKCS12: use MD_CAN macros 2023-03-21 16:28:00 +01:00
test_suite_pkcs12.function Fix code style 2023-07-27 14:17:27 +01:00
test_suite_pkparse.data Update more test dependencies when using test-ca.key 2023-08-03 12:02:14 +02:00
test_suite_pkparse.function test: remove BIGNUM dependencies from pk[parse/write] suites 2023-08-10 06:43:23 +02: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 #7818 from silabs-Kusumit/PBKDF2_cmac_implementation 2023-08-17 11:15:16 +00:00
test_suite_psa_crypto.function Merge pull request #7936 from AgathiyanB/assert-false-macro 2023-08-10 15:01:34 +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 Remove obsolete MBEDTLS_xxx dependencies 2021-07-13 17:12:53 +02:00
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 tls: replace occurencies of ECP_LIGHT with PK_HAVE_ECC_KEYS 2023-07-10 09:13:57 +02:00
test_suite_ssl.function Revert "Move constant_flow.h into the main library" 2023-07-31 17:22:55 +01: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 Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_x509parse.data Merge pull request #7788 from marekjansta/fix-x509-ec-algorithm-identifier 2023-08-07 19:14:54 +00:00
test_suite_x509parse.function Merge pull request #8095 from davidhorstmann-arm/initialize-struct-get-other-name 2023-08-31 16:26:00 +00:00
test_suite_x509write.data Update test dependencies when using test-ca.key 2023-08-02 16:38:21 +02:00
test_suite_x509write.function Merge pull request #7898 from AndrzejKurek/csr-rfc822-dn 2023-08-16 09:19:46 +00:00