mbedtls/tests
Janos Follath 8faf1d627b Change mbedtls_mpi_cmp_mpi_ct to check less than
The signature of mbedtls_mpi_cmp_mpi_ct() meant to support using it in
place of mbedtls_mpi_cmp_mpi(). This meant full comparison functionality
and a signed result.

To make the function more universal and friendly to constant time
coding, we change the result type to unsigned. Theoretically, we could
encode the comparison result in an unsigned value, but it would be less
intuitive.

Therefore we won't be able to represent the result as unsigned anymore
and the functionality will be constrained to checking if the first
operand is less than the second. This is sufficient to support the
current use case and to check any relationship between MPIs.

The only drawback is that we need to call the function twice when
checking for equality, but this can be optimised later if an when it is
needed.
2020-03-13 15:25:40 +00:00
..
.jenkins Add Jenkinsfile for PR job 2018-10-19 15:25:10 +01:00
configs Add a test component with malloc(0) returning NULL 2020-03-13 12:03:12 +00:00
data_files Use DER encoded keys with tinycrypt 2019-10-30 15:00:01 +02:00
git-scripts Add doxygen.sh script to git hooks 2018-06-27 17:41:00 +03:00
scripts 'make test' must fail if Asan fails 2020-03-13 15:24:20 +00:00
suites Change mbedtls_mpi_cmp_mpi_ct to check less than 2020-03-13 15:25:40 +00:00
.gitignore Move some ignore patterns to subdirectories 2015-01-28 15:33:23 +00:00
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 Add selftest program to the list of tests 2014-04-04 16:33:01 +02:00
Makefile Fix tests to work in Mbed OS test environment 2019-10-24 15:48:47 +03:00
ssl-opt.sh Add test for record compression in ssl-opt.sh 2020-03-09 17:39:04 +00:00