summaryrefslogtreecommitdiff
path: root/pssr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pssr.cpp')
-rw-r--r--pssr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pssr.cpp b/pssr.cpp
index c11cab5e..ccbe4ee2 100644
--- a/pssr.cpp
+++ b/pssr.cpp
@@ -102,7 +102,7 @@ DecodingResult PSSR_MEM_Base::RecoverMessageFromRepresentative(
size_t &recoverableMessageLength = result.messageLength;
valid = (representative[representativeByteLength - 1] == (hashIdentifier.second ? 0xcc : 0xbc)) && valid;
- valid = (memcmp(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second) == 0) && valid;
+ valid = VerifyBufsEqual(representative + representativeByteLength - u, hashIdentifier.first, hashIdentifier.second) && valid;
GetMGF().GenerateAndMask(hash, representative, representativeByteLength - u - digestSize, h, digestSize);
if (representativeBitLength % 8 != 0)