summaryrefslogtreecommitdiffstats
path: root/old/botan/src/hash/sha1_sse2/sha1_sse2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/src/hash/sha1_sse2/sha1_sse2.cpp')
-rw-r--r--old/botan/src/hash/sha1_sse2/sha1_sse2.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/old/botan/src/hash/sha1_sse2/sha1_sse2.cpp b/old/botan/src/hash/sha1_sse2/sha1_sse2.cpp
new file mode 100644
index 0000000..dddc06b
--- /dev/null
+++ b/old/botan/src/hash/sha1_sse2/sha1_sse2.cpp
@@ -0,0 +1,24 @@
+/*
+* SHA-160 (SSE2)
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#include <botan/sha1_sse2.h>
+
+namespace Botan {
+
+/*
+* SHA-160 Compression Function
+*/
+void SHA_160_SSE2::compress_n(const byte input[], u32bit blocks)
+ {
+ for(u32bit i = 0; i != blocks; ++i)
+ {
+ botan_sha1_sse2_compress(digest, reinterpret_cast<const u32bit*>(input));
+ input += HASH_BLOCK_SIZE;
+ }
+ }
+
+}