diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-11-16 00:51:32 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-11-16 00:51:32 +0100 |
commit | a69cba98ec19f3ba5d9f2b3866d9c4aaa7a8d459 (patch) | |
tree | 2f0b54bb6606464565ab47c1036a676f00753792 | |
parent | 3a5fe632240786a6ce01d2f5097aa801ddc5f801 (diff) | |
download | VeraCrypt-a69cba98ec19f3ba5d9f2b3866d9c4aaa7a8d459.tar.gz VeraCrypt-a69cba98ec19f3ba5d9f2b3866d9c4aaa7a8d459.zip |
Windows: Fix regression in self-test of hash algorithms that caused them to fail
-rw-r--r-- | src/Common/Tests.c | 4 |
1 files 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) */ |