2014-02-12 16:58:03 +01:00
|
|
|
#ifndef SIPHASH_H
|
|
|
|
#define SIPHASH_H
|
2014-02-07 23:38:16 +01:00
|
|
|
|
2019-12-16 19:06:00 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2014-02-12 16:58:03 +01:00
|
|
|
struct sipkey {
|
|
|
|
uint64_t k0;
|
|
|
|
uint64_t k1;
|
|
|
|
};
|
|
|
|
uint64_t siphash24(const void *src, unsigned long src_sz, const struct sipkey *key);
|
|
|
|
|
2014-02-12 17:27:03 +01:00
|
|
|
void siphash_set_global_key(const struct sipkey *key);
|
|
|
|
uint64_t siphash24g(const void *src, unsigned long src_sz);
|
2018-01-11 18:49:28 +01:00
|
|
|
void siphash_unset_global_key(void);
|
2014-02-12 17:27:03 +01:00
|
|
|
|
2014-02-12 16:58:03 +01:00
|
|
|
#endif
|