diff options
Diffstat (limited to 'src/ext/siphash.h')
-rw-r--r-- | src/ext/siphash.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ext/siphash.h b/src/ext/siphash.h new file mode 100644 index 0000000000..d9b34b8980 --- /dev/null +++ b/src/ext/siphash.h @@ -0,0 +1,13 @@ +#ifndef SIPHASH_H +#define SIPHASH_H + +struct sipkey { + uint64_t k0; + uint64_t k1; +}; +uint64_t siphash24(const void *src, unsigned long src_sz, const struct sipkey *key); + +void siphash_set_global_key(const struct sipkey *key); +uint64_t siphash24g(const void *src, unsigned long src_sz); + +#endif |