TAY
Fork of Crypto_light by
Diff: hash/MD5.cpp
- Revision:
- 10:bc9c23aa3870
- Parent:
- 7:2dbbdfb08123
- Child:
- 13:ac8e23b98dae
--- a/hash/MD5.cpp Mon Sep 16 08:35:36 2013 +0000 +++ b/hash/MD5.cpp Tue Sep 24 07:19:04 2013 +0000 @@ -118,7 +118,7 @@ { uint32_t *hash2 = (uint32_t*)hash; uint64_t lengthBit = length << 3; - uint16_t padding; + uint32_t padding; if(length % 64 < 56) padding = 56 - (length % 64); else @@ -157,7 +157,7 @@ hash2[3] = d; } -void MD5::computeRounds(uint32_t *a2, uint32_t *b2, uint32_t *c2, uint32_t *d2, uint8_t *buffer) +__forceinline void MD5::computeRounds(uint32_t *a2, uint32_t *b2, uint32_t *c2, uint32_t *d2, uint8_t *buffer) { uint32_t a = *a2, b = *b2, c = *c2, d = *d2; uint32_t tmpA = a, tmpB = b, tmpC = c, tmpD = d;