aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Peskine <Gilles.Peskine@arm.com>2020-08-26 12:14:37 +0200
committerGilles Peskine <Gilles.Peskine@arm.com>2020-08-26 12:14:37 +0200
commita2e518daf51de2cb548786b37a7d6e55ac8ffd67 (patch)
treef5af6f54b99515c3af679fbf76788f6f0dcf1b7f
parented9fbc6443caf4b357145d362075321082be1641 (diff)
downloadmbed-tls-a2e518daf51de2cb548786b37a7d6e55ac8ffd67.tar.gz
Fix the documentation of has_even_parity
The documentation had the boolean meaning of the return value inverted. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
-rw-r--r--tests/suites/test_suite_psa_crypto_metadata.function2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/suites/test_suite_psa_crypto_metadata.function b/tests/suites/test_suite_psa_crypto_metadata.function
index 2c069835a..7c0929e29 100644
--- a/tests/suites/test_suite_psa_crypto_metadata.function
+++ b/tests/suites/test_suite_psa_crypto_metadata.function
@@ -67,7 +67,7 @@
*
* The expected parity is even so that 0 is considered a valid encoding.
*
- * Return 0 if value has even parity and a nonzero value otherwise. */
+ * Return a nonzero value if value has even parity and 0 otherwise. */
int has_even_parity( uint32_t value )
{
value ^= value >> 16;