mbedtls/tests
Gilles Peskine bdc7b8bb6a Allow test assertions on constant-flow scalar data
When testing a function that is supposed to be constant-flow, we declare the
inputs as constant-flow secrets with TEST_CF_SECRET. The result of such a
function is itself a constant-flow secret, so it can't be tested with
comparison operators.

In TEST_EQUAL, TEST_LE_U and TEST_LE_S, declare the values to be compared as
public. This way, test code doesn't need to explicitly declare results as
public if they're only used by one of these macros.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-09-30 18:51:41 +02:00
..
.jenkins Add a Jenkinsfile for PR job testing 2018-10-19 16:41:54 +01:00
configs Remove use_psa_crypto in test scripts 2022-03-22 15:13:35 +08:00
data_files Finalize client side code for psk 2022-09-23 01:48:26 +00:00
docker/bionic Jinja2 prerequisite set up on the docker 2021-12-18 13:29:10 +05:30
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Remove incorrect comment 2022-09-30 18:51:41 +02:00
opt-testcases Fix the description of psk client cases 2022-09-28 07:50:13 +00:00
scripts Merge pull request #6083 from tom-cosgrove-arm/issue-6015-montgomery-multiplication 2022-09-30 10:35:21 +02:00
src Allow test assertions on constant-flow scalar data 2022-09-30 18:51:41 +02:00
suites Merge pull request #6083 from tom-cosgrove-arm/issue-6015-montgomery-multiplication 2022-09-30 10:35:21 +02:00
.gitignore tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
CMakeLists.txt Add test_generation.py dependency in builds 2022-08-25 16:18:22 +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 Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
make-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
Makefile Add test_generation.py dependency in builds 2022-08-25 16:18:22 +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 #6194 from xkqian/tls13_add_psk_client_cases 2022-09-28 17:08:06 +02:00