From 8bfc0bdce2bf4f53ac2c072e7a44e9a7d3b3cca8 Mon Sep 17 00:00:00 2001 From: Maksym Mamontov Date: Fri, 19 Aug 2022 13:55:28 +0300 Subject: [PATCH] Verbose BLOWFISH_CTX failures. --- tests/test_crypto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_crypto.cpp b/tests/test_crypto.cpp index bf4ecde3..d7040f4e 100644 --- a/tests/test_crypto.cpp +++ b/tests/test_crypto.cpp @@ -22,14 +22,14 @@ bool equalCtx(const BLOWFISH_CTX& a, const BLOWFISH_CTX& b) for (size_t i = 0; i < sizeof(a.P); ++i) if (a.P[i] != b.P[i]) { - //printf("Failed for P at %d: 0%x != 0%x\n", i, a.P[i], b.P[i]); + printf("Failed for P at %ld: 0%x != 0%x\n", i, a.P[i], b.P[i]); return false; } for (size_t i = 0; i < 4; ++i) for (size_t j = 0; j < 256; ++j) if (a.S[i][j] != b.S[i][j]) { - //printf("Failed for S at %d, %d: 0%x != 0%x\n", i, j, a.S[i][j], b.S[i][j]); + printf("Failed for S at %ld, %ld: 0%x != 0%x\n", i, j, a.S[i][j], b.S[i][j]); return false; } -- 2.44.2