Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.8 KiB

  1. // dll.h - written and placed in the public domain by Wei Dai
  2. //! \file
  3. //! \headerfile dll.h
  4. //! \brief Functions and definitions required for building the FIPS-140 DLL on Windows
  5. #ifndef CRYPTOPP_DLL_H
  6. #define CRYPTOPP_DLL_H
  7. #if !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_DEFAULT_NO_DLL)
  8. #ifdef CRYPTOPP_CONFIG_H
  9. #error To use the DLL version of Crypto++, this file must be included before any other Crypto++ header files.
  10. #endif
  11. #define CRYPTOPP_IMPORTS
  12. #endif
  13. #include "aes.h"
  14. #include "cbcmac.h"
  15. #include "ccm.h"
  16. #include "cmac.h"
  17. #include "channels.h"
  18. #include "des.h"
  19. #include "dh.h"
  20. #include "dsa.h"
  21. #include "ec2n.h"
  22. #include "eccrypto.h"
  23. #include "ecp.h"
  24. #include "files.h"
  25. #include "fips140.h"
  26. #include "gcm.h"
  27. #include "hex.h"
  28. #include "hmac.h"
  29. #include "modes.h"
  30. #include "mqueue.h"
  31. #include "nbtheory.h"
  32. #include "osrng.h"
  33. #include "pkcspad.h"
  34. #include "pssr.h"
  35. #include "randpool.h"
  36. #include "rsa.h"
  37. #include "rw.h"
  38. #include "sha.h"
  39. #include "skipjack.h"
  40. #include "trdlocal.h"
  41. #ifdef CRYPTOPP_IMPORTS
  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. #pragma comment(lib, "cryptopp")
  51. #endif // #ifdef CRYPTOPP_IMPORTS
  52. #include <new> // for new_handler
  53. NAMESPACE_BEGIN(CryptoPP)
  54. #if !(defined(_MSC_VER) && (_MSC_VER < 1300))
  55. using std::new_handler;
  56. #endif
  57. typedef void * (CRYPTOPP_API * PNew)(size_t);
  58. typedef void (CRYPTOPP_API * PDelete)(void *);
  59. typedef void (CRYPTOPP_API * PGetNewAndDelete)(PNew &, PDelete &);
  60. typedef new_handler (CRYPTOPP_API * PSetNewHandler)(new_handler);
  61. typedef void (CRYPTOPP_API * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler);
  62. NAMESPACE_END
  63. #endif