mbedtls/tests
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
..
.jenkins
data_files Use DER encoded keys with tinycrypt 2019-10-30 15:00:01 +02:00
git-scripts
scripts Merge remote-tracking branch 'public/pr/2892' into baremetal 2019-10-29 15:30:38 +00:00
suites Return and propagate UECC_FAULT_DETECTED 2019-11-26 12:54:06 +01:00
.gitignore
CMakeLists.txt Add test suite for tinycrypt 2019-09-09 08:19:56 +03:00
compat.sh compat.sh: Introduce env variable for CRTs, CAs and keys 2019-09-04 16:19:49 +01:00
Descriptions.txt
Makefile Fix tests to work in Mbed OS test environment 2019-10-24 15:48:47 +03:00
ssl-opt.sh Adress review comments 2019-10-30 15:08:26 +02:00