Clear warnings under GCC with -Wall -Wextra
parent
b0f3b8ce17
commit
23b939c62b
14
validat1.cpp
14
validat1.cpp
|
|
@ -1909,8 +1909,10 @@ public:
|
||||||
template <class E, class D> class FixedRoundsCipherFactory : public CipherFactory
|
template <class E, class D> class FixedRoundsCipherFactory : public CipherFactory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FixedRoundsCipherFactory(unsigned int keylen=0) : m_keylen(keylen?keylen:E::DEFAULT_KEYLENGTH) {}
|
FixedRoundsCipherFactory(unsigned int keylen=0) :
|
||||||
unsigned int BlockSize() const {return E::BLOCKSIZE;}
|
m_keylen(keylen ? keylen : static_cast<unsigned int>(E::DEFAULT_KEYLENGTH)) {}
|
||||||
|
|
||||||
|
unsigned int BlockSize() const {return static_cast<unsigned int>(E::BLOCKSIZE);}
|
||||||
unsigned int KeyLength() const {return m_keylen;}
|
unsigned int KeyLength() const {return m_keylen;}
|
||||||
|
|
||||||
BlockTransformation* NewEncryption(const byte *keyStr) const
|
BlockTransformation* NewEncryption(const byte *keyStr) const
|
||||||
|
|
@ -1924,9 +1926,11 @@ public:
|
||||||
template <class E, class D> class VariableRoundsCipherFactory : public CipherFactory
|
template <class E, class D> class VariableRoundsCipherFactory : public CipherFactory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VariableRoundsCipherFactory(unsigned int keylen=0, unsigned int rounds=0)
|
VariableRoundsCipherFactory(unsigned int keylen=0, unsigned int rounds=0) :
|
||||||
: m_keylen(keylen ? keylen : E::DEFAULT_KEYLENGTH), m_rounds(rounds ? rounds : E::DEFAULT_ROUNDS) {}
|
m_keylen(keylen ? keylen : static_cast<unsigned int>(E::DEFAULT_KEYLENGTH)),
|
||||||
unsigned int BlockSize() const {return E::BLOCKSIZE;}
|
m_rounds(rounds ? rounds : static_cast<unsigned int>(E::DEFAULT_ROUNDS)) {}
|
||||||
|
|
||||||
|
unsigned int BlockSize() const {return static_cast<unsigned int>(E::BLOCKSIZE);}
|
||||||
unsigned int KeyLength() const {return m_keylen;}
|
unsigned int KeyLength() const {return m_keylen;}
|
||||||
|
|
||||||
BlockTransformation* NewEncryption(const byte *keyStr) const
|
BlockTransformation* NewEncryption(const byte *keyStr) const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue