TAY
Fork of Crypto_light by
Diff: hash/MD4.cpp
- Revision:
- 13:ac8e23b98dae
- Parent:
- 10:bc9c23aa3870
--- a/hash/MD4.cpp Tue Apr 08 19:39:25 2014 +0000 +++ b/hash/MD4.cpp Sun May 11 11:14:51 2014 +0000 @@ -43,7 +43,7 @@ void MD4::update(uint8_t *data, uint32_t length) { - if(length < 64-bufferLength) + if((int)length < 64-bufferLength) { memcpy(&buffer[bufferLength], data, length); bufferLength += length; @@ -59,7 +59,7 @@ computeRounds(&a, &b, &c, &d, buffer); offset += 64; } - if(offset > length) + if(offset > (int)length) offset -= 64; bufferLength = length - offset; memcpy(buffer, &data[offset], bufferLength);