6 #ifndef CRYPTOPP_CONFIG_H 7 #define CRYPTOPP_CONFIG_H 12 #if !defined(IS_LITTLE_ENDIAN) && (defined(__BIG_ENDIAN__) || (defined(__s390__) || defined(__s390x__) || defined(__zarch__)) || (defined(__m68k__) || defined(__MC68K__)) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__MIPSEB__) || defined(__ARMEB__) || (defined(__MWERKS__) && !defined(__INTEL__))) 13 # define IS_BIG_ENDIAN 19 # define IS_LITTLE_ENDIAN 24 #if defined(IS_BIG_ENDIAN) && defined(__GNUC__) && defined(__BYTE_ORDER__) && (__BYTE_ORDER__ != __ORDER_BIG_ENDIAN__) 25 # error "IS_BIG_ENDIAN is set, but __BYTE_ORDER__ does not equal __ORDER_BIG_ENDIAN__" 27 #if defined(IS_LITTLE_ENDIAN) && defined(__GNUC__) && defined(__BYTE_ORDER__) && (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__) 28 # error "IS_LITTLE_ENDIAN is set, but __BYTE_ORDER__ does not equal __ORDER_LITTLE_ENDIAN__" 49 #if !defined(USE_MS_CRYPTOAPI) && !defined(USE_MS_CNGAPI) 50 # if (_MSC_VER >= 1900) || ((WINVER >= 0x0A00 ) || (_WIN32_WINNT >= 0x0A00 )) 51 # define USE_MS_CNGAPI 53 # define USE_MS_CRYPTOAPI 59 #ifndef CRYPTOPP_NO_UNALIGNED_DATA_ACCESS 60 # define CRYPTOPP_NO_UNALIGNED_DATA_ACCESS 66 #define CRYPTOPP_VERSION 570 71 #ifndef CRYPTOPP_DATA_DIR 72 # define CRYPTOPP_DATA_DIR "" 85 #if !defined(GZIP_OS_CODE) 86 # define GZIP_OS_CODE 0 107 #if !defined(NO_BERKELEY_STYLE_SOCKETS) && !defined(PREFER_BERKELEY_STYLE_SOCKETS) 108 # define PREFER_BERKELEY_STYLE_SOCKETS 116 #define CRYPTOPP_RIJNDAEL_NAME "AES" 124 #if (defined(DEBUG) || defined(_DEBUG)) && !defined(CRYPTOPP_DEBUG) 125 # define CRYPTOPP_DEBUG 1 137 #ifndef CRYPTOPP_INIT_PRIORITY 138 # define CRYPTOPP_INIT_PRIORITY 250 144 #if defined(CRYPTOPP_INIT_PRIORITY) && (CRYPTOPP_INIT_PRIORITY > 0) 145 # define CRYPTOPP_USER_PRIORITY (CRYPTOPP_INIT_PRIORITY + 101) 147 # define CRYPTOPP_USER_PRIORITY 350 151 #if (__GNUC__ && (CRYPTOPP_INIT_PRIORITY > 0) && ((CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20900) || (_INTEL_COMPILER >= 300)) && !(MACPORTS_GCC_COMPILER > 0) && !defined(__sun__)) 152 # define HAVE_GCC_CONSTRUCTOR1 1 156 #if (__GNUC__ && (CRYPTOPP_INIT_PRIORITY > 0) && !HAVE_GCC_CONSTRUCTOR1 && !(MACPORTS_GCC_COMPILER > 0) && !defined(__sun__)) 157 # define HAVE_GCC_CONSTRUCTOR0 1 160 #if (_MSC_VER && (CRYPTOPP_INIT_PRIORITY > 0)) 161 # define HAVE_MSC_INIT_PRIORITY 1 169 # error namespace support is now required 175 #define WORKAROUND_MS_BUG_Q258000 177 #ifdef CRYPTOPP_DOXYGEN_PROCESSING 189 # define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1 193 # define NAMESPACE_BEGIN(x) 194 # define NAMESPACE_END 196 # define DOCUMENTED_TYPEDEF(x, y) class y : public x {}; 198 # define protected private 200 # define NAMESPACE_BEGIN(x) namespace x { 201 # define NAMESPACE_END } 202 # define DOCUMENTED_TYPEDEF(x, y) typedef x y; 204 #define ANONYMOUS_NAMESPACE_BEGIN namespace { 205 #define ANONYMOUS_NAMESPACE_END } 206 #define USING_NAMESPACE(x) using namespace x; 207 #define DOCUMENTED_NAMESPACE_BEGIN(x) namespace x { 208 #define DOCUMENTED_NAMESPACE_END } 214 #ifndef TYPE_OF_SOCKLEN_T 215 # if defined(_WIN32) || defined(__CYGWIN__) 216 # define TYPE_OF_SOCKLEN_T int 218 # define TYPE_OF_SOCKLEN_T ::socklen_t 222 #if defined(__CYGWIN__) && defined(PREFER_WINDOWS_STYLE_SOCKETS) 223 # define __USE_W32_SOCKETS 233 #if defined(_MSC_VER) || defined(__BORLANDC__) 234 typedef unsigned __int64
word64;
235 #define W64LIT(x) x##ui64 236 #elif (_LP64 || __LP64__) 237 typedef unsigned long word64;
238 #define W64LIT(x) x##UL 241 #define W64LIT(x) x##ULL 250 #if defined(_MSC_VER) && defined(__clang__) 251 # error: "Unsupported configuration" 255 #define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) 259 #if defined(__clang__ ) && !defined(__apple_build_version__) 260 #define CRYPTOPP_LLVM_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) 261 #define CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER 1 262 #elif defined(__clang__ ) && defined(__apple_build_version__) 263 #define CRYPTOPP_APPLE_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) 264 #define CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER 1 268 #define CRYPTOPP_MSC_VERSION (_MSC_VER) 272 #if (CRYPTOPP_GCC_VERSION >= 40600) || (CRYPTOPP_LLVM_CLANG_VERSION >= 10700) || (CRYPTOPP_APPLE_CLANG_VERSION >= 20000) 273 #define CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE 1 278 #if (defined(CRYPTOPP_LLVM_CLANG_VERSION) && CRYPTOPP_LLVM_CLANG_VERSION <= 200000) || (defined(CRYPTOPP_APPLE_CLANG_VERSION) && CRYPTOPP_APPLE_CLANG_VERSION <= 200000) || defined(CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER) 279 #define CRYPTOPP_DISABLE_INTEL_ASM 1 284 #if (defined(_MSC_VER) && (!defined(__INTEL_COMPILER) || __INTEL_COMPILER >= 1000) && (defined(_M_X64) || defined(_M_IA64))) || (defined(__DECCXX) && defined(__alpha__)) || (defined(__INTEL_COMPILER) && defined(__x86_64__)) || (defined(__SUNPRO_CC) && defined(__x86_64__)) 285 typedef word32
hword;
288 #define CRYPTOPP_NATIVE_DWORD_AVAILABLE 1 289 #if defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || defined(__x86_64__) || defined(__mips64) || defined(__sparc64__) 290 #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !(CRYPTOPP_GCC_VERSION == 40001 && defined(__APPLE__)) && CRYPTOPP_GCC_VERSION >= 30400 293 typedef word32
hword;
295 typedef __uint128_t
dword;
296 typedef __uint128_t word128;
297 #define CRYPTOPP_WORD128_AVAILABLE 1 300 typedef word16
hword;
302 typedef word64
dword;
306 #define CRYPTOPP_BOOL_SLOW_WORD64 1 312 #ifndef CRYPTOPP_BOOL_SLOW_WORD64 313 #define CRYPTOPP_BOOL_SLOW_WORD64 0 321 #ifndef CRYPTOPP_L1_CACHE_LINE_SIZE 324 #if defined(_M_X64) || defined(__x86_64__) || (__arm64__) || (__aarch64__) 325 #define CRYPTOPP_L1_CACHE_LINE_SIZE 64 328 #define CRYPTOPP_L1_CACHE_LINE_SIZE 32 332 #ifndef CRYPTOPP_ALIGN_DATA 333 #if defined(_MSC_VER) 334 #define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x)) 335 #elif defined(__GNUC__) 336 #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x))) 338 #define CRYPTOPP_ALIGN_DATA(x) 342 #ifndef CRYPTOPP_SECTION_ALIGN16 343 #if defined(__GNUC__) && !defined(__APPLE__) 345 #define CRYPTOPP_SECTION_ALIGN16 __attribute__((section ("CryptoPP_Align16"))) 347 #define CRYPTOPP_SECTION_ALIGN16 352 #if ((defined(__MACH__) && defined(__APPLE__)) && ((CRYPTOPP_LLVM_CLANG_VERSION >= 30600) || (CRYPTOPP_APPLE_CLANG_VERSION >= 70100) || (CRYPTOPP_GCC_VERSION >= 40300))) 353 #define CRYPTOPP_SECTION_INIT __attribute__((section ("__DATA,__data"))) 354 #elif (defined(__ELF__) && (CRYPTOPP_GCC_VERSION >= 40300)) 355 #define CRYPTOPP_SECTION_INIT __attribute__((section ("nocommon"))) 357 #define CRYPTOPP_SECTION_INIT 360 #if defined(_MSC_VER) || defined(__fastcall) 361 #define CRYPTOPP_FASTCALL __fastcall 363 #define CRYPTOPP_FASTCALL 367 #define CRYPTOPP_NO_VTABLE __declspec(novtable) 369 #define CRYPTOPP_NO_VTABLE 385 # pragma warning(disable: 4127 4231 4250 4251 4275 4505 4512 4660 4661 4786 4355 4910) 388 # pragma warning(once: 4191 4242 4263 4264 4266 4302 4826 4905 4906 4928) 397 #if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE 398 # pragma GCC diagnostic ignored "-Wunknown-pragmas" 399 # pragma GCC diagnostic ignored "-Wunused-function" 405 #if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || (defined(_STLPORT_VERSION) && ((_STLPORT_VERSION < 0x450) || defined(_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT))) 406 #define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION 409 #ifndef CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION 410 #define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE 414 #if defined(CRYPTOPP_APPLE_CLANG_VERSION) && (CRYPTOPP_APPLE_CLANG_VERSION < 50000) 415 # define CRYPTOPP_DISABLE_ASM 420 #if !defined(CRYPTOPP_DISABLE_ASM) && !defined(__SSE2__) && defined(__x86_64__) && (__SUNPRO_CC >= 0x5100) 424 #if !defined(CRYPTOPP_DISABLE_ASM) && ((defined(_MSC_VER) && defined(_M_IX86)) || (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)))) 426 #define CRYPTOPP_X86_ASM_AVAILABLE 428 #if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(_MSC_VER) || CRYPTOPP_GCC_VERSION >= 30300 || defined(__SSE2__)) 429 #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 1 431 #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0 434 #if !defined(CRYPTOPP_DISABLE_SSE3) && (_MSC_VER >= 1500 || (defined(__SSE3__) && defined(__SSSE3__))) 435 #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1 437 #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0 441 #if !defined(CRYPTOPP_DISABLE_ASM) && defined(_MSC_VER) && defined(_M_X64) 442 #define CRYPTOPP_X64_MASM_AVAILABLE 445 #if !defined(CRYPTOPP_DISABLE_ASM) && defined(__GNUC__) && defined(__x86_64__) 446 #define CRYPTOPP_X64_ASM_AVAILABLE 449 #if !defined(CRYPTOPP_DISABLE_ASM) && (defined(_MSC_VER) || defined(__SSE2__)) && !defined(_M_ARM) 450 #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 1 452 #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 0 458 #if !defined(CRYPTOPP_DISABLE_ASM) && !defined(CRYPTOPP_DISABLE_SSE4) && !defined(_M_ARM) && ((_MSC_VER >= 1500) || (defined(__SSE4_1__) && defined(__SSE4_2__))) 459 #define CRYPTOPP_BOOL_SSE4_INTRINSICS_AVAILABLE 1 461 #define CRYPTOPP_BOOL_SSE4_INTRINSICS_AVAILABLE 0 465 #if !defined(CRYPTOPP_DISABLE_ASM) && !defined(CRYPTOPP_DISABLE_AESNI) && !defined(_M_ARM) && (_MSC_FULL_VER >= 150030729 || __INTEL_COMPILER >= 1110 || (defined(__AES__) && defined(__PCLMUL__))) 466 #define CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE 1 468 #define CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE 0 471 #if !defined(CRYPTOPP_DISABLE_ASM) && !defined(CRYPTOPP_DISABLE_SHA) && !defined(_M_ARM) && ((_MSC_VER >= 1900) || defined(__SHA__)) 472 #define CRYPTOPP_BOOL_SSE_SHA_INTRINSICS_AVAILABLE 1 474 #define CRYPTOPP_BOOL_SSE_SHA_INTRINSICS_AVAILABLE 0 478 #if !defined(CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) 479 # if defined(__ARM_NEON__) || defined(__ARM_NEON) || defined(_M_ARM) 480 # define CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE 1 487 #if !defined(CRYPTOPP_BOOL_ARM_CRC32_INTRINSICS_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) 488 # if defined(__ARM_FEATURE_CRC32) || defined(_M_ARM64) 489 # define CRYPTOPP_BOOL_ARM_CRC32_INTRINSICS_AVAILABLE 1 496 #if !defined(CRYPTOPP_BOOL_ARM_CRYPTO_INTRINSICS_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) 497 # if defined(__ARM_FEATURE_CRYPTO) || defined(_M_ARM64) 498 # define CRYPTOPP_BOOL_ARM_CRYPTO_INTRINSICS_AVAILABLE 1 502 #if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) 503 #define CRYPTOPP_BOOL_ALIGN16 1 505 #define CRYPTOPP_BOOL_ALIGN16 0 509 #if defined(_MSC_VER) 510 #define CRYPTOPP_MM_MALLOC_AVAILABLE 511 #elif defined(__APPLE__) 512 #define CRYPTOPP_APPLE_MALLOC_AVAILABLE 513 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 514 #define CRYPTOPP_MALLOC_ALIGNMENT_IS_16 515 #elif defined(__linux__) || defined(__sun__) || defined(__CYGWIN__) 516 #define CRYPTOPP_MEMALIGN_AVAILABLE 518 #define CRYPTOPP_NO_ALIGNED_ALLOC 525 #if defined(_MSC_VER) 526 # define CRYPTOPP_NOINLINE_DOTDOTDOT 527 # define CRYPTOPP_NOINLINE __declspec(noinline) 528 #elif defined(__GNUC__) 529 # define CRYPTOPP_NOINLINE_DOTDOTDOT 530 # define CRYPTOPP_NOINLINE __attribute__((noinline)) 532 # define CRYPTOPP_NOINLINE_DOTDOTDOT ... 533 # define CRYPTOPP_NOINLINE 537 #if (_MSC_VER == 1300) || defined(__INTEL_COMPILER) || defined(__BORLANDC__) 538 # define CRYPTOPP_CONSTANT(x) enum {x}; 540 # define CRYPTOPP_CONSTANT(x) static const int x; 546 #if (defined(__ILP32__) || defined(_ILP32)) && defined(__x86_64__) 547 #define CRYPTOPP_BOOL_X32 1 549 #define CRYPTOPP_BOOL_X32 0 553 #if (defined(_M_IX86) || defined(__i386__) || defined(__i386) || defined(_X86_) || defined(__I86__) || defined(__INTEL__)) && !CRYPTOPP_BOOL_X32 554 #define CRYPTOPP_BOOL_X86 1 556 #define CRYPTOPP_BOOL_X86 0 559 #if (defined(_M_X64) || defined(__x86_64__)) && !CRYPTOPP_BOOL_X32 560 #define CRYPTOPP_BOOL_X64 1 562 #define CRYPTOPP_BOOL_X64 0 566 #if CRYPTOPP_BOOL_X32 567 # undef CRYPTOPP_BOOL_X64 568 # undef CRYPTOPP_X64_ASM_AVAILABLE 569 # undef CRYPTOPP_X64_MASM_AVAILABLE 572 #if defined(__arm__) || defined(__aarch32__) || defined(_M_ARM) 573 #define CRYPTOPP_BOOL_ARM32 1 575 #define CRYPTOPP_BOOL_ARM32 0 580 #if defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64) 581 #define CRYPTOPP_BOOL_ARM64 1 583 #define CRYPTOPP_BOOL_ARM64 0 586 #if !defined(CRYPTOPP_NO_UNALIGNED_DATA_ACCESS) && !defined(CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS) 587 #if (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || defined(__powerpc__) || (__ARM_FEATURE_UNALIGNED >= 1)) 588 #define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS 594 #ifndef NO_OS_DEPENDENCE 596 #if defined(_WIN32) || defined(__CYGWIN__) 597 #define CRYPTOPP_WIN32_AVAILABLE 600 #if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun) 601 #define CRYPTOPP_UNIX_AVAILABLE 604 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 605 #define CRYPTOPP_BSD_AVAILABLE 608 #if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE) 609 # define HIGHRES_TIMER_AVAILABLE 612 #ifdef CRYPTOPP_WIN32_AVAILABLE 613 # if !defined(WINAPI_FAMILY) 614 # define THREAD_TIMER_AVAILABLE 615 # elif defined(WINAPI_FAMILY) 616 # if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) 617 # define THREAD_TIMER_AVAILABLE 622 #ifdef CRYPTOPP_UNIX_AVAILABLE 623 # define HAS_BERKELEY_STYLE_SOCKETS 624 # define SOCKETS_AVAILABLE 628 #ifdef CRYPTOPP_WIN32_AVAILABLE 629 # define HAS_WINDOWS_STYLE_SOCKETS 630 # if !defined(WINAPI_FAMILY) 631 # define SOCKETS_AVAILABLE 632 # elif defined(WINAPI_FAMILY) 633 # if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) 634 # define SOCKETS_AVAILABLE 639 #if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS)) 640 # define USE_WINDOWS_STYLE_SOCKETS 642 # define USE_BERKELEY_STYLE_SOCKETS 645 #if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(SOCKETS_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS) 646 # define WINDOWS_PIPES_AVAILABLE 649 #if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING) 650 # define NONBLOCKING_RNG_AVAILABLE 651 # define BLOCKING_RNG_AVAILABLE 652 # define OS_RNG_AVAILABLE 653 # define HAS_PTHREADS 654 # define THREADS_AVAILABLE 659 #if defined(CRYPTOPP_UNIX_AVAILABLE) && !defined(__CYGWIN__) 660 # define UNIX_SIGNALS_AVAILABLE 1 663 #ifdef CRYPTOPP_WIN32_AVAILABLE 664 # if !defined(WINAPI_FAMILY) 665 # define HAS_WINTHREADS 666 # define THREADS_AVAILABLE 667 # define NONBLOCKING_RNG_AVAILABLE 668 # define OS_RNG_AVAILABLE 669 # elif defined(WINAPI_FAMILY) 670 # if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) 671 # define HAS_WINTHREADS 672 # define THREADS_AVAILABLE 673 # define NONBLOCKING_RNG_AVAILABLE 674 # define OS_RNG_AVAILABLE 675 # elif !(WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) 676 # if ((WINVER >= 0x0A00 ) || (_WIN32_WINNT >= 0x0A00 )) 677 # define NONBLOCKING_RNG_AVAILABLE 678 # define OS_RNG_AVAILABLE 684 #endif // NO_OS_DEPENDENCE 688 #if defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(CRYPTOPP_DOXYGEN_PROCESSING) 690 #ifdef CRYPTOPP_EXPORTS 691 #define CRYPTOPP_IS_DLL 692 #define CRYPTOPP_DLL __declspec(dllexport) 693 #elif defined(CRYPTOPP_IMPORTS) 694 #define CRYPTOPP_IS_DLL 695 #define CRYPTOPP_DLL __declspec(dllimport) 700 #define CRYPTOPP_API __cdecl 702 #else // not CRYPTOPP_WIN32_AVAILABLE 707 #endif // CRYPTOPP_WIN32_AVAILABLE 709 #if defined(__MWERKS__) 710 #define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern class CRYPTOPP_DLL 711 #elif defined(__BORLANDC__) || defined(__SUNPRO_CC) 712 #define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL 714 #define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern template class CRYPTOPP_DLL 717 #if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_IMPORTS) 718 #define CRYPTOPP_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL 720 #define CRYPTOPP_DLL_TEMPLATE_CLASS CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS 723 #if defined(__MWERKS__) 724 #define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern class 725 #elif defined(__BORLANDC__) || defined(__SUNPRO_CC) 726 #define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class 728 #define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern template class 731 #if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_EXPORTS) 732 #define CRYPTOPP_STATIC_TEMPLATE_CLASS template class 734 #define CRYPTOPP_STATIC_TEMPLATE_CLASS CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS 741 #define CRYPTOPP_UNUSED(x) ((void)(x)) 745 #if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800) 746 # define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated (msg))); 747 #elif (CRYPTOPP_GCC_VERSION) 748 # define CRYPTOPP_DEPRECATED(msg) __attribute__((deprecated)); 750 # define CRYPTOPP_DEPRECATED(msg) 759 #if ((_MSC_VER >= 1600) || (__cplusplus >= 201103L)) && !defined(_STLPORT_VERSION) 760 # define CRYPTOPP_CXX11 1 768 #if defined(__APPLE__) && defined(__clang__) 769 # if !(defined(__has_include) && __has_include(<forward_list>)) 770 # undef CRYPTOPP_CXX11 775 #if defined(CRYPTOPP_CXX11) 778 #if (CRYPTOPP_MSC_VERSION >= 1700) 779 # define CRYPTOPP_CXX11_ATOMICS 1 780 #elif (__INTEL_COMPILER >= 1300) 781 # define CRYPTOPP_CXX11_ATOMICS 1 782 #elif defined(__clang__) 783 # if __has_feature(cxx_atomic) 784 # define CRYPTOPP_CXX11_ATOMICS 1 786 #elif (CRYPTOPP_GCC_VERSION >= 40400) 787 # define CRYPTOPP_CXX11_ATOMICS 1 788 #elif (__SUNPRO_CC >= 0x5140) 789 # define CRYPTOPP_CXX11_ATOMICS 1 794 #if (CRYPTOPP_MSC_VERSION >= 1700) 795 # define CRYPTOPP_CXX11_SYNCHRONIZATION 1 796 #elif (__INTEL_COMPILER >= 1200) 797 # define CRYPTOPP_CXX11_SYNCHRONIZATION 1 798 #elif (CRYPTOPP_LLVM_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 50000) 799 # define CRYPTOPP_CXX11_SYNCHRONIZATION 1 800 #elif (CRYPTOPP_GCC_VERSION >= 40400) 801 # define CRYPTOPP_CXX11_SYNCHRONIZATION 1 802 #elif (__SUNPRO_CC >= 0x5130) 803 # define CRYPTOPP_CXX11_SYNCHRONIZATION 1 804 #endif // synchronization 807 #if (CRYPTOPP_MSC_VERSION >= 1900) 808 # define CRYPTOPP_CXX11_ALIGNAS 1 809 # define CRYPTOPP_CXX11_ALIGNOF 1 810 #elif (__INTEL_COMPILER >= 1500) 811 # define CRYPTOPP_CXX11_ALIGNAS 1 812 # define CRYPTOPP_CXX11_ALIGNOF 1 813 #elif defined(__clang__) 814 # if __has_feature(cxx_alignas) 815 # define CRYPTOPP_CXX11_ALIGNAS 1 817 # if __has_feature(cxx_alignof) 818 # define CRYPTOPP_CXX11_ALIGNOF 1 820 #elif (CRYPTOPP_GCC_VERSION >= 40800) 821 # define CRYPTOPP_CXX11_ALIGNAS 1 822 # define CRYPTOPP_CXX11_ALIGNOF 1 823 #elif (__SUNPRO_CC >= 0x5130) 824 # define CRYPTOPP_CXX11_ALIGNAS 1 825 # define CRYPTOPP_CXX11_ALIGNOF 1 826 #endif // alignof/alignas 829 #if (CRYPTOPP_MSC_VERSION >= 1900) 830 # define CRYPTOPP_CXX11_NOEXCEPT 1 831 #elif (__INTEL_COMPILER >= 1400) 832 # define CRYPTOPP_CXX11_NOEXCEPT 1 833 #elif defined(__clang__) 834 # if __has_feature(cxx_noexcept) 835 # define CRYPTOPP_CXX11_NOEXCEPT 1 837 #elif (CRYPTOPP_GCC_VERSION >= 40600) 838 # define CRYPTOPP_CXX11_NOEXCEPT 1 839 #elif (__SUNPRO_CC >= 0x5130) 840 # define CRYPTOPP_CXX11_NOEXCEPT 1 841 #endif // noexcept compilers 844 #if (CRYPTOPP_MSC_VERSION >= 1800) 845 # define CRYPTOPP_CXX11_VARIADIC_TEMPLATES 1 846 #elif (__INTEL_COMPILER >= 1210) 847 # define CRYPTOPP_CXX11_VARIADIC_TEMPLATES 1 848 #elif defined(__clang__) 849 # if __has_feature(cxx_variadic_templates) 850 # define CRYPTOPP_CXX11_VARIADIC_TEMPLATES 1 852 #elif (CRYPTOPP_GCC_VERSION >= 40300) 853 # define CRYPTOPP_CXX11_VARIADIC_TEMPLATES 1 854 #elif (__SUNPRO_CC >= 0x5130) 855 # define CRYPTOPP_CXX11_VARIADIC_TEMPLATES 1 856 #endif // variadic templates 860 #if (CRYPTOPP_MSC_VERSION >= 1900) 861 # define CRYPTOPP_CXX11_CONSTEXPR 1 862 #elif (__INTEL_COMPILER >= 1600) 863 # define CRYPTOPP_CXX11_CONSTEXPR 1 864 #elif defined(__clang__) 865 # if __has_feature(cxx_constexpr) 866 # define CRYPTOPP_CXX11_CONSTEXPR 1 868 #elif (CRYPTOPP_GCC_VERSION >= 40600) 869 # define CRYPTOPP_CXX11_CONSTEXPR 1 870 #elif (__SUNPRO_CC >= 0x5130) 871 # define CRYPTOPP_CXX11_CONSTEXPR 1 872 #endif // constexpr compilers 877 #endif // CRYPTOPP_CXX11 879 #if defined(CRYPTOPP_CXX11_NOEXCEPT) 880 # define CRYPTOPP_THROW noexcept(false) 881 # define CRYPTOPP_NO_THROW noexcept(true) 883 # define CRYPTOPP_THROW 884 # define CRYPTOPP_NO_THROW 885 #endif // CRYPTOPP_CXX11_NOEXCEPT 888 #if defined(CRYPTOPP_CXX11_CONSTEXPR) 889 # define CRYPTOPP_STATIC_CONSTEXPR static constexpr 890 # define CRYPTOPP_CONSTEXPR constexpr 892 # define CRYPTOPP_STATIC_CONSTEXPR static 893 # define CRYPTOPP_CONSTEXPR 894 #endif // CRYPTOPP_CXX11_CONSTEXPR 897 #if defined(CRYPTOPP_CXX11_ALIGNAS) 898 # undef CRYPTOPP_ALIGN_DATA 899 # define CRYPTOPP_ALIGN_DATA(x) alignas(x) 900 #endif // CRYPTOPP_CXX11_ALIGNAS 904 #if defined(CRYPTOPP_CXX11_CONSTEXPR) 905 # undef CRYPTOPP_CONSTANT 906 # define CRYPTOPP_CONSTANT(x) constexpr static int x; 911 #if (defined(__cplusplus) && (__cplusplus >= 199711L) && (__cplusplus < 201402L)) && !defined(CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE) 912 # error "std::uncaught_exception is not available. This is likely a configuration error."
#define NAMESPACE_BEGIN(x)
const unsigned int WORD_BITS
unsigned long long word64
const unsigned int WORD_SIZE