mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-17 03:48:38 +00:00
Whitespace checkin
This commit is contained in:
parent
c1d8d81e85
commit
49157a3652
10
cham.cpp
10
cham.cpp
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user