a2cab0c1c85389e3adea9dc34071e50bc11f609b
[trex.git] /
1 #ifndef crypto_shorthash_siphash24_H
2 #define crypto_shorthash_siphash24_H
3
4 #include <stddef.h>
5 #include "export.h"
6
7 #ifdef __cplusplus
8 # if __GNUC__
9 #  pragma GCC diagnostic ignored "-Wlong-long"
10 # endif
11 extern "C" {
12 #endif
13
14 #define crypto_shorthash_siphash24_BYTES 8U
15 SODIUM_EXPORT
16 size_t crypto_shorthash_siphash24_bytes(void);
17
18 #define crypto_shorthash_siphash24_KEYBYTES 16U
19 SODIUM_EXPORT
20 size_t crypto_shorthash_siphash24_keybytes(void);
21
22 SODIUM_EXPORT
23 int crypto_shorthash_siphash24(unsigned char *out, const unsigned char *in,
24                                unsigned long long inlen, const unsigned char *k);
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif