Switch to size_t datatype
parent
c9c51a5e01
commit
717a81484a
|
|
@ -96,7 +96,7 @@ void HC256Policy::OperateKeystream(KeystreamOperation operation, byte *output, c
|
||||||
{
|
{
|
||||||
size_t msglen = GetBytesPerIteration() * iterationCount;
|
size_t msglen = GetBytesPerIteration() * iterationCount;
|
||||||
byte* out = output;
|
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());
|
PutWord(false, LITTLE_ENDIAN_ORDER, out, Generate());
|
||||||
|
|
||||||
// If AdditiveCipherTemplate does not have an accumulated keystream
|
// 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)
|
void RabbitPolicy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount)
|
||||||
{
|
{
|
||||||
byte* out = output;
|
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 */
|
/* Iterate the system */
|
||||||
m_wcy = NextState(m_wc, m_wx, m_wcy);
|
m_wcy = NextState(m_wc, m_wx, m_wcy);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue