From a69cba98ec19f3ba5d9f2b3866d9c4aaa7a8d459 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 16 Nov 2024 00:51:32 +0100 Subject: [PATCH] Windows: Fix regression in self-test of hash algorithms that caused them to fail --- src/Common/Tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/Tests.c b/src/Common/Tests.c index 8f851f62..fee80f89 100644 --- a/src/Common/Tests.c +++ b/src/Common/Tests.c @@ -1672,7 +1672,7 @@ BOOL test_pkcs5 () return FALSE; /* Blake2s hash tests */ - if (RunHashTest (Blake2sHash, Blake2sTestVectors)) + if (RunHashTest (Blake2sHash, Blake2sTestVectors) == FALSE) return FALSE; /* HMAC-Whirlpool tests */ @@ -1684,7 +1684,7 @@ BOOL test_pkcs5 () return FALSE; /* STREEBOG hash tests */ - if (RunHashTest (StreebogHash, Streebog512TestVectors)) + if (RunHashTest (StreebogHash, Streebog512TestVectors) == FALSE) return FALSE; #endif /* PKCS-5 test 1 with HMAC-SHA-256 used as the PRF (https://tools.ietf.org/html/draft-josefsson-scrypt-kdf-00) */