Merge branch 'master' into arm-neon
commit
e839acf511
87
config.h
87
config.h
|
|
@ -33,9 +33,26 @@
|
||||||
// #define NO_OS_DEPENDENCE
|
// #define NO_OS_DEPENDENCE
|
||||||
|
|
||||||
// Define this to use features provided by Microsoft's CryptoAPI.
|
// Define this to use features provided by Microsoft's CryptoAPI.
|
||||||
// Currently the only feature used is random number generation.
|
// Currently the only feature used is Windows random number generation.
|
||||||
// This macro will be ignored if NO_OS_DEPENDENCE is defined.
|
// This macro will be ignored if NO_OS_DEPENDENCE is defined.
|
||||||
#define USE_MS_CRYPTOAPI
|
// #define USE_MS_CRYPTOAPI
|
||||||
|
|
||||||
|
// Define this to use features provided by Microsoft's CryptoNG API.
|
||||||
|
// CryptoNG API is available in Vista and above and its cross platform,
|
||||||
|
// including desktop apps and store apps. Currently the only feature
|
||||||
|
// used is Windows random number generation.
|
||||||
|
// This macro will be ignored if NO_OS_DEPENDENCE is defined.
|
||||||
|
// #define USE_MS_CNGAPI
|
||||||
|
|
||||||
|
// If the user did not make a choice, then select CryptoNG if either
|
||||||
|
// Visual Studio 2015 is available, or Windows 10 or above is available.
|
||||||
|
#if !defined(USE_MS_CRYPTOAPI) && !defined(USE_MS_CNGAPI)
|
||||||
|
# if (_MSC_VER >= 1900) || ((WINVER >= 0x0A00 /*_WIN32_WINNT_WIN10*/) || (_WIN32_WINNT >= 0x0A00 /*_WIN32_WINNT_WIN10*/))
|
||||||
|
# define USE_MS_CNGAPI
|
||||||
|
# else
|
||||||
|
# define USE_MS_CRYPTOAPI
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Define this to ensure C/C++ standard compliance and respect for GCC aliasing rules and other alignment fodder. If you
|
// Define this to ensure C/C++ standard compliance and respect for GCC aliasing rules and other alignment fodder. If you
|
||||||
// experience a break with GCC at -O3, you should try this first. Guard it in case its set on the command line (and it differs).
|
// experience a break with GCC at -O3, you should try this first. Guard it in case its set on the command line (and it differs).
|
||||||
|
|
@ -528,7 +545,6 @@ NAMESPACE_END
|
||||||
#ifndef CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE
|
#ifndef CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE
|
||||||
# define CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE 0
|
# define CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CRYPTOPP_NO_UNALIGNED_DATA_ACCESS) && !defined(CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS)
|
#if !defined(CRYPTOPP_NO_UNALIGNED_DATA_ACCESS) && !defined(CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS)
|
||||||
#if (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || defined(__powerpc__) || (__ARM_FEATURE_UNALIGNED >= 1))
|
#if (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || defined(__powerpc__) || (__ARM_FEATURE_UNALIGNED >= 1))
|
||||||
#define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
|
#define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
|
||||||
|
|
@ -555,33 +571,43 @@ NAMESPACE_END
|
||||||
# define HIGHRES_TIMER_AVAILABLE
|
# define HIGHRES_TIMER_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
||||||
|
# if !defined(WINAPI_FAMILY)
|
||||||
|
# define THREAD_TIMER_AVAILABLE
|
||||||
|
# elif defined(WINAPI_FAMILY)
|
||||||
|
# if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# define THREAD_TIMER_AVAILABLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CRYPTOPP_UNIX_AVAILABLE
|
#ifdef CRYPTOPP_UNIX_AVAILABLE
|
||||||
# define HAS_BERKELEY_STYLE_SOCKETS
|
# define HAS_BERKELEY_STYLE_SOCKETS
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
|
||||||
# define HAS_WINDOWS_STYLE_SOCKETS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HIGHRES_TIMER_AVAILABLE) && (defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(HAS_WINDOWS_STYLE_SOCKETS))
|
|
||||||
# define SOCKETS_AVAILABLE
|
# define SOCKETS_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Sockets are only available under Windows Runtime desktop partition apps (despite the MSDN literature)
|
||||||
|
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
||||||
|
# define HAS_WINDOWS_STYLE_SOCKETS
|
||||||
|
# if !defined(WINAPI_FAMILY)
|
||||||
|
# define SOCKETS_AVAILABLE
|
||||||
|
# elif defined(WINAPI_FAMILY)
|
||||||
|
# if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# define SOCKETS_AVAILABLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS))
|
#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS))
|
||||||
# define USE_WINDOWS_STYLE_SOCKETS
|
# define USE_WINDOWS_STYLE_SOCKETS
|
||||||
#else
|
#else
|
||||||
# define USE_BERKELEY_STYLE_SOCKETS
|
# define USE_BERKELEY_STYLE_SOCKETS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HIGHRES_TIMER_AVAILABLE) && defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS)
|
#if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(SOCKETS_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS)
|
||||||
# define WINDOWS_PIPES_AVAILABLE
|
# define WINDOWS_PIPES_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(USE_MS_CRYPTOAPI)
|
|
||||||
# define NONBLOCKING_RNG_AVAILABLE
|
|
||||||
# define OS_RNG_AVAILABLE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
||||||
# define NONBLOCKING_RNG_AVAILABLE
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
# define BLOCKING_RNG_AVAILABLE
|
# define BLOCKING_RNG_AVAILABLE
|
||||||
|
|
@ -591,8 +617,24 @@ NAMESPACE_END
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
||||||
|
# if !defined(WINAPI_FAMILY)
|
||||||
# define HAS_WINTHREADS
|
# define HAS_WINTHREADS
|
||||||
# define THREADS_AVAILABLE
|
# define THREADS_AVAILABLE
|
||||||
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
|
# define OS_RNG_AVAILABLE
|
||||||
|
# elif defined(WINAPI_FAMILY)
|
||||||
|
# if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# define HAS_WINTHREADS
|
||||||
|
# define THREADS_AVAILABLE
|
||||||
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
|
# define OS_RNG_AVAILABLE
|
||||||
|
# elif !(WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# if ((WINVER >= 0x0A00 /*_WIN32_WINNT_WIN10*/) || (_WIN32_WINNT >= 0x0A00 /*_WIN32_WINNT_WIN10*/))
|
||||||
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
|
# define OS_RNG_AVAILABLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // NO_OS_DEPENDENCE
|
#endif // NO_OS_DEPENDENCE
|
||||||
|
|
@ -688,6 +730,19 @@ NAMESPACE_END
|
||||||
// C++11 or C++14 is available
|
// C++11 or C++14 is available
|
||||||
#if defined(CRYPTOPP_CXX11)
|
#if defined(CRYPTOPP_CXX11)
|
||||||
|
|
||||||
|
// atomics: MS at VS2012 (17.00); GCC at 4.4; Clang at 3.1/3.2; and Intel 13.0.
|
||||||
|
#if (CRYPTOPP_MSC_VERSION >= 1700)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
#elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 1300)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
#elif defined(__clang__)
|
||||||
|
# if __has_feature(cxx_atomic)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
# endif
|
||||||
|
#elif (CRYPTOPP_GCC_VERSION >= 40400)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
#endif // atomics
|
||||||
|
|
||||||
// alignof/alignas: MS at VS2013 (19.00); GCC at 4.8; Clang at 3.3; and Intel 15.0.
|
// alignof/alignas: MS at VS2013 (19.00); GCC at 4.8; Clang at 3.3; and Intel 15.0.
|
||||||
#if (CRYPTOPP_MSC_VERSION >= 1900)
|
#if (CRYPTOPP_MSC_VERSION >= 1900)
|
||||||
# define CRYPTOPP_CXX11_ALIGNAS 1
|
# define CRYPTOPP_CXX11_ALIGNAS 1
|
||||||
|
|
|
||||||
133
config.recommend
133
config.recommend
|
|
@ -33,9 +33,26 @@
|
||||||
// #define NO_OS_DEPENDENCE
|
// #define NO_OS_DEPENDENCE
|
||||||
|
|
||||||
// Define this to use features provided by Microsoft's CryptoAPI.
|
// Define this to use features provided by Microsoft's CryptoAPI.
|
||||||
// Currently the only feature used is random number generation.
|
// Currently the only feature used is Windows random number generation.
|
||||||
// This macro will be ignored if NO_OS_DEPENDENCE is defined.
|
// This macro will be ignored if NO_OS_DEPENDENCE is defined.
|
||||||
#define USE_MS_CRYPTOAPI
|
// #define USE_MS_CRYPTOAPI
|
||||||
|
|
||||||
|
// Define this to use features provided by Microsoft's CryptoNG API.
|
||||||
|
// CryptoNG API is available in Vista and above and its cross platform,
|
||||||
|
// including desktop apps and store apps. Currently the only feature
|
||||||
|
// used is Windows random number generation.
|
||||||
|
// This macro will be ignored if NO_OS_DEPENDENCE is defined.
|
||||||
|
// #define USE_MS_CNGAPI
|
||||||
|
|
||||||
|
// If the user did not make a choice, then select CryptoNG if either
|
||||||
|
// Visual Studio 2015 is available, or Windows 10 or above is available.
|
||||||
|
#if !defined(USE_MS_CRYPTOAPI) && !defined(USE_MS_CNGAPI)
|
||||||
|
# if (_MSC_VER >= 1900) || ((WINVER >= 0x0A00 /*_WIN32_WINNT_WIN10*/) || (_WIN32_WINNT >= 0x0A00 /*_WIN32_WINNT_WIN10*/))
|
||||||
|
# define USE_MS_CNGAPI
|
||||||
|
# else
|
||||||
|
# define USE_MS_CRYPTOAPI
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Define this to ensure C/C++ standard compliance and respect for GCC aliasing rules and other alignment fodder. If you
|
// Define this to ensure C/C++ standard compliance and respect for GCC aliasing rules and other alignment fodder. If you
|
||||||
// experience a break with GCC at -O3, you should try this first. Guard it in case its set on the command line (and it differs).
|
// experience a break with GCC at -O3, you should try this first. Guard it in case its set on the command line (and it differs).
|
||||||
|
|
@ -382,30 +399,6 @@ NAMESPACE_END
|
||||||
#define CRYPTOPP_DISABLE_SSE2
|
#define CRYPTOPP_DISABLE_SSE2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__arm__) || defined(__aarch32__) || defined(_M_ARM)
|
|
||||||
#define CRYPTOPP_BOOL_ARM32 1
|
|
||||||
#else
|
|
||||||
#define CRYPTOPP_BOOL_ARM32 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__aarch64__)
|
|
||||||
#define CRYPTOPP_BOOL_ARM64 1
|
|
||||||
#else
|
|
||||||
#define CRYPTOPP_BOOL_ARM64 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE)
|
|
||||||
# if (CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARM64) && ((CRYPTOPP_GCC_VERSION >= 40400) || (CRYPTOPP_CLANG_VERSION >= 20800) || (CRYPTOPP_MSC_VERSION >= 1700))
|
|
||||||
# if defined(__ARM_NEON__) || defined(__ARM_NEON) || defined(_M_ARM)
|
|
||||||
# define CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE 1
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE
|
|
||||||
# define CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Apple's Clang prior to 5.0 cannot handle SSE2 (and Apple does not use LLVM Clang numbering...)
|
// Apple's Clang prior to 5.0 cannot handle SSE2 (and Apple does not use LLVM Clang numbering...)
|
||||||
#if defined(CRYPTOPP_APPLE_CLANG_VERSION) && (CRYPTOPP_APPLE_CLANG_VERSION < 50000)
|
#if defined(CRYPTOPP_APPLE_CLANG_VERSION) && (CRYPTOPP_APPLE_CLANG_VERSION < 50000)
|
||||||
# define CRYPTOPP_DISABLE_ASM
|
# define CRYPTOPP_DISABLE_ASM
|
||||||
|
|
@ -529,6 +522,29 @@ NAMESPACE_END
|
||||||
# undef CRYPTOPP_X64_MASM_AVAILABLE
|
# undef CRYPTOPP_X64_MASM_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__arm__) || defined(__aarch32__) || defined(_M_ARM)
|
||||||
|
#define CRYPTOPP_BOOL_ARM32 1
|
||||||
|
#else
|
||||||
|
#define CRYPTOPP_BOOL_ARM32 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__aarch64__)
|
||||||
|
#define CRYPTOPP_BOOL_ARM64 1
|
||||||
|
#else
|
||||||
|
#define CRYPTOPP_BOOL_ARM64 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE)
|
||||||
|
# if (CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARM64) && ((CRYPTOPP_GCC_VERSION >= 40400) || (CRYPTOPP_CLANG_VERSION >= 20800) || (CRYPTOPP_MSC_VERSION >= 1700))
|
||||||
|
# if defined(__ARM_NEON__) || defined(__ARM_NEON) || defined(_M_ARM)
|
||||||
|
# define CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE 1
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE
|
||||||
|
# define CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE 0
|
||||||
|
#endif
|
||||||
#if !defined(CRYPTOPP_NO_UNALIGNED_DATA_ACCESS) && !defined(CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS)
|
#if !defined(CRYPTOPP_NO_UNALIGNED_DATA_ACCESS) && !defined(CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS)
|
||||||
#if (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || defined(__powerpc__) || (__ARM_FEATURE_UNALIGNED >= 1))
|
#if (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || defined(__powerpc__) || (__ARM_FEATURE_UNALIGNED >= 1))
|
||||||
#define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
|
#define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
|
||||||
|
|
@ -555,33 +571,43 @@ NAMESPACE_END
|
||||||
# define HIGHRES_TIMER_AVAILABLE
|
# define HIGHRES_TIMER_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
||||||
|
# if !defined(WINAPI_FAMILY)
|
||||||
|
# define THREAD_TIMER_AVAILABLE
|
||||||
|
# elif defined(WINAPI_FAMILY)
|
||||||
|
# if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# define THREAD_TIMER_AVAILABLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CRYPTOPP_UNIX_AVAILABLE
|
#ifdef CRYPTOPP_UNIX_AVAILABLE
|
||||||
# define HAS_BERKELEY_STYLE_SOCKETS
|
# define HAS_BERKELEY_STYLE_SOCKETS
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
|
||||||
# define HAS_WINDOWS_STYLE_SOCKETS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HIGHRES_TIMER_AVAILABLE) && (defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(HAS_WINDOWS_STYLE_SOCKETS))
|
|
||||||
# define SOCKETS_AVAILABLE
|
# define SOCKETS_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Sockets are only available under Windows Runtime desktop partition apps (despite the MSDN literature)
|
||||||
|
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
||||||
|
# define HAS_WINDOWS_STYLE_SOCKETS
|
||||||
|
# if !defined(WINAPI_FAMILY)
|
||||||
|
# define SOCKETS_AVAILABLE
|
||||||
|
# elif defined(WINAPI_FAMILY)
|
||||||
|
# if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# define SOCKETS_AVAILABLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS))
|
#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS))
|
||||||
# define USE_WINDOWS_STYLE_SOCKETS
|
# define USE_WINDOWS_STYLE_SOCKETS
|
||||||
#else
|
#else
|
||||||
# define USE_BERKELEY_STYLE_SOCKETS
|
# define USE_BERKELEY_STYLE_SOCKETS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HIGHRES_TIMER_AVAILABLE) && defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS)
|
#if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(SOCKETS_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS)
|
||||||
# define WINDOWS_PIPES_AVAILABLE
|
# define WINDOWS_PIPES_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(USE_MS_CRYPTOAPI)
|
|
||||||
# define NONBLOCKING_RNG_AVAILABLE
|
|
||||||
# define OS_RNG_AVAILABLE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
||||||
# define NONBLOCKING_RNG_AVAILABLE
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
# define BLOCKING_RNG_AVAILABLE
|
# define BLOCKING_RNG_AVAILABLE
|
||||||
|
|
@ -591,8 +617,24 @@ NAMESPACE_END
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
||||||
|
# if !defined(WINAPI_FAMILY)
|
||||||
# define HAS_WINTHREADS
|
# define HAS_WINTHREADS
|
||||||
# define THREADS_AVAILABLE
|
# define THREADS_AVAILABLE
|
||||||
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
|
# define OS_RNG_AVAILABLE
|
||||||
|
# elif defined(WINAPI_FAMILY)
|
||||||
|
# if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# define HAS_WINTHREADS
|
||||||
|
# define THREADS_AVAILABLE
|
||||||
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
|
# define OS_RNG_AVAILABLE
|
||||||
|
# elif !(WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||||
|
# if ((WINVER >= 0x0A00 /*_WIN32_WINNT_WIN10*/) || (_WIN32_WINNT >= 0x0A00 /*_WIN32_WINNT_WIN10*/))
|
||||||
|
# define NONBLOCKING_RNG_AVAILABLE
|
||||||
|
# define OS_RNG_AVAILABLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // NO_OS_DEPENDENCE
|
#endif // NO_OS_DEPENDENCE
|
||||||
|
|
@ -688,6 +730,19 @@ NAMESPACE_END
|
||||||
// C++11 or C++14 is available
|
// C++11 or C++14 is available
|
||||||
#if defined(CRYPTOPP_CXX11)
|
#if defined(CRYPTOPP_CXX11)
|
||||||
|
|
||||||
|
// atomics: MS at VS2012 (17.00); GCC at 4.4; Clang at 3.1/3.2; and Intel 13.0.
|
||||||
|
#if (CRYPTOPP_MSC_VERSION >= 1700)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
#elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 1300)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
#elif defined(__clang__)
|
||||||
|
# if __has_feature(cxx_atomic)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
# endif
|
||||||
|
#elif (CRYPTOPP_GCC_VERSION >= 40400)
|
||||||
|
# define CRYPTOPP_CXX11_ATOMICS 1
|
||||||
|
#endif // atomics
|
||||||
|
|
||||||
// alignof/alignas: MS at VS2013 (19.00); GCC at 4.8; Clang at 3.3; and Intel 15.0.
|
// alignof/alignas: MS at VS2013 (19.00); GCC at 4.8; Clang at 3.3; and Intel 15.0.
|
||||||
#if (CRYPTOPP_MSC_VERSION >= 1900)
|
#if (CRYPTOPP_MSC_VERSION >= 1900)
|
||||||
# define CRYPTOPP_CXX11_ALIGNAS 1
|
# define CRYPTOPP_CXX11_ALIGNAS 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue