160cc56d2c405ecabe9f139840e4d7a388986d83
[trex.git] /
1 #ifndef crypto_core_salsa20_H
2 #define crypto_core_salsa20_H
3
4 #include <stddef.h>
5 #include "export.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #define crypto_core_salsa20_OUTPUTBYTES 64U
12 SODIUM_EXPORT
13 size_t crypto_core_salsa20_outputbytes(void);
14
15 #define crypto_core_salsa20_INPUTBYTES 16U
16 SODIUM_EXPORT
17 size_t crypto_core_salsa20_inputbytes(void);
18
19 #define crypto_core_salsa20_KEYBYTES 32U
20 SODIUM_EXPORT
21 size_t crypto_core_salsa20_keybytes(void);
22
23 #define crypto_core_salsa20_CONSTBYTES 16U
24 SODIUM_EXPORT
25 size_t crypto_core_salsa20_constbytes(void);
26
27 SODIUM_EXPORT
28 int crypto_core_salsa20(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