75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
1 |
#ifndef CRYPTOPP_DLL_H
|
2 |
#define CRYPTOPP_DLL_H
|
|
3 |
||
80
by weidai
fix GCC compile |
4 |
#if !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_DEFAULT_NO_DLL)
|
75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
5 |
#ifdef CRYPTOPP_CONFIG_H
|
6 |
#error To use the DLL version of Crypto++, this file must be included before any other Crypto++ header files.
|
|
7 |
#endif
|
|
8 |
#define CRYPTOPP_IMPORTS
|
|
9 |
#endif
|
|
10 |
||
11 |
#include "aes.h" |
|
12 |
#include "cbcmac.h" |
|
417
by weidai
fix compile on ICC 11 |
13 |
#include "ccm.h" |
14 |
#include "cmac.h" |
|
75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
15 |
#include "channels.h" |
16 |
#include "des.h" |
|
17 |
#include "dh.h" |
|
18 |
#include "dsa.h" |
|
19 |
#include "ec2n.h" |
|
20 |
#include "eccrypto.h" |
|
21 |
#include "ecp.h" |
|
22 |
#include "files.h" |
|
23 |
#include "fips140.h" |
|
417
by weidai
fix compile on ICC 11 |
24 |
#include "gcm.h" |
75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
25 |
#include "hex.h" |
26 |
#include "hmac.h" |
|
27 |
#include "modes.h" |
|
28 |
#include "mqueue.h" |
|
29 |
#include "nbtheory.h" |
|
30 |
#include "osrng.h" |
|
31 |
#include "pkcspad.h" |
|
179
by weidai
changes related to the next FIPS validation |
32 |
#include "pssr.h" |
75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
33 |
#include "randpool.h" |
34 |
#include "rsa.h" |
|
181
by weidai
changes done for FIPS-140 lab code drop |
35 |
#include "rw.h" |
75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
36 |
#include "sha.h" |
37 |
#include "skipjack.h" |
|
38 |
#include "trdlocal.h" |
|
39 |
||
40 |
#ifdef CRYPTOPP_IMPORTS
|
|
41 |
||
42 |
#ifdef _DLL
|
|
43 |
// cause CRT DLL to be initialized before Crypto++ so that we can use malloc and free during DllMain()
|
|
44 |
#ifdef NDEBUG
|
|
45 |
#pragma comment(lib, "msvcrt")
|
|
46 |
#else
|
|
47 |
#pragma comment(lib, "msvcrtd")
|
|
48 |
#endif
|
|
49 |
#endif
|
|
50 |
||
51 |
#pragma comment(lib, "cryptopp")
|
|
52 |
||
53 |
#endif // #ifdef CRYPTOPP_IMPORTS |
|
54 |
||
78
by weidai
merge in 5.0.4 changes (exclude DES and SHA-2 from DLL), |
55 |
#include <new> // for new_handler |
75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
56 |
|
57 |
NAMESPACE_BEGIN(CryptoPP) |
|
58 |
||
78
by weidai
merge in 5.0.4 changes (exclude DES and SHA-2 from DLL), |
59 |
#if !(defined(_MSC_VER) && (_MSC_VER < 1300))
|
60 |
using std::new_handler; |
|
61 |
#endif
|
|
62 |
||
181
by weidai
changes done for FIPS-140 lab code drop |
63 |
typedef void * (CRYPTOPP_API * PNew)(size_t); |
64 |
typedef void (CRYPTOPP_API * PDelete)(void *); |
|
65 |
typedef void (CRYPTOPP_API * PGetNewAndDelete)(PNew &, PDelete &); |
|
66 |
typedef new_handler (CRYPTOPP_API * PSetNewHandler)(new_handler); |
|
67 |
typedef void (CRYPTOPP_API * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler); |
|
75
by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes |
68 |
|
69 |
NAMESPACE_END
|
|
70 |
||
71 |
#endif
|