Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:56

0001 // dll.h - originally written and placed in the public domain by Wei Dai

0002 
0003 /// \file dll.h

0004 /// \brief Functions and definitions required for building the FIPS-140 DLL on Windows

0005 
0006 #ifndef CRYPTOPP_DLL_H
0007 #define CRYPTOPP_DLL_H
0008 
0009 #if !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_DEFAULT_NO_DLL)
0010 #ifdef CRYPTOPP_CONFIG_H
0011 #error To use the DLL version of Crypto++, this file must be included before any other Crypto++ header files.
0012 #endif
0013 #define CRYPTOPP_IMPORTS
0014 #endif
0015 
0016 #include "aes.h"
0017 #include "cbcmac.h"
0018 #include "ccm.h"
0019 #include "cmac.h"
0020 #include "channels.h"
0021 #include "des.h"
0022 #include "dh.h"
0023 #include "dsa.h"
0024 #include "ec2n.h"
0025 #include "eccrypto.h"
0026 #include "ecp.h"
0027 #include "files.h"
0028 #include "fips140.h"
0029 #include "gcm.h"
0030 #include "hex.h"
0031 #include "hmac.h"
0032 #include "modes.h"
0033 #include "mqueue.h"
0034 #include "nbtheory.h"
0035 #include "osrng.h"
0036 #include "pkcspad.h"
0037 #include "pssr.h"
0038 #include "randpool.h"
0039 #include "rsa.h"
0040 #include "rw.h"
0041 #include "sha.h"
0042 #include "skipjack.h"
0043 
0044 #ifdef CRYPTOPP_IMPORTS
0045 
0046 #ifdef _DLL
0047 // cause CRT DLL to be initialized before Crypto++ so that we can use malloc and free during DllMain()

0048 #ifdef CRYPTOPP_DEBUG
0049 # pragma comment(lib, "msvcrtd")
0050 # pragma comment(lib, "cryptopp")
0051 #else
0052 # pragma comment(lib, "msvcrt")
0053 # pragma comment(lib, "cryptopp")
0054 #endif
0055 #endif
0056 
0057 #endif      // #ifdef CRYPTOPP_IMPORTS

0058 
0059 #include <new>  // for new_handler
0060 
0061 NAMESPACE_BEGIN(CryptoPP)
0062 
0063 typedef void * (CRYPTOPP_API * PNew)(size_t);
0064 typedef void (CRYPTOPP_API * PDelete)(void *);
0065 typedef void (CRYPTOPP_API * PGetNewAndDelete)(PNew &, PDelete &);
0066 typedef std::new_handler (CRYPTOPP_API * PSetNewHandler)(std::new_handler);
0067 typedef void (CRYPTOPP_API * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler);
0068 
0069 NAMESPACE_END
0070 
0071 #endif