libsodium (1.0.19)
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 # ifdef __GNUC__
9 # pragma GCC diagnostic ignored "-Wlong-long"
10 # endif
11 extern "C" {
12 #endif
13
14 /* -- 64-bit output -- */
15
16 #define crypto_shorthash_siphash24_BYTES 8U
17 SODIUM_EXPORT
18 size_t crypto_shorthash_siphash24_bytes(void);
19
20 #define crypto_shorthash_siphash24_KEYBYTES 16U
21 SODIUM_EXPORT
22 size_t crypto_shorthash_siphash24_keybytes(void);
23
24 SODIUM_EXPORT
25 int crypto_shorthash_siphash24(unsigned char *out, const unsigned char *in,
26 unsigned long long inlen, const unsigned char *k)
27 __attribute__ ((nonnull(1, 4)));
28
29 #ifndef SODIUM_LIBRARY_MINIMAL
30 /* -- 128-bit output -- */
31
32 #define crypto_shorthash_siphashx24_BYTES 16U
33 SODIUM_EXPORT
34 size_t crypto_shorthash_siphashx24_bytes(void);
35
36 #define crypto_shorthash_siphashx24_KEYBYTES 16U
37 SODIUM_EXPORT
38 size_t crypto_shorthash_siphashx24_keybytes(void);
39
40 SODIUM_EXPORT
41 int crypto_shorthash_siphashx24(unsigned char *out, const unsigned char *in,
42 unsigned long long inlen, const unsigned char *k)
43 __attribute__ ((nonnull(1, 4)));
44 #endif
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif