siphash.h 425 B

1234567891011121314151617181920
  1. #ifndef SIPHASH_H
  2. #define SIPHASH_H
  3. #include <stdint.h>
  4. #include <stdlib.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. uint64_t siphash(const unsigned char key[16], const unsigned char *m, size_t len);
  9. uint64_t siphash13(const unsigned char key[16], const unsigned char *m, size_t len);
  10. uint32_t halfsiphash(const unsigned char key[16], const unsigned char *m, size_t len);
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #endif // SIPHASH_H