diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-12-03 05:05:56 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-12-03 05:05:56 -0500 |
commit | ba75834ae9b3846a19291c8c281626dd0a891779 (patch) | |
tree | 85c0492501a0f44c640120e9cacc740354824a47 /lubyrack.h | |
parent | bded4d385fcb74c517e35bf252ac8c6d60a0599f (diff) | |
download | cryptopp-git-ba75834ae9b3846a19291c8c281626dd0a891779.tar.gz |
Removed VC++ 5.0 and 6.0 workarounds (Issue 342)
Diffstat (limited to 'lubyrack.h')
-rw-r--r-- | lubyrack.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -11,15 +11,10 @@ NAMESPACE_BEGIN(CryptoPP)
-template <class T> struct DigestSizeDoubleWorkaround // VC60 workaround
-{
- CRYPTOPP_CONSTANT(RESULT = 2*T::DIGESTSIZE)
-};
-
//! \class LR_Info
//! \brief Luby-Rackoff block cipher information
template <class T>
-struct LR_Info : public VariableKeyLength<16, 0, 2*(INT_MAX/2), 2>, public FixedBlockSize<DigestSizeDoubleWorkaround<T>::RESULT>
+struct LR_Info : public VariableKeyLength<16, 0, 2*(INT_MAX/2), 2>, public FixedBlockSize<2*T::DIGESTSIZE>
{
static std::string StaticAlgorithmName() {return std::string("LR/")+T::StaticAlgorithmName();}
};
|