From 6ed60ce082bf9adbbb5fea9b51ba762607eb36b6 Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Thu, 12 Dec 2024 08:36:13 +0100 Subject: [PATCH] fix blake3_c verification for 32bit --- main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 8cb88edc..4e780a80 100644 --- a/main.cpp +++ b/main.cpp @@ -154,7 +154,12 @@ HashInfo g_hashes[] = #endif // There are certain 32-bit non-Windows machines producing 0x58571F56 as verification value for blake3_c. // That deserves further investigation. -{ blake3c_test, 256, 0x50E4CD91, "blake3_c", "BLAKE3 c", GOOD, {0x6a09e667} }, +#if defined HAVE_BIT32 && !defined _MSC_VER +#define BL3_VF 0x58571F56 +#else +#define BL3_VF 0x50E4CD91 +#endif +{ blake3c_test, 256, BL3_VF, "blake3_c", "BLAKE3 c", GOOD, {0x6a09e667} }, #if defined(HAVE_BLAKE3) { blake3_test, 256, 0x0, "blake3", "BLAKE3 Rust", GOOD, {} }, { blake3_64, 64, 0x0, "blake3_64", "BLAKE3 Rust, low 64 bits", GOOD, {} },