aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha1_sse2
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hash/sha1_sse2')
-rw-r--r--src/lib/hash/sha1_sse2/sha1_sse2.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/hash/sha1_sse2/sha1_sse2.cpp b/src/lib/hash/sha1_sse2/sha1_sse2.cpp
index e7684db57..13cd22eeb 100644
--- a/src/lib/hash/sha1_sse2/sha1_sse2.cpp
+++ b/src/lib/hash/sha1_sse2/sha1_sse2.cpp
@@ -1,19 +1,21 @@
/*
* SHA-1 using SSE2
+* Based on public domain code by Dean Gaudet
+* (http://arctic.org/~dean/crypto/sha1.html)
* (C) 2009-2011 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
-*
-* Based on public domain code by Dean Gaudet
-* (http://arctic.org/~dean/crypto/sha1.html)
*/
+#include <botan/internal/hash_utils.h>
#include <botan/sha1_sse2.h>
-#include <botan/rotate.h>
+#include <botan/cpuid.h>
#include <emmintrin.h>
namespace Botan {
+BOTAN_REGISTER_HASH_NOARGS_IF(CPUID::has_sse2(), SHA_160_SSE2, "SHA-160", "sse2");
+
namespace SHA1_SSE2_F {
namespace {