mbedtls/tests
Janos Follath 0e5532d6cf 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.
2019-11-04 10:39:20 +00:00
..
.jenkins
configs Add a test component with malloc(0) returning NULL 2019-09-24 18:28:26 +02:00
data_files Merge 'mbedtls/development' into merge-crypto-development-20190806 2019-08-06 19:09:55 +02:00
docker/bionic Improve compatibility with firewalled networks 2019-06-29 17:45:34 -05:00
git-scripts
scripts 'make test' must fail if Asan fails 2019-10-21 19:17:42 +02:00
suites Change mbedtls_mpi_cmp_mpi_ct to check less than 2019-11-04 10:39:20 +00:00
.gitignore PSA return status coverage script 2019-09-06 19:28:47 +02:00
CMakeLists.txt Add ASN.1 parsing tests 2019-09-11 15:46:44 +02:00
Descriptions.txt
make-in-docker.sh Clean up file prologue comments 2019-06-29 17:45:34 -05:00
Makefile PSA return status coverage script 2019-09-06 19:28:47 +02:00
psa_crypto_helpers.h PSA return status coverage script 2019-09-06 19:28:47 +02:00
psa_helpers.h Move the one non-crypto-specific PSA helper macro to a new header 2019-06-20 12:54:43 +02:00