mbedtls/tests/suites
Manuel Pégourié-Gonnard 9d6a535ba1 Return and propagate UECC_FAULT_DETECTED
This commit first changes the return convention of EccPoint_mult_safer() so
that it properly reports when faults are detected. Then all functions that
call it need to be changed to (1) follow the same return convention and (2)
properly propagate UECC_FAULT_DETECTED when it occurs.

Here's the reverse call graph from EccPoint_mult_safer() to the rest of the
library (where return values are translated to the MBEDTLS_ERR_ space) and test
functions (where expected return values are asserted explicitly).

EccPoint_mult_safer()
    EccPoint_compute_public_key()
        uECC_compute_public_key()
            pkparse.c
            tests/suites/test_suite_pkparse.function
        uECC_make_key_with_d()
        uECC_make_key()
            ssl_cli.c
            ssl_srv.c
            tests/suites/test_suite_pk.function
            tests/suites/test_suite_tinycrypt.function
    uECC_shared_secret()
        ssl_tls.c
        tests/suites/test_suite_tinycrypt.function
    uECC_sign_with_k()
        uECC_sign()
            pk.c
            tests/suites/test_suite_tinycrypt.function

Note: in uECC_sign_with_k() a test for uECC_vli_isZero(p) is suppressed
because it is redundant with a more thorough test (point validity) done at the
end of EccPoint_mult_safer(). This redundancy was introduced in a previous
commit but not noticed earlier.
2019-11-26 12:54:06 +01:00
..
helpers.function Add rng for the test suites 2019-10-04 12:51:45 +03:00
host_test.function TinyCrypt Test: Initialize TinyCrypt RNG in test suites if enabled 2019-09-04 16:17:25 +01:00
main_test.function Add TEST_ASSUME macro to allow skipping tests at runtime 2019-07-12 15:15:08 +01:00
target_test.function Fix compilation error 2019-09-25 15:04:21 +03:00
test_suite_aes.cbc.data Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_aes.cfb.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_aes.ecb.data Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_aes.function
test_suite_aes.ofb.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_aes.rest.data Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_aes.xts.data Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_arc4.data
test_suite_arc4.function
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 Avoid unused variable warning in ARIA param validation test 2018-12-19 12:51:00 +00:00
test_suite_asn1write.data
test_suite_asn1write.function
test_suite_base64.data
test_suite_base64.function
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 Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_ccm.function Add tests for valid NULL in ccm_free() 2018-12-19 19:02:39 +01:00
test_suite_chacha20.data
test_suite_chacha20.function Test that xxx_free() functions accept NULL parameter 2018-12-18 15:30:30 +00:00
test_suite_chachapoly.data
test_suite_chachapoly.function Test that xxx_free() functions accept NULL parameter 2018-12-18 15:30:30 +00:00
test_suite_cipher.aes.data Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_cipher.arc4.data
test_suite_cipher.blowfish.data
test_suite_cipher.camellia.data
test_suite_cipher.ccm.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03: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
test_suite_cipher.function test: Check empty buffer decryption for chachapoly 2019-06-06 12:04:13 +01:00
test_suite_cipher.gcm.data Update AES 128-bit key test 2019-10-24 09:49:23 +03: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
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
test_suite_ctr_drbg.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_ctr_drbg.function
test_suite_debug.data TinyCrypt Test: Disable CRT print test in test_suite_debug if TC on 2019-09-04 16:17:45 +01:00
test_suite_debug.function Rename MBEDTLS_X509_INFO to !MBEDTLS_X509_REMOVE_INFO 2019-06-18 11:05:44 +01:00
test_suite_des.data
test_suite_des.function
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 Merge remote-tracking branch 'origin/pr/2450' into mbedtls-2.16 2019-06-21 15:59:29 +01:00
test_suite_ecdsa.data Remove unnecessary depends in a test case 2019-09-09 10:21:30 +02:00
test_suite_ecdsa.function Merge branch 'baremetal' into baremetal-2.16-20190909 2019-09-12 09:58:14 +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 Adapt EC-JPAKE test suite to hardcodable hash 2019-09-19 12:07:58 +02:00
test_suite_ecp.data
test_suite_ecp.function Move a restartable ecp context to a conditional compilation block 2019-02-11 07:28:04 -05:00
test_suite_entropy.data
test_suite_entropy.function entropy_nv_seed: cope with SHA-256 2019-07-19 17:43:03 +02:00
test_suite_error.data
test_suite_error.function
test_suite_gcm.aes128_de.data
test_suite_gcm.aes128_en.data
test_suite_gcm.aes192_de.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_gcm.aes192_en.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_gcm.aes256_de.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_gcm.aes256_en.data Add AES 128-bit key dependency to tests 2019-10-24 09:49:23 +03:00
test_suite_gcm.camellia.data
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
test_suite_hkdf.function Remove md_wrap.c and md_internal.h 2019-09-09 09:45:57 +01:00
test_suite_hmac_drbg.function Introduce MD handle type 2019-09-09 09:45:57 +01:00
test_suite_hmac_drbg.misc.data Declare dependencies on !NO_SHA224 in test suites 2019-09-09 10:21:30 +02:00
test_suite_hmac_drbg.no_reseed.data Declare dependencies on !NO_SHA224 in test suites 2019-09-09 10:21:30 +02:00
test_suite_hmac_drbg.nopr.data Declare dependencies on !NO_SHA224 in test suites 2019-09-09 10:21:30 +02:00
test_suite_hmac_drbg.pr.data Declare dependencies on !NO_SHA224 in test suites 2019-09-09 10:21:30 +02:00
test_suite_md.data Declare dependencies on !NO_SHA224 in test suites 2019-09-09 10:21:30 +02:00
test_suite_md.function Disable invalid argument MD test case 2019-09-09 09:45:57 +01:00
test_suite_mdx.data
test_suite_mdx.function
test_suite_memory_buffer_alloc.data
test_suite_memory_buffer_alloc.function
test_suite_mpi.data Add non-regression test for buffer overflow 2019-03-06 13:51:25 +00:00
test_suite_mpi.function Add non-regression test for buffer overflow 2019-03-06 13:51:25 +00:00
test_suite_nist_kw.data
test_suite_nist_kw.function Don't call memset on NULL pointer in NIST KW test suite 2019-07-22 11:15:12 +01:00
test_suite_pem.data Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_pem.function
test_suite_pk.data Use DER encoded keys with tinycrypt 2019-10-30 15:00:01 +02:00
test_suite_pk.function Return and propagate UECC_FAULT_DETECTED 2019-11-26 12:54:06 +01:00
test_suite_pkcs1_v15.data
test_suite_pkcs1_v15.function Merge branch 'mbedtls-2.16' into baremetal-2.16-20191004 2019-10-07 12:44:09 +02:00
test_suite_pkcs1_v21.data
test_suite_pkcs1_v21.function Merge branch 'mbedtls-2.16' into baremetal-2.16-20191004 2019-10-07 12:44:09 +02:00
test_suite_pkcs5.data Declare dependencies on !NO_SHA224 in test suites 2019-09-09 10:21:30 +02:00
test_suite_pkcs5.function Introduce MD handle type 2019-09-09 09:45:57 +01:00
test_suite_pkparse.data Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_pkparse.function Return and propagate UECC_FAULT_DETECTED 2019-11-26 12:54:06 +01:00
test_suite_pkwrite.data Merge branch 'mbedtls-2.16' into baremetal-2.16-20190909 2019-09-10 11:27:14 +02:00
test_suite_pkwrite.function
test_suite_poly1305.data
test_suite_poly1305.function Test that xxx_free() functions accept NULL parameter 2018-12-18 15:30:30 +00:00
test_suite_rsa.data Merge branch 'mbedtls-2.16' into baremetal-2.16-20191004 2019-10-07 12:44:09 +02:00
test_suite_rsa.function Merge branch 'mbedtls-2.16' into baremetal-2.16-20191004 2019-10-07 12:44:09 +02:00
test_suite_shax.data Declare dependencies on !NO_SHA224 in test suites 2019-09-09 10:21:30 +02: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 Tests for AES encypt only 2019-10-24 12:19:43 +03:00
test_suite_ssl.function Merge remote-tracking branch 'origin/pr/654' into baremetal 2019-09-10 14:54:28 +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_tinycrypt.data Use safer return values in uECC_verify() 2019-11-21 15:12:44 +01:00
test_suite_tinycrypt.function Return and propagate UECC_FAULT_DETECTED 2019-11-26 12:54:06 +01:00
test_suite_version.data Bump version to Mbed TLS 2.16.3 2019-09-06 13:27:00 +01:00
test_suite_version.function
test_suite_x509parse_pthread.data Reduce number of parallel workers in X.509 CRT threading test 2019-06-25 09:11:11 +01:00
test_suite_x509parse_pthread.function Changed x509_internal.h methods as static. 2019-09-06 10:03:36 +03:00
test_suite_x509parse.data Merge remote-tracking branch 'origin/pr/609' into baremetal 2019-09-10 14:50:04 +01:00
test_suite_x509parse.function Fix tests to work in Mbed OS test environment 2019-10-24 15:48:47 +03:00
test_suite_x509write.data Fix undeclared dependency on RSA_ALT in tests 2019-09-19 10:45:14 +02:00
test_suite_x509write.function Fix tests to work in Mbed OS test environment 2019-10-24 15:48:47 +03:00
test_suite_xtea.data
test_suite_xtea.function