Fix Solaris i386 compile of CHAM and LEA for SunStudio 12.3 and below

pull/668/merge
Jeffrey Walton 2018-07-16 12:21:44 -04:00
parent 14dd03544e
commit b91491da4f
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 21 additions and 3 deletions

6
cham.h
View File

@ -19,6 +19,12 @@
# define CRYPTOPP_CHAM_ADVANCED_PROCESS_BLOCKS 1
#endif
// Yet another SunStudio/SunCC workaround. Failed self tests
// in SSE code paths on i386 for SunStudio 12.3 and below.
#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5120)
# undef CRYPTOPP_CHAM_ADVANCED_PROCESS_BLOCKS
#endif
NAMESPACE_BEGIN(CryptoPP)
/// \brief CHAM block cipher information

6
lea.h
View File

@ -19,6 +19,12 @@
# define CRYPTOPP_LEA_ADVANCED_PROCESS_BLOCKS 1
#endif
// Yet another SunStudio/SunCC workaround. Failed self tests
// in SSE code paths on i386 for SunStudio 12.3 and below.
#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5120)
# undef CRYPTOPP_LEA_ADVANCED_PROCESS_BLOCKS
#endif
NAMESPACE_BEGIN(CryptoPP)
/// \brief LEA block cipher information

View File

@ -21,6 +21,12 @@
# define CRYPTOPP_SIMECK_ADVANCED_PROCESS_BLOCKS 1
#endif
// Yet another SunStudio/SunCC workaround. Failed self tests
// in SSE code paths on i386 for SunStudio 12.3 and below.
#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5120)
# undef CRYPTOPP_SIMECK_ADVANCED_PROCESS_BLOCKS
#endif
NAMESPACE_BEGIN(CryptoPP)
/// \brief SIMECK block cipher information