diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-01-23 21:15:26 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-01-23 21:15:26 -0500 |
commit | 01136e2c7be25cc857dbad274329e51bb8144a83 (patch) | |
tree | c86bf51c83763dfd3bcb364cb153f979222d2586 /blake2.cpp | |
parent | 675575d96039ff840df7519ef9cfdd423a73d7df (diff) | |
download | cryptopp-git-01136e2c7be25cc857dbad274329e51bb8144a83.tar.gz |
Clear clang-tidy warnings
Diffstat (limited to 'blake2.cpp')
-rw-r--r-- | blake2.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -248,15 +248,9 @@ void BLAKE2_Base<W, T_64bit>::UncheckedSetKey(const byte *key, unsigned int leng m_key.resize(0);
}
-#if defined(__COVERITY__)
// Avoid Coverity finding SIZEOF_MISMATCH/suspicious_sizeof
ParameterBlock& block = *m_block.data();
memset(m_block.data(), 0x00, sizeof(ParameterBlock));
-#else
- // Set Head bytes; Tail bytes are set below
- ParameterBlock& block = *m_block.data();
- memset(m_block.data(), 0x00, T_64bit ? 32 : 16);
-#endif
block.keyLength = (byte)length;
block.digestLength = (byte)params.GetIntValueWithDefault(Name::DigestSize(), DIGESTSIZE);
|