fix incorrect type in UncheckedSetKey parameter
parent
0d73d34865
commit
cde9f938c1
|
|
@ -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());
|
||||
|
|
|
|||
2
cbcmac.h
2
cbcmac.h
|
|
@ -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();}
|
||||
|
|
|
|||
4
dmac.h
4
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 <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));
|
||||
|
|
|
|||
2
panama.h
2
panama.h
|
|
@ -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();
|
||||
|
|
|
|||
4
xormac.h
4
xormac.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue