mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
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> |
||
|---|---|---|
| .. | ||
| drivers | ||
| asn1_helpers.c | ||
| certs.c | ||
| fake_external_rng_for_test.c | ||
| helpers.c | ||
| psa_crypto_helpers.c | ||
| psa_exercise_key.c | ||
| random.c | ||
| threading_helpers.c | ||