summaryrefslogtreecommitdiff
path: root/lea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lea.cpp')
-rw-r--r--lea.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lea.cpp b/lea.cpp
index 4b443adb..4440189f 100644
--- a/lea.cpp
+++ b/lea.cpp
@@ -575,13 +575,15 @@ extern size_t LEA_Dec_AdvancedProcessBlocks_NEON(const word32* subKeys, size_t r
std::string LEA::Base::AlgorithmProvider() const
{
-#if defined(CRYPTOPP_SSSE3_AVAILABLE)
+#if (CRYPTOPP_LEA_ADVANCED_PROCESS_BLOCKS)
+# if (CRYPTOPP_SSSE3_AVAILABLE)
if (HasSSSE3())
return "SSSE3";
-#endif
-#if (CRYPTOPP_ARM_NEON_AVAILABLE)
+# endif
+# if (CRYPTOPP_ARM_NEON_AVAILABLE)
if (HasNEON())
return "NEON";
+# endif
#endif
return "C++";
}