Skip to content

Commit

Permalink
fix blake3_c verification for 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Dec 12, 2024
1 parent 9f5cd45 commit 6ed60ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, {} },
Expand Down

0 comments on commit 6ed60ce

Please sign in to comment.