diff options
-rw-r--r-- | cbcmac.cpp | 2 | ||||
-rw-r--r-- | cbcmac.h | 2 | ||||
-rw-r--r-- | dmac.h | 4 | ||||
-rw-r--r-- | panama.h | 2 | ||||
-rw-r--r-- | xormac.h | 4 |
5 files changed, 7 insertions, 7 deletions
@@ -6,7 +6,7 @@ NAMESPACE_BEGIN(CryptoPP) -void CBC_MAC_Base::UncheckedSetKey(const byte *key, size_t length, const NameValuePairs ¶ms) +void CBC_MAC_Base::UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms) { AccessCipher().SetKey(key, length, params); m_reg.CleanNew(AccessCipher().BlockSize()); @@ -12,7 +12,7 @@ class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CBC_MAC_Base : public MessageAuthenticatio public: CBC_MAC_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 const_cast<CBC_MAC_Base*>(this)->AccessCipher().BlockSize();} @@ -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 <class T> -void DMAC_Base<T>::UncheckedSetKey(const byte *key, size_t length, const NameValuePairs ¶ms) +void DMAC_Base<T>::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)); @@ -46,7 +46,7 @@ template <class T_Hash, class T_Info = T_Hash> class HermeticHashFunctionMAC : public AlgorithmImpl<SimpleKeyingInterfaceImpl<TwoBases<MessageAuthenticationCode, VariableKeyLength<32, 0, UINT_MAX> > >, T_Info> { public: - void UncheckedSetKey(const byte *key, size_t length, const NameValuePairs ¶ms) + void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms) { m_key.Assign(key, length); Restart(); @@ -23,7 +23,7 @@ public: XMACC_Base() {SetStateSize(T::DIGESTSIZE);} - void UncheckedSetKey(const byte *key, size_t length, const NameValuePairs ¶ms); + void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms); void Resynchronize(const byte *IV) { GetWord(false, BIG_ENDIAN_ORDER, m_counter, IV); @@ -70,7 +70,7 @@ public: {this->SetKey(key, this->KEYLENGTH, MakeParameters(Name::XMACC_Counter(), counter));} }; -template <class T> void XMACC_Base<T>::UncheckedSetKey(const byte *key, size_t length, const NameValuePairs ¶ms) +template <class T> void XMACC_Base<T>::UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms) { this->AssertValidKeyLength(length); m_counter = 0xffffffff; |