summaryrefslogtreecommitdiff
path: root/lea.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-17 07:55:35 -0400
committerJeffrey Walton <noloader@gmail.com>2018-08-17 07:55:35 -0400
commit18bfe2a50a406c47a9963bba7302697af413b182 (patch)
tree96f241f228f2d9e01d3b89a32bca55967b8f2ec4 /lea.cpp
parentb2c5616ede18ac075d0d602dd0bc1f5955fd832e (diff)
downloadcryptopp-git-18bfe2a50a406c47a9963bba7302697af413b182.tar.gz
Fix AlgorithmProvider for CHAM and LEA on Solaris
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++";
}