libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_shorthash.h
blob5173727ab30beac3e28cee99f893b1443fbc4a7f
1 #ifndef crypto_shorthash_H
2 #define crypto_shorthash_H
4 #include <stddef.h>
6 #include "crypto_shorthash_siphash24.h"
7 #include "export.h"
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES
14 SODIUM_EXPORT
15 size_t crypto_shorthash_bytes(void);
17 #define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES
18 SODIUM_EXPORT
19 size_t crypto_shorthash_keybytes(void);
21 #define crypto_shorthash_PRIMITIVE "siphash24"
22 SODIUM_EXPORT
23 const char *crypto_shorthash_primitive(void);
25 SODIUM_EXPORT
26 int crypto_shorthash(unsigned char *out, const unsigned char *in,
27 unsigned long long inlen, const unsigned char *k);
29 #ifdef __cplusplus
31 #endif
33 #endif