diff options
Diffstat (limited to 'src/hash/md4_ia32/md4_ia32.cpp')
-rw-r--r-- | src/hash/md4_ia32/md4_ia32.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hash/md4_ia32/md4_ia32.cpp b/src/hash/md4_ia32/md4_ia32.cpp index 1483d0e8f..6a4b47067 100644 --- a/src/hash/md4_ia32/md4_ia32.cpp +++ b/src/hash/md4_ia32/md4_ia32.cpp @@ -13,9 +13,13 @@ extern "C" void botan_md4_ia32_compress(u32bit[4], const byte[64], u32bit[16]); /************************************************* * MD4 Compression Function * *************************************************/ -void MD4_IA32::hash(const byte input[]) +void MD4_IA32::compress_n(const byte input[], u32bit blocks) { - botan_md4_ia32_compress(digest, input, M); + for(u32bit i = 0; i != blocks; ++i) + { + botan_md4_ia32_compress(digest, input, M); + input += HASH_BLOCK_SIZE; + } } } |