From 7c32afc0c2a23e39ea7fe3dce9c718c77f758bb7 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 19 Nov 2002 20:44:40 +0000 Subject: fixed to compile with Intel compiler git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@17 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- seckey.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'seckey.h') diff --git a/seckey.h b/seckey.h index aa85d14..36ecd36 100644 --- a/seckey.h +++ b/seckey.h @@ -101,7 +101,7 @@ public: if (n < (unsigned int)MIN_KEYLENGTH) return MIN_KEYLENGTH; else if (n > (unsigned int)MAX_KEYLENGTH) - return MAX_KEYLENGTH; + return (unsigned int)MAX_KEYLENGTH; else { n += KEYLENGTH_MULTIPLE-1; @@ -143,7 +143,7 @@ class SimpleKeyingInterfaceImpl : public BASE { public: unsigned int MinKeyLength() const {return INFO::MIN_KEYLENGTH;} - unsigned int MaxKeyLength() const {return INFO::MAX_KEYLENGTH;} + unsigned int MaxKeyLength() const {return (unsigned int)INFO::MAX_KEYLENGTH;} unsigned int DefaultKeyLength() const {return INFO::DEFAULT_KEYLENGTH;} unsigned int GetValidKeyLength(unsigned int n) const {return INFO::StaticGetValidKeyLength(n);} typename BASE::IV_Requirement IVRequirement() const {return (typename BASE::IV_Requirement)INFO::IV_REQUIREMENT;} @@ -179,7 +179,7 @@ public: CheckedSetKey(this, DIR, key, length, param); } - Clonable * Clone() {return new BlockCipherTemplate(*this);} + Clonable * Clone() const {return new BlockCipherTemplate(*this);} }; //! . @@ -205,7 +205,7 @@ public: CheckedSetKey(this, Empty(), key, length, param); } - Clonable * Clone() {return new MessageAuthenticationCodeTemplate(*this);} + Clonable * Clone() const {return new MessageAuthenticationCodeTemplate(*this);} }; // ************** documentation *************** -- cgit v1.2.1