diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-08-17 07:55:35 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-08-17 07:55:35 -0400 |
commit | 18bfe2a50a406c47a9963bba7302697af413b182 (patch) | |
tree | 96f241f228f2d9e01d3b89a32bca55967b8f2ec4 /lea.cpp | |
parent | b2c5616ede18ac075d0d602dd0bc1f5955fd832e (diff) | |
download | cryptopp-git-18bfe2a50a406c47a9963bba7302697af413b182.tar.gz |
Fix AlgorithmProvider for CHAM and LEA on Solaris
Diffstat (limited to 'lea.cpp')
-rw-r--r-- | lea.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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++";
}
|