Crypto++
|
00001 #ifndef CRYPTOPP_DLL_H 00002 #define CRYPTOPP_DLL_H 00003 00004 #if !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_DEFAULT_NO_DLL) 00005 #ifdef CRYPTOPP_CONFIG_H 00006 #error To use the DLL version of Crypto++, this file must be included before any other Crypto++ header files. 00007 #endif 00008 #define CRYPTOPP_IMPORTS 00009 #endif 00010 00011 #include "aes.h" 00012 #include "cbcmac.h" 00013 #include "ccm.h" 00014 #include "cmac.h" 00015 #include "channels.h" 00016 #include "des.h" 00017 #include "dh.h" 00018 #include "dsa.h" 00019 #include "ec2n.h" 00020 #include "eccrypto.h" 00021 #include "ecp.h" 00022 #include "files.h" 00023 #include "fips140.h" 00024 #include "gcm.h" 00025 #include "hex.h" 00026 #include "hmac.h" 00027 #include "modes.h" 00028 #include "mqueue.h" 00029 #include "nbtheory.h" 00030 #include "osrng.h" 00031 #include "pkcspad.h" 00032 #include "pssr.h" 00033 #include "randpool.h" 00034 #include "rsa.h" 00035 #include "rw.h" 00036 #include "sha.h" 00037 #include "skipjack.h" 00038 #include "trdlocal.h" 00039 00040 #ifdef CRYPTOPP_IMPORTS 00041 00042 #ifdef _DLL 00043 // cause CRT DLL to be initialized before Crypto++ so that we can use malloc and free during DllMain() 00044 #ifdef NDEBUG 00045 #pragma comment(lib, "msvcrt") 00046 #else 00047 #pragma comment(lib, "msvcrtd") 00048 #endif 00049 #endif 00050 00051 #pragma comment(lib, "cryptopp") 00052 00053 #endif // #ifdef CRYPTOPP_IMPORTS 00054 00055 #include <new> // for new_handler 00056 00057 NAMESPACE_BEGIN(CryptoPP) 00058 00059 #if !(defined(_MSC_VER) && (_MSC_VER < 1300)) 00060 using std::new_handler; 00061 #endif 00062 00063 typedef void * (CRYPTOPP_API * PNew)(size_t); 00064 typedef void (CRYPTOPP_API * PDelete)(void *); 00065 typedef void (CRYPTOPP_API * PGetNewAndDelete)(PNew &, PDelete &); 00066 typedef new_handler (CRYPTOPP_API * PSetNewHandler)(new_handler); 00067 typedef void (CRYPTOPP_API * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler); 00068 00069 NAMESPACE_END 00070 00071 #endif