Disable CLMUL for SunCC 5.13 and below (Issue 226)
parent
84db27c8f6
commit
737f5b0b72
18
gcm.cpp
18
gcm.cpp
|
|
@ -12,17 +12,17 @@
|
||||||
#ifndef CRYPTOPP_IMPORTS
|
#ifndef CRYPTOPP_IMPORTS
|
||||||
#ifndef CRYPTOPP_GENERATE_X64_MASM
|
#ifndef CRYPTOPP_GENERATE_X64_MASM
|
||||||
|
|
||||||
// Clang 3.3 integrated assembler crash on Linux. MacPorts GCC compile error. SunCC crash under SunCC 5.14 and below.
|
// Clang 3.3 integrated assembler crash on Linux. MacPorts GCC compile error.
|
||||||
#if (defined(CRYPTOPP_LLVM_CLANG_VERSION) && (CRYPTOPP_LLVM_CLANG_VERSION < 30400)) || defined(CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER) || (defined(__SUNPRO_CC) && __SUNPRO_CC <= 0x5140)
|
#if (defined(CRYPTOPP_LLVM_CLANG_VERSION) && (CRYPTOPP_LLVM_CLANG_VERSION < 30400)) || defined(CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER)
|
||||||
# undef CRYPTOPP_X86_ASM_AVAILABLE
|
|
||||||
# undef CRYPTOPP_X32_ASM_AVAILABLE
|
|
||||||
# undef CRYPTOPP_X64_ASM_AVAILABLE
|
|
||||||
# undef CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
|
# undef CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
|
||||||
# undef CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE
|
|
||||||
# undef CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
|
# undef CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
|
||||||
# define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
|
# undef CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
|
||||||
# define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
|
#endif
|
||||||
# define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 0
|
|
||||||
|
// SunCC 5.13 and below crash with AES-NI/CLMUL and C++{03|11}. Disable one or the other.
|
||||||
|
// Also see http://github.com/weidai11/cryptopp/issues/226
|
||||||
|
#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x513)
|
||||||
|
# undef CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gcm.h"
|
#include "gcm.h"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue