aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/threefish/threefish.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/threefish/threefish.cpp')
-rw-r--r--src/lib/block/threefish/threefish.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/block/threefish/threefish.cpp b/src/lib/block/threefish/threefish.cpp
index a4c99936c..33b3e25c8 100644
--- a/src/lib/block/threefish/threefish.cpp
+++ b/src/lib/block/threefish/threefish.cpp
@@ -103,7 +103,7 @@ void Threefish_512::encrypt_n(const byte in[], byte out[], size_t blocks) const
BOTAN_ASSERT(m_K.size() == 9, "Key was set");
BOTAN_ASSERT(m_T.size() == 3, "Tweak was set");
-#if defined(BOTAN_HAS_THREEFISH_AVX2)
+#if defined(BOTAN_HAS_THREEFISH_512_AVX2)
if(CPUID::has_avx2())
{
return avx2_encrypt_n(in, out, blocks);
@@ -149,10 +149,10 @@ void Threefish_512::decrypt_n(const byte in[], byte out[], size_t blocks) const
BOTAN_ASSERT(m_K.size() == 9, "Key was set");
BOTAN_ASSERT(m_T.size() == 3, "Tweak was set");
-#if defined(BOTAN_HAS_THREEFISH_AVX2)
+#if defined(BOTAN_HAS_THREEFISH_512_AVX2)
if(CPUID::has_avx2())
{
- return avx2_dencrypt_n(in, out, blocks);
+ return avx2_decrypt_n(in, out, blocks);
}
#endif