From b7de164d6251dc066123b59bc15d30c74e920756 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 26 Jul 2015 16:03:14 -0400 Subject: Cut-in CRYPTOPP_ASSERT in all remaining header and source files --- pssr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pssr.cpp') diff --git a/pssr.cpp b/pssr.cpp index 1637ba70..2dbe2b27 100644 --- a/pssr.cpp +++ b/pssr.cpp @@ -49,7 +49,7 @@ void PSSR_MEM_Base::ComputeMessageRepresentative(RandomNumberGenerator &rng, HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty, byte *representative, size_t representativeBitLength) const { - assert(representativeBitLength >= MinRepresentativeBitLength(hashIdentifier.second, hash.DigestSize())); + CRYPTOPP_ASSERT(representativeBitLength >= MinRepresentativeBitLength(hashIdentifier.second, hash.DigestSize())); const size_t u = hashIdentifier.second + 1; const size_t representativeByteLength = BitsToBytes(representativeBitLength); @@ -91,7 +91,7 @@ DecodingResult PSSR_MEM_Base::RecoverMessageFromRepresentative( byte *representative, size_t representativeBitLength, byte *recoverableMessage) const { - assert(representativeBitLength >= MinRepresentativeBitLength(hashIdentifier.second, hash.DigestSize())); + CRYPTOPP_ASSERT(representativeBitLength >= MinRepresentativeBitLength(hashIdentifier.second, hash.DigestSize())); const size_t u = hashIdentifier.second + 1; const size_t representativeByteLength = BitsToBytes(representativeBitLength); -- cgit v1.2.1