aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hash/sha1_ia32/sha1_ia32.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/hash/sha1_ia32/sha1_ia32.cpp b/src/hash/sha1_ia32/sha1_ia32.cpp
index ff6e67001..5c3e56a73 100644
--- a/src/hash/sha1_ia32/sha1_ia32.cpp
+++ b/src/hash/sha1_ia32/sha1_ia32.cpp
@@ -18,9 +18,13 @@ void botan_sha160_ia32_compress(u32bit[5], const byte[64], u32bit[81]);
/*************************************************
* SHA-160 Compression Function *
*************************************************/
-void SHA_160_IA32::hash(const byte input[])
+void SHA_160_IA32::compress_n(const byte input[], u32bit blocks)
{
- botan_sha160_ia32_compress(digest, input, W);
+ for(u32bit i = 0; i != blocks; ++i)
+ {
+ botan_sha160_ia32_compress(digest, input, W);
+ input += HASH_BLOCK_SIZE;
+ }
}
}