diff options
Diffstat (limited to 'lubyrack.h')
-rw-r--r-- | lubyrack.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -10,11 +10,14 @@ NAMESPACE_BEGIN(CryptoPP) -template <class T> struct DigestSizeDoubleWorkaround {enum {RESULT = 2*T::DIGESTSIZE};}; // VC60 workaround +template <class T> struct DigestSizeDoubleWorkaround // VC60 workaround +{ + CRYPTOPP_CONSTANT(RESULT = 2*T::DIGESTSIZE) +}; //! algorithm info template <class T> -struct LR_Info : public VariableKeyLength<16, 0, 2*(UINT_MAX/2), 2>, public FixedBlockSize<DigestSizeDoubleWorkaround<T>::RESULT> +struct LR_Info : public VariableKeyLength<16, 0, 2*(INT_MAX/2), 2>, public FixedBlockSize<DigestSizeDoubleWorkaround<T>::RESULT> { static std::string StaticAlgorithmName() {return std::string("LR/")+T::StaticAlgorithmName();} }; @@ -38,7 +41,7 @@ class LR : public LR_Info<T>, public BlockCipherDocumentation } protected: - enum {S=T::DIGESTSIZE}; + CRYPTOPP_CONSTANT(S=T::DIGESTSIZE) unsigned int L; // key length / 2 SecByteBlock key; |