Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# dll.h

    00001 #ifndef CRYPTOPP_DLL_H
    00002 #define CRYPTOPP_DLL_H
    00003
    00004 #if !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_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 "channels.h"
    00014 #include "des.h"
    00015 #include "dh.h"
    00016 #include "dsa.h"
    00017 #include "ec2n.h"
    00018 #include "eccrypto.h"
    00019 #include "ecp.h"
    00020 #include "files.h"
    00021 #include "fips140.h"
    00022 #include "hex.h"
    00023 #include "hmac.h"
    00024 #include "modes.h"
    00025 #include "mqueue.h"
    00026 #include "nbtheory.h"
    00027 #include "osrng.h"
    00028 #include "pkcspad.h"
    00029 #include "randpool.h"
    00030 #include "rsa.h"
    00031 #include "sha.h"
    00032 #include "skipjack.h"
    00033 #include "trdlocal.h"
    00034
    00035 #ifdef CRYPTOPP_IMPORTS
    00036
    00037 #ifdef _DLL
    00038 // cause CRT DLL to be initialized before Crypto++ so that we can use malloc and free during DllMain()
    00039 #ifdef NDEBUG
    00040 #pragma comment(lib, "msvcrt")
    00041 #else
    00042 #pragma comment(lib, "msvcrtd")
    00043 #endif
    00044 #endif
    00045
    00046 #pragma comment(lib, "cryptopp")
    00047
    00048 #endif          // #ifdef CRYPTOPP_IMPORTS
    00049
    00050 #include <new.h>        // for _PNH
    00051
    00052 NAMESPACE_BEGIN(CryptoPP)
    00053
    00054 typedef void * (_cdecl * PNew)(size_t);
    00055 typedef void (_cdecl * PDelete)(void *);
    00056 typedef void (_cdecl * PGetNewAndDelete)(PNew &, PDelete &);
    00057 typedef _PNH (_cdecl * PSetNewHandler)(_PNH);
    00058 typedef void (_cdecl * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler);
    00059
    00060 CRYPTOPP_DLL void DoDllPowerUpSelfTest();
    00061
    00062 NAMESPACE_END
    00063
    00064 #endif