mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-02 13:26:24 +12:00
Some checks failed
Android Build / x64 (release) (push) Has been cancelled
Android Build / arm64 (release) (push) Has been cancelled
HTTP Server Build / build (push) Has been cancelled
Hydra Core Build / Windows (push) Has been cancelled
Hydra Core Build / MacOS (push) Has been cancelled
Hydra Core Build / Linux (push) Has been cancelled
Hydra Core Build / Android-x64 (push) Has been cancelled
Hydra Core Build / ARM-Libretro (push) Has been cancelled
Linux AppImage Build / build (push) Has been cancelled
Linux Build / build (push) Has been cancelled
MacOS Build / MacOS-arm64 (push) Has been cancelled
MacOS Build / MacOS-x86_64 (push) Has been cancelled
MacOS Build / MacOS-Universal (push) Has been cancelled
Qt Build / Windows (push) Has been cancelled
Qt Build / MacOS-arm64 (push) Has been cancelled
Qt Build / MacOS-x86_64 (push) Has been cancelled
Qt Build / MacOS-Universal (push) Has been cancelled
Qt Build / Linux (push) Has been cancelled
Windows Build / build (push) Has been cancelled
iOS Simulator Build / build (push) Has been cancelled
71 lines
1.7 KiB
C++
71 lines
1.7 KiB
C++
// dll.h - originally written and placed in the public domain by Wei Dai
|
|
|
|
/// \file dll.h
|
|
/// \brief Functions and definitions required for building the FIPS-140 DLL on Windows
|
|
|
|
#ifndef CRYPTOPP_DLL_H
|
|
#define CRYPTOPP_DLL_H
|
|
|
|
#if !defined(CRYPTOPP_IMPORTS) && !defined(CRYPTOPP_EXPORTS) && !defined(CRYPTOPP_DEFAULT_NO_DLL)
|
|
#ifdef CRYPTOPP_CONFIG_H
|
|
#error To use the DLL version of Crypto++, this file must be included before any other Crypto++ header files.
|
|
#endif
|
|
#define CRYPTOPP_IMPORTS
|
|
#endif
|
|
|
|
#include "aes.h"
|
|
#include "cbcmac.h"
|
|
#include "ccm.h"
|
|
#include "cmac.h"
|
|
#include "channels.h"
|
|
#include "des.h"
|
|
#include "dh.h"
|
|
#include "dsa.h"
|
|
#include "ec2n.h"
|
|
#include "eccrypto.h"
|
|
#include "ecp.h"
|
|
#include "files.h"
|
|
#include "fips140.h"
|
|
#include "gcm.h"
|
|
#include "hex.h"
|
|
#include "hmac.h"
|
|
#include "modes.h"
|
|
#include "mqueue.h"
|
|
#include "nbtheory.h"
|
|
#include "osrng.h"
|
|
#include "pkcspad.h"
|
|
#include "pssr.h"
|
|
#include "randpool.h"
|
|
#include "rsa.h"
|
|
#include "rw.h"
|
|
#include "sha.h"
|
|
#include "skipjack.h"
|
|
|
|
#ifdef CRYPTOPP_IMPORTS
|
|
|
|
#ifdef _DLL
|
|
// cause CRT DLL to be initialized before Crypto++ so that we can use malloc and free during DllMain()
|
|
#ifdef CRYPTOPP_DEBUG
|
|
# pragma comment(lib, "msvcrtd")
|
|
# pragma comment(lib, "cryptopp")
|
|
#else
|
|
# pragma comment(lib, "msvcrt")
|
|
# pragma comment(lib, "cryptopp")
|
|
#endif
|
|
#endif
|
|
|
|
#endif // #ifdef CRYPTOPP_IMPORTS
|
|
|
|
#include <new> // for new_handler
|
|
|
|
NAMESPACE_BEGIN(CryptoPP)
|
|
|
|
typedef void * (CRYPTOPP_API * PNew)(size_t);
|
|
typedef void (CRYPTOPP_API * PDelete)(void *);
|
|
typedef void (CRYPTOPP_API * PGetNewAndDelete)(PNew &, PDelete &);
|
|
typedef std::new_handler (CRYPTOPP_API * PSetNewHandler)(std::new_handler);
|
|
typedef void (CRYPTOPP_API * PSetNewAndDelete)(PNew, PDelete, PSetNewHandler);
|
|
|
|
NAMESPACE_END
|
|
|
|
#endif
|