summaryrefslogtreecommitdiff
path: root/blake2.cpp
diff options
context:
space:
mode:
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);