DSL
sodium.h
1 //@AUTOHEADER@BEGIN@
2 /***********************************************************************\
3 | Drift Standard Libraries v1.01 |
4 | Copyright 2010-2023 Drift Solutions / Indy Sams |
5 | Docs and more information available at https://www.driftsolutions.dev |
6 | This file released under the 3-clause BSD license, |
7 | see included DSL.LICENSE.TXT file for details. |
8 \***********************************************************************/
9 //@AUTOHEADER@END@
10 
11 #ifndef __DSL_SODIUM_H__
12 #define __DSL_SODIUM_H__
13 
14 #include <drift/hash.h>
15 #include <drift/Buffer.h>
16 #include <drift/GenLib.h>
17 
18 #if defined(DSL_DLL) && defined(WIN32)
19  #if defined(DSL_SODIUM_EXPORTS)
20  #define DSL_SODIUM_API extern "C" __declspec(dllexport)
21  #define DSL_SODIUM_API_CLASS __declspec(dllexport)
22  #else
23  #define DSL_SODIUM_API extern "C" __declspec(dllimport)
24  #define DSL_SODIUM_API_CLASS __declspec(dllimport)
25  #endif
26 #else
27  #define DSL_SODIUM_API DSL_API_VIS
28  #define DSL_SODIUM_API_CLASS DSL_API_VIS
29 #endif
30 
31 extern bool fSodiumInit;
32 
33 #include <drift/sodium/hash.h>
34 #include <drift/sodium/keys_signing.h>
35 #include <drift/sodium/keys_encryption.h>
36 
37 #endif // __DSL_SODIUM_H__