From 395b1634502901f1186d03d715b2b79c36780733 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 1 Oct 2016 04:42:42 -0400 Subject: Fix compile under Visual Studio 2003 --- keccak.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keccak.h') diff --git a/keccak.h b/keccak.h index acdc3f3b..5fd9b6b4 100644 --- a/keccak.h +++ b/keccak.h @@ -70,11 +70,11 @@ protected: //! \tparam DigestSize controls the digest size as a template parameter instead of a per-class constant //! \brief Keccak-X message digest, template for more fine-grained typedefs //! \since Crypto++ 5.7.0 -template +template class Keccak_Final : public Keccak { public: - CRYPTOPP_CONSTANT(DIGESTSIZE = digestSize) + CRYPTOPP_CONSTANT(DIGESTSIZE = T_DigestSize) CRYPTOPP_CONSTANT(BLOCKSIZE = 200 - 2 * DIGESTSIZE) //! \brief Construct a Keccak-X message digest @@ -83,7 +83,7 @@ public: unsigned int BlockSize() const { return BLOCKSIZE; } private: CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE < 200); // ensure there was no underflow in the math - CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE > DIGESTSIZE); // this is a general expectation by HMAC + CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE > T_DigestSize); // this is a general expectation by HMAC }; //! \class Keccak_224 -- cgit v1.2.1