Better wording for transaction fee notification messages
[novacoin.git] / cryptopp / config.h
index c192d35..0737027 100644 (file)
-#ifndef CRYPTOPP_CONFIG_H\r
-#define CRYPTOPP_CONFIG_H\r
-\r
-// ***************** Important Settings ********************\r
-\r
-// define this if running on a big-endian CPU\r
-#if !defined(IS_LITTLE_ENDIAN) && (defined(__BIG_ENDIAN__) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__mips__) || (defined(__MWERKS__) && !defined(__INTEL__)))\r
-#      define IS_BIG_ENDIAN\r
-#endif\r
-\r
-// define this if running on a little-endian CPU\r
-// big endian will be assumed if IS_LITTLE_ENDIAN is not defined\r
-#ifndef IS_BIG_ENDIAN\r
-#      define IS_LITTLE_ENDIAN\r
-#endif\r
-\r
-// define this if you want to disable all OS-dependent features,\r
-// such as sockets and OS-provided random number generators\r
-// #define NO_OS_DEPENDENCE\r
-\r
-// Define this to use features provided by Microsoft's CryptoAPI.\r
-// Currently the only feature used is random number generation.\r
-// This macro will be ignored if NO_OS_DEPENDENCE is defined.\r
-#define USE_MS_CRYPTOAPI\r
-\r
-// Define this to 1 to enforce the requirement in FIPS 186-2 Change Notice 1 that only 1024 bit moduli be used\r
-#ifndef DSA_1024_BIT_MODULUS_ONLY\r
-#      define DSA_1024_BIT_MODULUS_ONLY 1\r
-#endif\r
-\r
-// ***************** Less Important Settings ***************\r
-\r
-// define this to retain (as much as possible) old deprecated function and class names\r
-// #define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY\r
-\r
-#define GZIP_OS_CODE 0\r
-\r
-// Try this if your CPU has 256K internal cache or a slow multiply instruction\r
-// and you want a (possibly) faster IDEA implementation using log tables\r
-// #define IDEA_LARGECACHE\r
-\r
-// Define this if, for the linear congruential RNG, you want to use\r
-// the original constants as specified in S.K. Park and K.W. Miller's\r
-// CACM paper.\r
-// #define LCRNG_ORIGINAL_NUMBERS\r
-\r
-// choose which style of sockets to wrap (mostly useful for cygwin which has both)\r
-#define PREFER_BERKELEY_STYLE_SOCKETS\r
-// #define PREFER_WINDOWS_STYLE_SOCKETS\r
-\r
-// set the name of Rijndael cipher, was "Rijndael" before version 5.3\r
-#define CRYPTOPP_RIJNDAEL_NAME "AES"\r
-\r
-// ***************** Important Settings Again ********************\r
-// But the defaults should be ok.\r
-\r
-// namespace support is now required\r
-#ifdef NO_NAMESPACE\r
-#      error namespace support is now required\r
-#endif\r
-\r
-// Define this to workaround a Microsoft CryptoAPI bug where\r
-// each call to CryptAcquireContext causes a 100 KB memory leak.\r
-// Defining this will cause Crypto++ to make only one call to CryptAcquireContext.\r
-#define WORKAROUND_MS_BUG_Q258000\r
-\r
-#ifdef CRYPTOPP_DOXYGEN_PROCESSING\r
-// Avoid putting "CryptoPP::" in front of everything in Doxygen output\r
-#      define CryptoPP\r
-#      define NAMESPACE_BEGIN(x)\r
-#      define NAMESPACE_END\r
-// Get Doxygen to generate better documentation for these typedefs\r
-#      define DOCUMENTED_TYPEDEF(x, y) class y : public x {};\r
-#else\r
-#      define NAMESPACE_BEGIN(x) namespace x {\r
-#      define NAMESPACE_END }\r
-#      define DOCUMENTED_TYPEDEF(x, y) typedef x y;\r
-#endif\r
-#define ANONYMOUS_NAMESPACE_BEGIN namespace {\r
-#define USING_NAMESPACE(x) using namespace x;\r
-#define DOCUMENTED_NAMESPACE_BEGIN(x) namespace x {\r
-#define DOCUMENTED_NAMESPACE_END }\r
-\r
-// What is the type of the third parameter to bind?\r
-// For Unix, the new standard is ::socklen_t (typically unsigned int), and the old standard is int.\r
-// Unfortunately there is no way to tell whether or not socklen_t is defined.\r
-// To work around this, TYPE_OF_SOCKLEN_T is a macro so that you can change it from the makefile.\r
-#ifndef TYPE_OF_SOCKLEN_T\r
-#      if defined(_WIN32) || defined(__CYGWIN__)\r
-#              define TYPE_OF_SOCKLEN_T int\r
-#      else\r
-#              define TYPE_OF_SOCKLEN_T ::socklen_t\r
-#      endif\r
-#endif\r
-\r
-#if defined(__CYGWIN__) && defined(PREFER_WINDOWS_STYLE_SOCKETS)\r
-#      define __USE_W32_SOCKETS\r
-#endif\r
-\r
-typedef unsigned char byte;            // put in global namespace to avoid ambiguity with other byte typedefs\r
-\r
-NAMESPACE_BEGIN(CryptoPP)\r
-\r
-typedef unsigned short word16;\r
-typedef unsigned int word32;\r
-\r
-#if defined(_MSC_VER) || defined(__BORLANDC__)\r
-       typedef unsigned __int64 word64;\r
-       #define W64LIT(x) x##ui64\r
-#else\r
-       typedef unsigned long long word64;\r
-       #define W64LIT(x) x##ULL\r
-#endif\r
-\r
-// define large word type, used for file offsets and such\r
-typedef word64 lword;\r
-const lword LWORD_MAX = W64LIT(0xffffffffffffffff);\r
-\r
-#ifdef __GNUC__\r
-       #define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)\r
-#endif\r
-\r
-// define hword, word, and dword. these are used for multiprecision integer arithmetic\r
-// Intel compiler won't have _umul128 until version 10.0. See http://softwarecommunity.intel.com/isn/Community/en-US/forums/thread/30231625.aspx\r
-#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__))\r
-       typedef word32 hword;\r
-       typedef word64 word;\r
-#else\r
-       #define CRYPTOPP_NATIVE_DWORD_AVAILABLE\r
-       #if defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || defined(__x86_64__) || defined(__mips64) || defined(__sparc64__)\r
-               #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !(CRYPTOPP_GCC_VERSION == 40001 && defined(__APPLE__)) && CRYPTOPP_GCC_VERSION >= 30400\r
-                       // GCC 4.0.1 on MacOS X is missing __umodti3 and __udivti3\r
-                       // mode(TI) division broken on amd64 with GCC earlier than GCC 3.4\r
-                       typedef word32 hword;\r
-                       typedef word64 word;\r
-                       typedef __uint128_t dword;\r
-                       typedef __uint128_t word128;\r
-                       #define CRYPTOPP_WORD128_AVAILABLE\r
-               #else\r
-                       // if we're here, it means we're on a 64-bit CPU but we don't have a way to obtain 128-bit multiplication results\r
-                       typedef word16 hword;\r
-                       typedef word32 word;\r
-                       typedef word64 dword;\r
-               #endif\r
-       #else\r
-               // being here means the native register size is probably 32 bits or less\r
-               #define CRYPTOPP_BOOL_SLOW_WORD64 1\r
-               typedef word16 hword;\r
-               typedef word32 word;\r
-               typedef word64 dword;\r
-       #endif\r
-#endif\r
-#ifndef CRYPTOPP_BOOL_SLOW_WORD64\r
-       #define CRYPTOPP_BOOL_SLOW_WORD64 0\r
-#endif\r
-\r
-const unsigned int WORD_SIZE = sizeof(word);\r
-const unsigned int WORD_BITS = WORD_SIZE * 8;\r
-\r
-NAMESPACE_END\r
-\r
-#ifndef CRYPTOPP_L1_CACHE_LINE_SIZE\r
-       // This should be a lower bound on the L1 cache line size. It's used for defense against timing attacks.\r
-       #if defined(_M_X64) || defined(__x86_64__)\r
-               #define CRYPTOPP_L1_CACHE_LINE_SIZE 64\r
-       #else\r
-               // L1 cache line size is 32 on Pentium III and earlier\r
-               #define CRYPTOPP_L1_CACHE_LINE_SIZE 32\r
-       #endif\r
-#endif\r
-\r
-#if defined(_MSC_VER)\r
-       #if _MSC_VER == 1200\r
-               #include <malloc.h>\r
-       #endif\r
-       #if _MSC_VER > 1200 || defined(_mm_free)\r
-               #define CRYPTOPP_MSVC6PP_OR_LATER               // VC 6 processor pack or later\r
-       #else\r
-               #define CRYPTOPP_MSVC6_NO_PP                    // VC 6 without processor pack\r
-       #endif\r
-#endif\r
-\r
-#ifndef CRYPTOPP_ALIGN_DATA\r
-       #if defined(CRYPTOPP_MSVC6PP_OR_LATER)\r
-               #define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x))\r
-       #elif defined(__GNUC__)\r
-               #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x)))\r
-       #else\r
-               #define CRYPTOPP_ALIGN_DATA(x)\r
-       #endif\r
-#endif\r
-\r
-#ifndef CRYPTOPP_SECTION_ALIGN16\r
-       #if defined(__GNUC__) && !defined(__APPLE__)\r
-               // the alignment attribute doesn't seem to work without this section attribute when -fdata-sections is turned on\r
-               #define CRYPTOPP_SECTION_ALIGN16 __attribute__((section ("CryptoPP_Align16")))\r
-       #else\r
-               #define CRYPTOPP_SECTION_ALIGN16\r
-       #endif\r
-#endif\r
-\r
-#if defined(_MSC_VER) || defined(__fastcall)\r
-       #define CRYPTOPP_FASTCALL __fastcall\r
-#else\r
-       #define CRYPTOPP_FASTCALL\r
-#endif\r
-\r
-// VC60 workaround: it doesn't allow typename in some places\r
-#if defined(_MSC_VER) && (_MSC_VER < 1300)\r
-#define CPP_TYPENAME\r
-#else\r
-#define CPP_TYPENAME typename\r
-#endif\r
-\r
-// VC60 workaround: can't cast unsigned __int64 to float or double\r
-#if defined(_MSC_VER) && !defined(CRYPTOPP_MSVC6PP_OR_LATER)\r
-#define CRYPTOPP_VC6_INT64 (__int64)\r
-#else\r
-#define CRYPTOPP_VC6_INT64\r
-#endif\r
-\r
-#ifdef _MSC_VER\r
-#define CRYPTOPP_NO_VTABLE __declspec(novtable)\r
-#else\r
-#define CRYPTOPP_NO_VTABLE\r
-#endif\r
-\r
-#ifdef _MSC_VER\r
-       // 4231: nonstandard extension used : 'extern' before template explicit instantiation\r
-       // 4250: dominance\r
-       // 4251: member needs to have dll-interface\r
-       // 4275: base needs to have dll-interface\r
-       // 4660: explicitly instantiating a class that's already implicitly instantiated\r
-       // 4661: no suitable definition provided for explicit template instantiation request\r
-       // 4786: identifer was truncated in debug information\r
-       // 4355: 'this' : used in base member initializer list\r
-       // 4910: '__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation\r
-#      pragma warning(disable: 4231 4250 4251 4275 4660 4661 4786 4355 4910)\r
-#endif\r
-\r
-#ifdef __BORLANDC__\r
-// 8037: non-const function called for const object. needed to work around BCB2006 bug\r
-#      pragma warn -8037\r
-#endif\r
-\r
-#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || defined(_STLPORT_VERSION)\r
-#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION\r
-#endif\r
-\r
-#ifndef CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION\r
-#define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE\r
-#endif\r
-\r
-#ifdef CRYPTOPP_DISABLE_X86ASM         // for backwards compatibility: this macro had both meanings\r
-#define CRYPTOPP_DISABLE_ASM\r
-#define CRYPTOPP_DISABLE_SSE2\r
-#endif\r
-\r
-#if !defined(CRYPTOPP_DISABLE_ASM) && ((defined(_MSC_VER) && defined(_M_IX86)) || (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))))\r
-       #define CRYPTOPP_X86_ASM_AVAILABLE\r
-\r
-       #if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || CRYPTOPP_GCC_VERSION >= 30300)\r
-               #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 1\r
-       #else\r
-               #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0\r
-       #endif\r
-\r
-       // SSSE3 was actually introduced in GNU as 2.17, which was released 6/23/2006, but we can't tell what version of binutils is installed.\r
-       // GCC 4.1.2 was released on 2/13/2007, so we'll use that as a proxy for the binutils version.\r
-       #if !defined(CRYPTOPP_DISABLE_SSSE3) && (_MSC_VER >= 1400 || CRYPTOPP_GCC_VERSION >= 40102)\r
-               #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1\r
-       #else\r
-               #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0\r
-       #endif\r
-#endif\r
-\r
-#if !defined(CRYPTOPP_DISABLE_ASM) && defined(_MSC_VER) && defined(_M_X64)\r
-       #define CRYPTOPP_X64_MASM_AVAILABLE\r
-#endif\r
-\r
-#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__GNUC__) && defined(__x86_64__)\r
-       #define CRYPTOPP_X64_ASM_AVAILABLE\r
-#endif\r
-\r
-#if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || defined(__SSE2__))\r
-       #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 1\r
-#else\r
-       #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 0\r
-#endif\r
-\r
-#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE)\r
-       #define CRYPTOPP_BOOL_ALIGN16_ENABLED 1\r
-#else\r
-       #define CRYPTOPP_BOOL_ALIGN16_ENABLED 0\r
-#endif\r
-\r
-// how to allocate 16-byte aligned memory (for SSE2)\r
-#if defined(CRYPTOPP_MSVC6PP_OR_LATER)\r
-       #define CRYPTOPP_MM_MALLOC_AVAILABLE\r
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)\r
-       #define CRYPTOPP_MALLOC_ALIGNMENT_IS_16\r
-#elif defined(__linux__) || defined(__sun__) || defined(__CYGWIN__)\r
-       #define CRYPTOPP_MEMALIGN_AVAILABLE\r
-#else\r
-       #define CRYPTOPP_NO_ALIGNED_ALLOC\r
-#endif\r
-\r
-// how to disable inlining\r
-#if defined(_MSC_VER) && _MSC_VER >= 1300\r
-#      define CRYPTOPP_NOINLINE_DOTDOTDOT\r
-#      define CRYPTOPP_NOINLINE __declspec(noinline)\r
-#elif defined(__GNUC__)\r
-#      define CRYPTOPP_NOINLINE_DOTDOTDOT\r
-#      define CRYPTOPP_NOINLINE __attribute__((noinline))\r
-#else\r
-#      define CRYPTOPP_NOINLINE_DOTDOTDOT ...\r
-#      define CRYPTOPP_NOINLINE \r
-#endif\r
-\r
-// how to declare class constants\r
-#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER)\r
-#      define CRYPTOPP_CONSTANT(x) enum {x};\r
-#else\r
-#      define CRYPTOPP_CONSTANT(x) static const int x;\r
-#endif\r
-\r
-#if defined(_M_X64) || defined(__x86_64__)\r
-       #define CRYPTOPP_BOOL_X64 1\r
-#else\r
-       #define CRYPTOPP_BOOL_X64 0\r
-#endif\r
-\r
-// see http://predef.sourceforge.net/prearch.html\r
-#if defined(_M_IX86) || defined(__i386__) || defined(__i386) || defined(_X86_) || defined(__I86__) || defined(__INTEL__)\r
-       #define CRYPTOPP_BOOL_X86 1\r
-#else\r
-       #define CRYPTOPP_BOOL_X86 0\r
-#endif\r
-\r
-#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || defined(__powerpc__)\r
-       #define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS\r
-#endif\r
-\r
-#define CRYPTOPP_VERSION 560\r
-\r
-// ***************** determine availability of OS features ********************\r
-\r
-#ifndef NO_OS_DEPENDENCE\r
-\r
-#if defined(_WIN32) || defined(__CYGWIN__)\r
-#define CRYPTOPP_WIN32_AVAILABLE\r
-#endif\r
-\r
-#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun)\r
-#define CRYPTOPP_UNIX_AVAILABLE\r
-#endif\r
-\r
-#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE)\r
-#      define HIGHRES_TIMER_AVAILABLE\r
-#endif\r
-\r
-#ifdef CRYPTOPP_UNIX_AVAILABLE\r
-#      define HAS_BERKELEY_STYLE_SOCKETS\r
-#endif\r
-\r
-#ifdef CRYPTOPP_WIN32_AVAILABLE\r
-#      define HAS_WINDOWS_STYLE_SOCKETS\r
-#endif\r
-\r
-#if defined(HIGHRES_TIMER_AVAILABLE) && (defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(HAS_WINDOWS_STYLE_SOCKETS))\r
-#      define SOCKETS_AVAILABLE\r
-#endif\r
-\r
-#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS))\r
-#      define USE_WINDOWS_STYLE_SOCKETS\r
-#else\r
-#      define USE_BERKELEY_STYLE_SOCKETS\r
-#endif\r
-\r
-#if defined(HIGHRES_TIMER_AVAILABLE) && defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS)\r
-#      define WINDOWS_PIPES_AVAILABLE\r
-#endif\r
-\r
-#if defined(CRYPTOPP_WIN32_AVAILABLE) && defined(USE_MS_CRYPTOAPI)\r
-#      define NONBLOCKING_RNG_AVAILABLE\r
-#      define OS_RNG_AVAILABLE\r
-#endif\r
-\r
-#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)\r
-#      define NONBLOCKING_RNG_AVAILABLE\r
-#      define BLOCKING_RNG_AVAILABLE\r
-#      define OS_RNG_AVAILABLE\r
-#      define HAS_PTHREADS\r
-#      define THREADS_AVAILABLE\r
-#endif\r
-\r
-#ifdef CRYPTOPP_WIN32_AVAILABLE\r
-#      define HAS_WINTHREADS\r
-#      define THREADS_AVAILABLE\r
-#endif\r
-\r
-#endif // NO_OS_DEPENDENCE\r
-\r
-// ***************** DLL related ********************\r
-\r
-#ifdef CRYPTOPP_WIN32_AVAILABLE\r
-\r
-#ifdef CRYPTOPP_EXPORTS\r
-#define CRYPTOPP_IS_DLL\r
-#define CRYPTOPP_DLL __declspec(dllexport)\r
-#elif defined(CRYPTOPP_IMPORTS)\r
-#define CRYPTOPP_IS_DLL\r
-#define CRYPTOPP_DLL __declspec(dllimport)\r
-#else\r
-#define CRYPTOPP_DLL\r
-#endif\r
-\r
-#define CRYPTOPP_API __cdecl\r
-\r
-#else  // CRYPTOPP_WIN32_AVAILABLE\r
-\r
-#define CRYPTOPP_DLL\r
-#define CRYPTOPP_API\r
-\r
-#endif // CRYPTOPP_WIN32_AVAILABLE\r
-\r
-#if defined(__MWERKS__)\r
-#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern class CRYPTOPP_DLL\r
-#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)\r
-#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL\r
-#else\r
-#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern template class CRYPTOPP_DLL\r
-#endif\r
-\r
-#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_IMPORTS)\r
-#define CRYPTOPP_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL\r
-#else\r
-#define CRYPTOPP_DLL_TEMPLATE_CLASS CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS\r
-#endif\r
-\r
-#if defined(__MWERKS__)\r
-#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern class\r
-#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)\r
-#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class\r
-#else\r
-#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern template class\r
-#endif\r
-\r
-#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_EXPORTS)\r
-#define CRYPTOPP_STATIC_TEMPLATE_CLASS template class\r
-#else\r
-#define CRYPTOPP_STATIC_TEMPLATE_CLASS CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS\r
-#endif\r
-\r
-#endif\r
+#ifndef CRYPTOPP_CONFIG_H
+#define CRYPTOPP_CONFIG_H
+
+//// Bitcoin: disable SSE2 on 32-bit
+#if !defined(_M_X64) && !defined(__x86_64__)
+#define CRYPTOPP_DISABLE_SSE2  1
+#endif
+//////////// end of Bitcoin changes
+
+
+// ***************** Important Settings ********************
+
+// define this if running on a big-endian CPU
+#if !defined(IS_LITTLE_ENDIAN) && (defined(__BIG_ENDIAN__) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__mips__) || (defined(__MWERKS__) && !defined(__INTEL__)))
+#      define IS_BIG_ENDIAN
+#endif
+
+// define this if running on a little-endian CPU
+// big endian will be assumed if IS_LITTLE_ENDIAN is not defined
+#ifndef IS_BIG_ENDIAN
+#      define IS_LITTLE_ENDIAN
+#endif
+
+// define this if you want to disable all OS-dependent features,
+// such as sockets and OS-provided random number generators
+// #define NO_OS_DEPENDENCE
+
+// Define this to use features provided by Microsoft's CryptoAPI.
+// Currently the only feature used is random number generation.
+// This macro will be ignored if NO_OS_DEPENDENCE is defined.
+#define USE_MS_CRYPTOAPI
+
+// Define this to 1 to enforce the requirement in FIPS 186-2 Change Notice 1 that only 1024 bit moduli be used
+#ifndef DSA_1024_BIT_MODULUS_ONLY
+#      define DSA_1024_BIT_MODULUS_ONLY 1
+#endif
+
+// ***************** Less Important Settings ***************
+
+// define this to retain (as much as possible) old deprecated function and class names
+// #define CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY
+
+#define GZIP_OS_CODE 0
+
+// Try this if your CPU has 256K internal cache or a slow multiply instruction
+// and you want a (possibly) faster IDEA implementation using log tables
+// #define IDEA_LARGECACHE
+
+// Define this if, for the linear congruential RNG, you want to use
+// the original constants as specified in S.K. Park and K.W. Miller's
+// CACM paper.
+// #define LCRNG_ORIGINAL_NUMBERS
+
+// choose which style of sockets to wrap (mostly useful for cygwin which has both)
+#define PREFER_BERKELEY_STYLE_SOCKETS
+// #define PREFER_WINDOWS_STYLE_SOCKETS
+
+// set the name of Rijndael cipher, was "Rijndael" before version 5.3
+#define CRYPTOPP_RIJNDAEL_NAME "AES"
+
+// ***************** Important Settings Again ********************
+// But the defaults should be ok.
+
+// namespace support is now required
+#ifdef NO_NAMESPACE
+#      error namespace support is now required
+#endif
+
+// Define this to workaround a Microsoft CryptoAPI bug where
+// each call to CryptAcquireContext causes a 100 KB memory leak.
+// Defining this will cause Crypto++ to make only one call to CryptAcquireContext.
+#define WORKAROUND_MS_BUG_Q258000
+
+#ifdef CRYPTOPP_DOXYGEN_PROCESSING
+// Avoid putting "CryptoPP::" in front of everything in Doxygen output
+#      define CryptoPP
+#      define NAMESPACE_BEGIN(x)
+#      define NAMESPACE_END
+// Get Doxygen to generate better documentation for these typedefs
+#      define DOCUMENTED_TYPEDEF(x, y) class y : public x {};
+#else
+#      define NAMESPACE_BEGIN(x) namespace x {
+#      define NAMESPACE_END }
+#      define DOCUMENTED_TYPEDEF(x, y) typedef x y;
+#endif
+#define ANONYMOUS_NAMESPACE_BEGIN namespace {
+#define USING_NAMESPACE(x) using namespace x;
+#define DOCUMENTED_NAMESPACE_BEGIN(x) namespace x {
+#define DOCUMENTED_NAMESPACE_END }
+
+// What is the type of the third parameter to bind?
+// For Unix, the new standard is ::socklen_t (typically unsigned int), and the old standard is int.
+// Unfortunately there is no way to tell whether or not socklen_t is defined.
+// To work around this, TYPE_OF_SOCKLEN_T is a macro so that you can change it from the makefile.
+#ifndef TYPE_OF_SOCKLEN_T
+#      if defined(_WIN32) || defined(__CYGWIN__)
+#              define TYPE_OF_SOCKLEN_T int
+#      else
+#              define TYPE_OF_SOCKLEN_T ::socklen_t
+#      endif
+#endif
+
+#if defined(__CYGWIN__) && defined(PREFER_WINDOWS_STYLE_SOCKETS)
+#      define __USE_W32_SOCKETS
+#endif
+
+typedef unsigned char byte;            // put in global namespace to avoid ambiguity with other byte typedefs
+
+NAMESPACE_BEGIN(CryptoPP)
+
+typedef unsigned short word16;
+typedef unsigned int word32;
+
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+       typedef unsigned __int64 word64;
+       #define W64LIT(x) x##ui64
+#else
+       typedef unsigned long long word64;
+       #define W64LIT(x) x##ULL
+#endif
+
+// define large word type, used for file offsets and such
+typedef word64 lword;
+const lword LWORD_MAX = W64LIT(0xffffffffffffffff);
+
+#ifdef __GNUC__
+       #define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
+#endif
+
+// define hword, word, and dword. these are used for multiprecision integer arithmetic
+// Intel compiler won't have _umul128 until version 10.0. See http://softwarecommunity.intel.com/isn/Community/en-US/forums/thread/30231625.aspx
+#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__))
+       typedef word32 hword;
+       typedef word64 word;
+#else
+       #define CRYPTOPP_NATIVE_DWORD_AVAILABLE
+       #if defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || defined(__x86_64__) || defined(__mips64) || defined(__sparc64__)
+               #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !(CRYPTOPP_GCC_VERSION == 40001 && defined(__APPLE__)) && CRYPTOPP_GCC_VERSION >= 30400
+                       // GCC 4.0.1 on MacOS X is missing __umodti3 and __udivti3
+                       // mode(TI) division broken on amd64 with GCC earlier than GCC 3.4
+                       typedef word32 hword;
+                       typedef word64 word;
+                       typedef __uint128_t dword;
+                       typedef __uint128_t word128;
+                       #define CRYPTOPP_WORD128_AVAILABLE
+               #else
+                       // if we're here, it means we're on a 64-bit CPU but we don't have a way to obtain 128-bit multiplication results
+                       typedef word16 hword;
+                       typedef word32 word;
+                       typedef word64 dword;
+               #endif
+       #else
+               // being here means the native register size is probably 32 bits or less
+               #define CRYPTOPP_BOOL_SLOW_WORD64 1
+               typedef word16 hword;
+               typedef word32 word;
+               typedef word64 dword;
+       #endif
+#endif
+#ifndef CRYPTOPP_BOOL_SLOW_WORD64
+       #define CRYPTOPP_BOOL_SLOW_WORD64 0
+#endif
+
+const unsigned int WORD_SIZE = sizeof(word);
+const unsigned int WORD_BITS = WORD_SIZE * 8;
+
+NAMESPACE_END
+
+#ifndef CRYPTOPP_L1_CACHE_LINE_SIZE
+       // This should be a lower bound on the L1 cache line size. It's used for defense against timing attacks.
+       #if defined(_M_X64) || defined(__x86_64__)
+               #define CRYPTOPP_L1_CACHE_LINE_SIZE 64
+       #else
+               // L1 cache line size is 32 on Pentium III and earlier
+               #define CRYPTOPP_L1_CACHE_LINE_SIZE 32
+       #endif
+#endif
+
+#if defined(_MSC_VER)
+       #if _MSC_VER == 1200
+               #include <malloc.h>
+       #endif
+       #if _MSC_VER > 1200 || defined(_mm_free)
+               #define CRYPTOPP_MSVC6PP_OR_LATER               // VC 6 processor pack or later
+       #else
+               #define CRYPTOPP_MSVC6_NO_PP                    // VC 6 without processor pack
+       #endif
+#endif
+
+#ifndef CRYPTOPP_ALIGN_DATA
+       #if defined(CRYPTOPP_MSVC6PP_OR_LATER)
+               #define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x))
+       #elif defined(__GNUC__)
+               #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x)))
+       #else
+               #define CRYPTOPP_ALIGN_DATA(x)
+       #endif
+#endif
+
+#ifndef CRYPTOPP_SECTION_ALIGN16
+       #if defined(__GNUC__) && !defined(__APPLE__)
+               // the alignment attribute doesn't seem to work without this section attribute when -fdata-sections is turned on
+               #define CRYPTOPP_SECTION_ALIGN16 __attribute__((section ("CryptoPP_Align16")))
+       #else
+               #define CRYPTOPP_SECTION_ALIGN16
+       #endif
+#endif
+
+#if defined(_MSC_VER) || defined(__fastcall)
+       #define CRYPTOPP_FASTCALL __fastcall
+#else
+       #define CRYPTOPP_FASTCALL
+#endif
+
+// VC60 workaround: it doesn't allow typename in some places
+#if defined(_MSC_VER) && (_MSC_VER < 1300)
+#define CPP_TYPENAME
+#else
+#define CPP_TYPENAME typename
+#endif
+
+// VC60 workaround: can't cast unsigned __int64 to float or double
+#if defined(_MSC_VER) && !defined(CRYPTOPP_MSVC6PP_OR_LATER)
+#define CRYPTOPP_VC6_INT64 (__int64)
+#else
+#define CRYPTOPP_VC6_INT64
+#endif
+
+#ifdef _MSC_VER
+#define CRYPTOPP_NO_VTABLE __declspec(novtable)
+#else
+#define CRYPTOPP_NO_VTABLE
+#endif
+
+#ifdef _MSC_VER
+       // 4231: nonstandard extension used : 'extern' before template explicit instantiation
+       // 4250: dominance
+       // 4251: member needs to have dll-interface
+       // 4275: base needs to have dll-interface
+       // 4660: explicitly instantiating a class that's already implicitly instantiated
+       // 4661: no suitable definition provided for explicit template instantiation request
+       // 4786: identifer was truncated in debug information
+       // 4355: 'this' : used in base member initializer list
+       // 4910: '__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation
+#      pragma warning(disable: 4231 4250 4251 4275 4660 4661 4786 4355 4910)
+#endif
+
+#ifdef __BORLANDC__
+// 8037: non-const function called for const object. needed to work around BCB2006 bug
+#      pragma warn -8037
+#endif
+
+#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || defined(_STLPORT_VERSION)
+#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
+#endif
+
+#ifndef CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
+#define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE
+#endif
+
+#ifdef CRYPTOPP_DISABLE_X86ASM         // for backwards compatibility: this macro had both meanings
+#define CRYPTOPP_DISABLE_ASM
+#define CRYPTOPP_DISABLE_SSE2
+#endif
+
+#if !defined(CRYPTOPP_DISABLE_ASM) && ((defined(_MSC_VER) && defined(_M_IX86)) || (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))))
+       #define CRYPTOPP_X86_ASM_AVAILABLE
+
+       #if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || CRYPTOPP_GCC_VERSION >= 30300)
+               #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 1
+       #else
+               #define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
+       #endif
+
+       // SSSE3 was actually introduced in GNU as 2.17, which was released 6/23/2006, but we can't tell what version of binutils is installed.
+       // GCC 4.1.2 was released on 2/13/2007, so we'll use that as a proxy for the binutils version.
+       #if !defined(CRYPTOPP_DISABLE_SSSE3) && (_MSC_VER >= 1400 || CRYPTOPP_GCC_VERSION >= 40102)
+               #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1
+       #else
+               #define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
+       #endif
+#endif
+
+#if !defined(CRYPTOPP_DISABLE_ASM) && defined(_MSC_VER) && defined(_M_X64)
+       #define CRYPTOPP_X64_MASM_AVAILABLE
+#endif
+
+#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__GNUC__) && defined(__x86_64__)
+       #define CRYPTOPP_X64_ASM_AVAILABLE
+#endif
+
+#if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || defined(__SSE2__))
+       #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 1
+#else
+       #define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 0
+#endif
+
+#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE || CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE)
+       #define CRYPTOPP_BOOL_ALIGN16_ENABLED 1
+#else
+       #define CRYPTOPP_BOOL_ALIGN16_ENABLED 0
+#endif
+
+// how to allocate 16-byte aligned memory (for SSE2)
+#if defined(CRYPTOPP_MSVC6PP_OR_LATER)
+       #define CRYPTOPP_MM_MALLOC_AVAILABLE
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+       #define CRYPTOPP_MALLOC_ALIGNMENT_IS_16
+#elif defined(__linux__) || defined(__sun__) || defined(__CYGWIN__)
+       #define CRYPTOPP_MEMALIGN_AVAILABLE
+#else
+       #define CRYPTOPP_NO_ALIGNED_ALLOC
+#endif
+
+// how to disable inlining
+#if defined(_MSC_VER) && _MSC_VER >= 1300
+#      define CRYPTOPP_NOINLINE_DOTDOTDOT
+#      define CRYPTOPP_NOINLINE __declspec(noinline)
+#elif defined(__GNUC__)
+#      define CRYPTOPP_NOINLINE_DOTDOTDOT
+#      define CRYPTOPP_NOINLINE __attribute__((noinline))
+#else
+#      define CRYPTOPP_NOINLINE_DOTDOTDOT ...
+#      define CRYPTOPP_NOINLINE 
+#endif
+
+// how to declare class constants
+#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__INTEL_COMPILER)
+#      define CRYPTOPP_CONSTANT(x) enum {x};
+#else
+#      define CRYPTOPP_CONSTANT(x) static const int x;
+#endif
+
+#if defined(_M_X64) || defined(__x86_64__)
+       #define CRYPTOPP_BOOL_X64 1
+#else
+       #define CRYPTOPP_BOOL_X64 0
+#endif
+
+// see http://predef.sourceforge.net/prearch.html
+#if defined(_M_IX86) || defined(__i386__) || defined(__i386) || defined(_X86_) || defined(__I86__) || defined(__INTEL__)
+       #define CRYPTOPP_BOOL_X86 1
+#else
+       #define CRYPTOPP_BOOL_X86 0
+#endif
+
+#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86 || defined(__powerpc__)
+       #define CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS
+#endif
+
+#define CRYPTOPP_VERSION 560
+
+// ***************** determine availability of OS features ********************
+
+#ifndef NO_OS_DEPENDENCE
+
+#if defined(_WIN32) || defined(__CYGWIN__)
+#define CRYPTOPP_WIN32_AVAILABLE
+#endif
+
+#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun)
+#define CRYPTOPP_UNIX_AVAILABLE
+#endif
+
+#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE)
+#      define HIGHRES_TIMER_AVAILABLE
+#endif
+
+#ifdef CRYPTOPP_UNIX_AVAILABLE
+#      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
+#endif
+
+#if defined(HAS_WINDOWS_STYLE_SOCKETS) && (!defined(HAS_BERKELEY_STYLE_SOCKETS) || defined(PREFER_WINDOWS_STYLE_SOCKETS))
+#      define USE_WINDOWS_STYLE_SOCKETS
+#else
+#      define USE_BERKELEY_STYLE_SOCKETS
+#endif
+
+#if defined(HIGHRES_TIMER_AVAILABLE) && defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(USE_BERKELEY_STYLE_SOCKETS)
+#      define WINDOWS_PIPES_AVAILABLE
+#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)
+#      define NONBLOCKING_RNG_AVAILABLE
+#      define BLOCKING_RNG_AVAILABLE
+#      define OS_RNG_AVAILABLE
+#      define HAS_PTHREADS
+#      define THREADS_AVAILABLE
+#endif
+
+#ifdef CRYPTOPP_WIN32_AVAILABLE
+#      define HAS_WINTHREADS
+#      define THREADS_AVAILABLE
+#endif
+
+#endif // NO_OS_DEPENDENCE
+
+// ***************** DLL related ********************
+
+#ifdef CRYPTOPP_WIN32_AVAILABLE
+
+#ifdef CRYPTOPP_EXPORTS
+#define CRYPTOPP_IS_DLL
+#define CRYPTOPP_DLL __declspec(dllexport)
+#elif defined(CRYPTOPP_IMPORTS)
+#define CRYPTOPP_IS_DLL
+#define CRYPTOPP_DLL __declspec(dllimport)
+#else
+#define CRYPTOPP_DLL
+#endif
+
+#define CRYPTOPP_API __cdecl
+
+#else  // CRYPTOPP_WIN32_AVAILABLE
+
+#define CRYPTOPP_DLL
+#define CRYPTOPP_API
+
+#endif // CRYPTOPP_WIN32_AVAILABLE
+
+#if defined(__MWERKS__)
+#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern class CRYPTOPP_DLL
+#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
+#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL
+#else
+#define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern template class CRYPTOPP_DLL
+#endif
+
+#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_IMPORTS)
+#define CRYPTOPP_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL
+#else
+#define CRYPTOPP_DLL_TEMPLATE_CLASS CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS
+#endif
+
+#if defined(__MWERKS__)
+#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern class
+#elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
+#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class
+#else
+#define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern template class
+#endif
+
+#if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !defined(CRYPTOPP_EXPORTS)
+#define CRYPTOPP_STATIC_TEMPLATE_CLASS template class
+#else
+#define CRYPTOPP_STATIC_TEMPLATE_CLASS CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS
+#endif
+
+#endif