From 465fcdcf7f853523254b77687caa667f3575a259 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 11 Dec 2006 09:18:19 +0000 Subject: fix incorrect type in UncheckedSetKey parameter git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@254 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- dmac.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dmac.h') diff --git a/dmac.h b/dmac.h index d7522f7..c0f81b3 100644 --- a/dmac.h +++ b/dmac.h @@ -16,7 +16,7 @@ public: DMAC_Base() {} - void UncheckedSetKey(const byte *key, size_t length, const NameValuePairs ¶ms); + void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms); void Update(const byte *input, size_t length); void TruncatedFinal(byte *mac, size_t size); unsigned int DigestSize() const {return DIGESTSIZE;} @@ -45,7 +45,7 @@ public: }; template -void DMAC_Base::UncheckedSetKey(const byte *key, size_t length, const NameValuePairs ¶ms) +void DMAC_Base::UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms) { m_subkeylength = T::StaticGetValidKeyLength(T::BLOCKSIZE); m_subkeys.resize(2*UnsignedMin((unsigned int)T::BLOCKSIZE, m_subkeylength)); -- cgit v1.2.1