Fix AlgorithmProvider for CHAM and LEA on Solaris

pull/704/head
Jeffrey Walton 2018-08-17 07:55:35 -04:00
parent b2c5616ede
commit 18bfe2a50a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 8 additions and 4 deletions

View File

@ -114,9 +114,11 @@ extern size_t CHAM128_Dec_AdvancedProcessBlocks_SSSE3(const word32* subKeys, siz
std::string CHAM64::Base::AlgorithmProvider() const std::string CHAM64::Base::AlgorithmProvider() const
{ {
#if defined(CRYPTOPP_SSSE3_AVAILABLE) #if (CRYPTOPP_CHAM_ADVANCED_PROCESS_BLOCKS)
# if defined(CRYPTOPP_SSSE3_AVAILABLE)
if (HasSSSE3()) if (HasSSSE3())
return "SSSE3"; return "SSSE3";
# endif
#endif #endif
return "C++"; return "C++";
} }

View File

@ -575,13 +575,15 @@ extern size_t LEA_Dec_AdvancedProcessBlocks_NEON(const word32* subKeys, size_t r
std::string LEA::Base::AlgorithmProvider() const std::string LEA::Base::AlgorithmProvider() const
{ {
#if defined(CRYPTOPP_SSSE3_AVAILABLE) #if (CRYPTOPP_LEA_ADVANCED_PROCESS_BLOCKS)
# if (CRYPTOPP_SSSE3_AVAILABLE)
if (HasSSSE3()) if (HasSSSE3())
return "SSSE3"; return "SSSE3";
#endif # endif
#if (CRYPTOPP_ARM_NEON_AVAILABLE) # if (CRYPTOPP_ARM_NEON_AVAILABLE)
if (HasNEON()) if (HasNEON())
return "NEON"; return "NEON";
# endif
#endif #endif
return "C++"; return "C++";
} }