summaryrefslogtreecommitdiff
path: root/blake2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-01-23 21:15:26 -0500
committerJeffrey Walton <noloader@gmail.com>2018-01-23 21:15:26 -0500
commit01136e2c7be25cc857dbad274329e51bb8144a83 (patch)
treec86bf51c83763dfd3bcb364cb153f979222d2586 /blake2.cpp
parent675575d96039ff840df7519ef9cfdd423a73d7df (diff)
downloadcryptopp-git-01136e2c7be25cc857dbad274329e51bb8144a83.tar.gz
Clear clang-tidy warnings
Diffstat (limited to 'blake2.cpp')
-rw-r--r--blake2.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/blake2.cpp b/blake2.cpp
index 2fcba5f9..0500e7a0 100644
--- a/blake2.cpp
+++ b/blake2.cpp
@@ -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);