libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_core_hsalsa20.h
blob52d4f08e88229b146095f8367b839a7e30eedcb8
1 #ifndef crypto_core_hsalsa20_H
2 #define crypto_core_hsalsa20_H
4 #include <stddef.h>
5 #include "export.h"
7 #define crypto_core_hsalsa20_OUTPUTBYTES 32U
8 #define crypto_core_hsalsa20_INPUTBYTES 16U
9 #define crypto_core_hsalsa20_KEYBYTES 32U
10 #define crypto_core_hsalsa20_CONSTBYTES 16U
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 SODIUM_EXPORT
17 size_t crypto_core_hsalsa20_outputbytes(void);
19 SODIUM_EXPORT
20 size_t crypto_core_hsalsa20_inputbytes(void);
22 SODIUM_EXPORT
23 size_t crypto_core_hsalsa20_keybytes(void);
25 SODIUM_EXPORT
26 size_t crypto_core_hsalsa20_constbytes(void);
28 SODIUM_EXPORT
29 const char * crypto_core_hsalsa20_primitive(void);
31 SODIUM_EXPORT
32 int crypto_core_hsalsa20(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
34 #ifdef __cplusplus
36 #endif
38 #define crypto_core_hsalsa20_ref2 crypto_core_hsalsa20
40 #endif