Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions keccak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ void Keccak::processBlock(const void* data)
for (unsigned int j = 0; j < StateSize; j += 5)
{
// temporaries
uint64_t one = m_hash[j];
uint64_t two = m_hash[j + 1];
uint64_t One = m_hash[j];
uint64_t Two = m_hash[j + 1];

m_hash[j] ^= m_hash[j + 2] & ~two;
m_hash[j] ^= m_hash[j + 2] & ~Two;
m_hash[j + 1] ^= m_hash[j + 3] & ~m_hash[j + 2];
m_hash[j + 2] ^= m_hash[j + 4] & ~m_hash[j + 3];
m_hash[j + 3] ^= one & ~m_hash[j + 4];
m_hash[j + 4] ^= two & ~one;
m_hash[j + 3] ^= One & ~m_hash[j + 4];
m_hash[j + 4] ^= Two & ~One;
}

// Iota
Expand Down