summaryrefslogtreecommitdiff
path: root/sha3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sha3.cpp')
-rw-r--r--sha3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha3.cpp b/sha3.cpp
index 9ab24ec8..f66ef494 100644
--- a/sha3.cpp
+++ b/sha3.cpp
@@ -280,7 +280,7 @@ void SHA3::Restart()
void SHA3::TruncatedFinal(byte *hash, size_t size)
{
ThrowIfInvalidTruncatedSize(size);
- m_state.BytePtr()[m_counter] ^= 1;
+ m_state.BytePtr()[m_counter] ^= 0x06;
m_state.BytePtr()[r()-1] ^= 0x80;
KeccakF1600(m_state);
memcpy(hash, m_state, size);