mbedtls/tests
Gilles Peskine ca6e8aac58 Support negative zero as MPI test input
The bignum module does not officially support "negative zero" (an
mbedtls_mpi object with s=-1 and all limbs zero). However, we have a
history of bugs where a function that should produce an official
zero (with s=1), produces a negative zero in some circumstances. So it's
good to check that the bignum functions are robust when passed a negative
zero as input. And for that, we need a way to construct a negative zero
from test case arguments.

There are checks that functions don't produce negative zeros as output in
the test suite. Skip those checks if there's a negative zero input: we
don't want functions to _create_ negative zeros, but we don't mind if
they _propagate_ negative zeros.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-11-15 20:47:07 +01:00
..
.jenkins
configs Always enable MBEDTLS_TEST_HOOKS in TLS 1.3-only test configurations 2022-10-29 17:48:20 +02:00
data_files Merge pull request #6454 from valeriosetti/issue4577 2022-11-15 09:39:07 +01:00
docker/bionic removed changed made to the test/bionic/Dockerfile 2022-09-17 22:20:33 +02:00
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Support negative zero as MPI test input 2022-11-15 20:47:07 +01:00
opt-testcases fix various issues 2022-11-09 22:43:31 +08:00
scripts generate_bignum_tests: Enabled BignumModRaw automatic generation 2022-11-10 11:37:33 +00:00
src Support negative zero as MPI test input 2022-11-15 20:47:07 +01:00
suites Support negative zero as MPI test input 2022-11-15 20:47:07 +01:00
.gitignore tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
CMakeLists.txt Add module for bignum_core test generation 2022-10-19 15:20:01 +01:00
compat-in-docker.sh Upgrade gnutls-next to 3.7.2 2021-09-02 17:31:10 +08:00
compat.sh Add comment in compat.sh about callers 2022-04-14 09:21:56 +02:00
context-info.sh Modifies tests in context-info.sh 2021-06-16 16:19:53 +01:00
Descriptions.txt
make-in-docker.sh
Makefile Add module for bignum_core test generation 2022-10-19 15:20:01 +01:00
ssl-opt-in-docker.sh Upgrade gnutls-next to 3.7.2 2021-09-02 17:31:10 +08:00
ssl-opt.sh Merge pull request #6170 from yuhaoth/pr/tls13-cleanup-extensions-parser 2022-11-11 19:00:46 +00:00