Fix AlgorithmProvider for CHAM and LEA on Solaris
parent
b2c5616ede
commit
18bfe2a50a
4
cham.cpp
4
cham.cpp
|
|
@ -114,9 +114,11 @@ extern size_t CHAM128_Dec_AdvancedProcessBlocks_SSSE3(const word32* subKeys, siz
|
|||
|
||||
std::string CHAM64::Base::AlgorithmProvider() const
|
||||
{
|
||||
#if defined(CRYPTOPP_SSSE3_AVAILABLE)
|
||||
#if (CRYPTOPP_CHAM_ADVANCED_PROCESS_BLOCKS)
|
||||
# if defined(CRYPTOPP_SSSE3_AVAILABLE)
|
||||
if (HasSSSE3())
|
||||
return "SSSE3";
|
||||
# endif
|
||||
#endif
|
||||
return "C++";
|
||||
}
|
||||
|
|
|
|||
8
lea.cpp
8
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++";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue