siphash.h 332 B

1234567891011121314
  1. #ifndef SIPHASH_H
  2. #define SIPHASH_H
  3. struct sipkey {
  4. uint64_t k0;
  5. uint64_t k1;
  6. };
  7. uint64_t siphash24(const void *src, unsigned long src_sz, const struct sipkey *key);
  8. void siphash_set_global_key(const struct sipkey *key);
  9. uint64_t siphash24g(const void *src, unsigned long src_sz);
  10. void siphash_unset_global_key(void);
  11. #endif