Cleared warning 'Warning: key hides CryptoPP::FixedRoundsCipherFactory::key'
parent
d67d32dab0
commit
77e4bd7a7b
20
validat1.cpp
20
validat1.cpp
|
|
@ -1223,8 +1223,8 @@ public:
|
||||||
virtual unsigned int BlockSize() const =0;
|
virtual unsigned int BlockSize() const =0;
|
||||||
virtual unsigned int KeyLength() const =0;
|
virtual unsigned int KeyLength() const =0;
|
||||||
|
|
||||||
virtual apbt NewEncryption(const byte *key) const =0;
|
virtual apbt NewEncryption(const byte *keyStr) const =0;
|
||||||
virtual apbt NewDecryption(const byte *key) const =0;
|
virtual apbt NewDecryption(const byte *keyStr) const =0;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class E, class D> class FixedRoundsCipherFactory : public CipherFactory
|
template <class E, class D> class FixedRoundsCipherFactory : public CipherFactory
|
||||||
|
|
@ -1234,10 +1234,10 @@ public:
|
||||||
unsigned int BlockSize() const {return E::BLOCKSIZE;}
|
unsigned int BlockSize() const {return E::BLOCKSIZE;}
|
||||||
unsigned int KeyLength() const {return m_keylen;}
|
unsigned int KeyLength() const {return m_keylen;}
|
||||||
|
|
||||||
apbt NewEncryption(const byte *key) const
|
apbt NewEncryption(const byte *keyStr) const
|
||||||
{return apbt(new E(key, m_keylen));}
|
{return apbt(new E(keyStr, m_keylen));}
|
||||||
apbt NewDecryption(const byte *key) const
|
apbt NewDecryption(const byte *keyStr) const
|
||||||
{return apbt(new D(key, m_keylen));}
|
{return apbt(new D(keyStr, m_keylen));}
|
||||||
|
|
||||||
unsigned int m_keylen;
|
unsigned int m_keylen;
|
||||||
};
|
};
|
||||||
|
|
@ -1250,10 +1250,10 @@ public:
|
||||||
unsigned int BlockSize() const {return E::BLOCKSIZE;}
|
unsigned int BlockSize() const {return E::BLOCKSIZE;}
|
||||||
unsigned int KeyLength() const {return m_keylen;}
|
unsigned int KeyLength() const {return m_keylen;}
|
||||||
|
|
||||||
apbt NewEncryption(const byte *key) const
|
apbt NewEncryption(const byte *keyStr) const
|
||||||
{return apbt(new E(key, m_keylen, m_rounds));}
|
{return apbt(new E(keyStr, m_keylen, m_rounds));}
|
||||||
apbt NewDecryption(const byte *key) const
|
apbt NewDecryption(const byte *keyStr) const
|
||||||
{return apbt(new D(key, m_keylen, m_rounds));}
|
{return apbt(new D(keyStr, m_keylen, m_rounds));}
|
||||||
|
|
||||||
unsigned int m_keylen, m_rounds;
|
unsigned int m_keylen, m_rounds;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue