From d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 12 Jul 2005 04:23:32 +0000 Subject: port to MSVC .NET 2005 beta 2 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@198 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rc2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rc2.h') diff --git a/rc2.h b/rc2.h index 241c093..4e86ec4 100644 --- a/rc2.h +++ b/rc2.h @@ -23,11 +23,11 @@ class RC2 : public RC2_Info, public BlockCipherDocumentation { public: void UncheckedSetKey(CipherDir direction, const byte *key, unsigned int length, unsigned int effectiveKeyLength); - void SetKeyWithEffectiveKeyLength(const byte *key, unsigned int length, unsigned int effectiveKeyLength); + void SetKeyWithEffectiveKeyLength(const byte *key, size_t length, unsigned int effectiveKeyLength); protected: template - static inline void CheckedSetKey(T *obj, CipherDir dir, const byte *key, unsigned int length, const NameValuePairs ¶m) + static inline void CheckedSetKey(T *obj, CipherDir dir, const byte *key, size_t length, const NameValuePairs ¶m) { obj->ThrowIfInvalidKeyLength(length); int effectiveKeyLength = param.GetIntValueWithDefault("EffectiveKeyLength", DEFAULT_EFFECTIVE_KEYLENGTH); @@ -54,7 +54,7 @@ public: { public: Encryption() {} - Encryption(const byte *key, unsigned int keyLen=DEFAULT_KEYLENGTH, unsigned int effectiveLen=1024) + Encryption(const byte *key, size_t keyLen=DEFAULT_KEYLENGTH, unsigned int effectiveLen=1024) {SetKeyWithEffectiveKeyLength(key, keyLen, effectiveLen);} }; @@ -62,7 +62,7 @@ public: { public: Decryption() {} - Decryption(const byte *key, unsigned int keyLen=DEFAULT_KEYLENGTH, unsigned int effectiveLen=1024) + Decryption(const byte *key, size_t keyLen=DEFAULT_KEYLENGTH, unsigned int effectiveLen=1024) {SetKeyWithEffectiveKeyLength(key, keyLen, effectiveLen);} }; }; -- cgit v1.2.1