summaryrefslogtreecommitdiff
path: root/seckey.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-11-19 20:44:40 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2002-11-19 20:44:40 +0000
commit7c32afc0c2a23e39ea7fe3dce9c718c77f758bb7 (patch)
treee6892323cff57a9ed487d204231a5ccec3a3eac5 /seckey.h
parent6ea2796d91ca021f7e8846a1dda8e83edf4b4420 (diff)
downloadcryptopp-7c32afc0c2a23e39ea7fe3dce9c718c77f758bb7.tar.gz
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
Diffstat (limited to 'seckey.h')
-rw-r--r--seckey.h8
1 files changed, 4 insertions, 4 deletions
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<DIR, BASE>(*this);}
+ Clonable * Clone() const {return new BlockCipherTemplate<DIR, BASE>(*this);}
};
//! .
@@ -205,7 +205,7 @@ public:
CheckedSetKey(this, Empty(), key, length, param);
}
- Clonable * Clone() {return new MessageAuthenticationCodeTemplate<BASE>(*this);}
+ Clonable * Clone() const {return new MessageAuthenticationCodeTemplate<BASE>(*this);}
};
// ************** documentation ***************