summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-10-01 04:42:42 -0400
committerJeffrey Walton <noloader@gmail.com>2016-10-01 04:42:42 -0400
commit395b1634502901f1186d03d715b2b79c36780733 (patch)
tree9df0965b5d722cc33ec31fa2f3dc0d4a40d8101c /sha3.h
parent9b64112a11cf504ea74b25260fa16840f234adb5 (diff)
downloadcryptopp-git-395b1634502901f1186d03d715b2b79c36780733.tar.gz
Fix compile under Visual Studio 2003
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sha3.h b/sha3.h
index 04c23260..23a18fad 100644
--- a/sha3.h
+++ b/sha3.h
@@ -55,11 +55,11 @@ protected:
//! \tparam DigestSize controls the digest size as a template parameter instead of a per-class constant
//! \brief SHA3-X message digest, template for more fine-grained typedefs
//! \since Crypto++ 5.7.0
-template<unsigned int digestSize>
+template<unsigned int T_DigestSize>
class SHA3_Final : public SHA3
{
public:
- CRYPTOPP_CONSTANT(DIGESTSIZE = digestSize)
+ CRYPTOPP_CONSTANT(DIGESTSIZE = T_DigestSize)
CRYPTOPP_CONSTANT(BLOCKSIZE = 200 - 2 * DIGESTSIZE)
//! \brief Construct a SHA3-X message digest
@@ -68,7 +68,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 SHA3_224