siphash.h (353B)
1 #ifndef SIPHASH_H 2 #define SIPHASH_H 3 4 #include <stdint.h> 5 6 struct sipkey { 7 uint64_t k0; 8 uint64_t k1; 9 }; 10 uint64_t siphash24(const void *src, unsigned long src_sz, const struct sipkey *key); 11 12 void siphash_set_global_key(const struct sipkey *key); 13 uint64_t siphash24g(const void *src, unsigned long src_sz); 14 void siphash_unset_global_key(void); 15 16 #endif