From ed82716546567583b42419338ffd0448f66a6171 Mon Sep 17 00:00:00 2001 From: Janos Follath Date: Thu, 13 May 2021 14:38:15 +0100 Subject: [PATCH] Remove always false comparison PSA_PAKE_PRIMITIVE Always false comparison triggered compiler warnings. Removing comparison while preserving semantics to achieve clean build. Signed-off-by: Janos Follath --- include/psa/crypto_values.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/psa/crypto_values.h b/include/psa/crypto_values.h index 174a1f1e0d..94616aad72 100644 --- a/include/psa/crypto_values.h +++ b/include/psa/crypto_values.h @@ -2566,7 +2566,7 @@ static inline int mbedtls_svc_key_id_is_null( mbedtls_svc_key_id_t key ) * ::psa_pake_primitive_t. */ #define PSA_PAKE_PRIMITIVE(pake_type, pake_family, pake_bits) \ - (pake_bits > 0xFFFF) ? 0 : \ + ((pake_bits & 0xFFFF) != pake_bits) ? 0 : \ ((psa_pake_primitive_t) (((pake_type) << 24 | \ (pake_family) << 16) | (pake_bits)))