From dfeae9e983322ccadb92d96216d0bcc70b3dcb6b Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 21 Sep 2017 02:01:04 -0400 Subject: [PATCH] Guard compile assert for Borland/Embarcadero (GH #512) --- sha3.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sha3.h b/sha3.h index 86dfeed6..abf11f44 100644 --- a/sha3.h +++ b/sha3.h @@ -67,8 +67,10 @@ public: static std::string StaticAlgorithmName() { return "SHA3-" + IntToString(DIGESTSIZE * 8); } unsigned int BlockSize() const { return BLOCKSIZE; } private: +#if !defined(__BORLANDC__) CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE < 200); // ensure there was no underflow in the math CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE > (int)T_DigestSize); // this is a general expectation by HMAC +#endif }; //! \brief SHA3-224 message digest