aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha1_sse2
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-08-29 11:53:06 -0400
committerJack Lloyd <[email protected]>2015-08-29 11:53:06 -0400
commit3103f299dfd9517a4ef3c40358c1a4cad38b7305 (patch)
treed3cb4309c78cfc0948315970ca3c827bc356c1ef /src/lib/hash/sha1_sse2
parente4962bebbc687e93e47d35339b6a2242aefee51e (diff)
Reverse the algorithm priority ordering
Previously 0 was the highest priority and 255 was the lowest. But this is really quite confusing, instead treat 0 as lowest and 255 as highest so normal integer intuitions apply.
Diffstat (limited to 'src/lib/hash/sha1_sse2')
-rw-r--r--src/lib/hash/sha1_sse2/sha1_sse2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/hash/sha1_sse2/sha1_sse2.cpp b/src/lib/hash/sha1_sse2/sha1_sse2.cpp
index 1fc62d957..7cd457597 100644
--- a/src/lib/hash/sha1_sse2/sha1_sse2.cpp
+++ b/src/lib/hash/sha1_sse2/sha1_sse2.cpp
@@ -14,7 +14,8 @@
namespace Botan {
-BOTAN_REGISTER_HASH_NOARGS_IF(CPUID::has_sse2(), SHA_160_SSE2, "SHA-160", "sse2", 64);
+BOTAN_REGISTER_HASH_NOARGS_IF(CPUID::has_sse2(), SHA_160_SSE2, "SHA-160",
+ "sse2", BOTAN_SIMD_ALGORITHM_PRIO);
namespace SHA1_SSE2_F {