Whitespace checkin

This commit is contained in:
Jeffrey Walton 2020-12-02 20:10:57 -05:00
parent c1d8d81e85
commit 49157a3652
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -123,15 +123,15 @@ void CHAM64::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength,
// Do not cast the buffer. It will SIGBUS on some ARM and SPARC.
const word32 rk = GetWord<word32>(false, BIG_ENDIAN_ORDER, userKey);
const word16 rk1 = rk >> 16;
const word16 rk1 = rk >> 16;
m_rk[i] = rk1 ^ rotlConstant<1>(rk1) ^ rotlConstant<8>(rk1);
m_rk[(i + m_kw) ^ 1] = rk1 ^ rotlConstant<1>(rk1) ^ rotlConstant<11>(rk1);
i++;
i++;
const word16 rk2 = rk & 0xffff;
const word16 rk2 = rk & 0xffff;
m_rk[i] = rk2 ^ rotlConstant<1>(rk2) ^ rotlConstant<8>(rk2);
m_rk[(i + m_kw) ^ 1] = rk2 ^ rotlConstant<1>(rk2) ^ rotlConstant<11>(rk2);
i++;
i++;
}
}
@ -218,7 +218,7 @@ void CHAM128::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength,
const word32 rk = GetWord<word32>(false, BIG_ENDIAN_ORDER, userKey);
m_rk[i] = rk ^ rotlConstant<1>(rk) ^ rotlConstant<8>(rk);
m_rk[(i + m_kw) ^ 1] = rk ^ rotlConstant<1>(rk) ^ rotlConstant<11>(rk);
i++;
i++;
}
}