Windows: Fix regression in self-test of hash algorithms that caused them to fail

This commit is contained in:
Mounir IDRASSI 2024-11-16 00:51:32 +01:00
parent 3a5fe63224
commit a69cba98ec
No known key found for this signature in database
GPG Key ID: FC1B00364B3FE937

View File

@ -1672,7 +1672,7 @@ BOOL test_pkcs5 ()
return FALSE; return FALSE;
/* Blake2s hash tests */ /* Blake2s hash tests */
if (RunHashTest (Blake2sHash, Blake2sTestVectors)) if (RunHashTest (Blake2sHash, Blake2sTestVectors) == FALSE)
return FALSE; return FALSE;
/* HMAC-Whirlpool tests */ /* HMAC-Whirlpool tests */
@ -1684,7 +1684,7 @@ BOOL test_pkcs5 ()
return FALSE; return FALSE;
/* STREEBOG hash tests */ /* STREEBOG hash tests */
if (RunHashTest (StreebogHash, Streebog512TestVectors)) if (RunHashTest (StreebogHash, Streebog512TestVectors) == FALSE)
return FALSE; return FALSE;
#endif #endif
/* PKCS-5 test 1 with HMAC-SHA-256 used as the PRF (https://tools.ietf.org/html/draft-josefsson-scrypt-kdf-00) */ /* PKCS-5 test 1 with HMAC-SHA-256 used as the PRF (https://tools.ietf.org/html/draft-josefsson-scrypt-kdf-00) */