libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_core_salsa20.h
blobf2592bcaeaf99f218cc3e1972ec46c3d6936ff14
1 #ifndef crypto_core_salsa20_H
2 #define crypto_core_salsa20_H
4 #include <stddef.h>
5 #include "export.h"
7 #define crypto_core_salsa20_OUTPUTBYTES 64U
8 #define crypto_core_salsa20_INPUTBYTES 16U
9 #define crypto_core_salsa20_KEYBYTES 32U
10 #define crypto_core_salsa20_CONSTBYTES 16U
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 SODIUM_EXPORT
17 size_t crypto_core_salsa20_outputbytes(void);
19 SODIUM_EXPORT
20 size_t crypto_core_salsa20_inputbytes(void);
22 SODIUM_EXPORT
23 size_t crypto_core_salsa20_keybytes(void);
25 SODIUM_EXPORT
26 size_t crypto_core_salsa20_constbytes(void);
28 SODIUM_EXPORT
29 const char * crypto_core_salsa20_primitive(void);
31 SODIUM_EXPORT
32 int crypto_core_salsa20(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
34 #ifdef __cplusplus
36 #endif
38 #define crypto_core_salsa20_ref crypto_core_salsa20
40 #endif