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 --- hmac.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hmac.h') diff --git a/hmac.h b/hmac.h index 64670ba..072e8c6 100644 --- a/hmac.h +++ b/hmac.h @@ -16,8 +16,8 @@ public: void UncheckedSetKey(const byte *userKey, unsigned int keylength); void Restart(); - void Update(const byte *input, unsigned int length); - void TruncatedFinal(byte *mac, unsigned int size); + void Update(const byte *input, size_t length); + void TruncatedFinal(byte *mac, size_t size); unsigned int OptimalBlockSize() const {return const_cast(this)->AccessHash().OptimalBlockSize();} unsigned int DigestSize() const {return const_cast(this)->AccessHash().DigestSize();} @@ -44,7 +44,7 @@ public: enum {DIGESTSIZE=T::DIGESTSIZE, BLOCKSIZE=T::BLOCKSIZE}; HMAC() {} - HMAC(const byte *key, unsigned int length=HMAC_Base::DEFAULT_KEYLENGTH) + HMAC(const byte *key, size_t length=HMAC_Base::DEFAULT_KEYLENGTH) {this->SetKey(key, length);} static std::string StaticAlgorithmName() {return std::string("HMAC(") + T::StaticAlgorithmName() + ")";} -- cgit v1.2.1