tor/src/ext/siphash.h
Nick Mathewson c4ac5adc4a siphash.h: include stdint.
Doing this gives us a valid uint64_t type, freeing us from
dependencies on include order.
2020-01-09 07:30:35 -05:00

17 lines
353 B
C

#ifndef SIPHASH_H
#define SIPHASH_H
#include <stdint.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);
void siphash_unset_global_key(void);
#endif