3c13efa4ef31211cdfc885ab29abd2809b6a1bac
[trex.git] /
1 #ifndef crypto_core_salsa208_H
2 #define crypto_core_salsa208_H
3
4 #include <stddef.h>
5 #include "export.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #define crypto_core_salsa208_OUTPUTBYTES 64U
12 SODIUM_EXPORT
13 size_t crypto_core_salsa208_outputbytes(void);
14
15 #define crypto_core_salsa208_INPUTBYTES 16U
16 SODIUM_EXPORT
17 size_t crypto_core_salsa208_inputbytes(void);
18
19 #define crypto_core_salsa208_KEYBYTES 32U
20 SODIUM_EXPORT
21 size_t crypto_core_salsa208_keybytes(void);
22
23 #define crypto_core_salsa208_CONSTBYTES 16U
24 SODIUM_EXPORT
25 size_t crypto_core_salsa208_constbytes(void);
26
27 SODIUM_EXPORT
28 int crypto_core_salsa208(unsigned char *out, const unsigned char *in,
29                          const unsigned char *k, const unsigned char *c);
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif