mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-20 05:12:16 +00:00
Switch to size_t datatype
This commit is contained in:
parent
c9c51a5e01
commit
717a81484a
@ -96,7 +96,7 @@ void HC256Policy::OperateKeystream(KeystreamOperation operation, byte *output, c
|
||||
{
|
||||
size_t msglen = GetBytesPerIteration() * iterationCount;
|
||||
byte* out = output;
|
||||
for (unsigned int i = 0; i < (msglen >> 2); i++, out += 4)
|
||||
for (size_t i = 0; i < (msglen >> 2); i++, out += 4)
|
||||
PutWord(false, LITTLE_ENDIAN_ORDER, out, Generate());
|
||||
|
||||
// If AdditiveCipherTemplate does not have an accumulated keystream
|
||||
|
@ -124,7 +124,7 @@ void RabbitPolicy::CipherSetKey(const NameValuePairs ¶ms, const byte *userKe
|
||||
void RabbitPolicy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount)
|
||||
{
|
||||
byte* out = output;
|
||||
for (unsigned int i = 0; i<iterationCount; ++i, out += 16)
|
||||
for (size_t i = 0; i<iterationCount; ++i, out += 16)
|
||||
{
|
||||
/* Iterate the system */
|
||||
m_wcy = NextState(m_wc, m_wx, m_wcy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user