diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-09-21 02:01:04 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-21 02:01:04 -0400 |
commit | dfeae9e983322ccadb92d96216d0bcc70b3dcb6b (patch) | |
tree | e25b1fb535a33f516364eb62592f8e0f6ca275b2 /sha3.h | |
parent | c6b096ddd44f14a7db19a847af7cdaf65ee89643 (diff) | |
download | cryptopp-git-dfeae9e983322ccadb92d96216d0bcc70b3dcb6b.tar.gz |
Guard compile assert for Borland/Embarcadero (GH #512)
Diffstat (limited to 'sha3.h')
-rw-r--r-- | sha3.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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
|