summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-21 02:01:04 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-21 02:01:04 -0400
commitdfeae9e983322ccadb92d96216d0bcc70b3dcb6b (patch)
treee25b1fb535a33f516364eb62592f8e0f6ca275b2 /sha3.h
parentc6b096ddd44f14a7db19a847af7cdaf65ee89643 (diff)
downloadcryptopp-git-dfeae9e983322ccadb92d96216d0bcc70b3dcb6b.tar.gz
Guard compile assert for Borland/Embarcadero (GH #512)
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h2
1 files changed, 2 insertions, 0 deletions
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