diff options
Diffstat (limited to 'stdlib/siphash.h')
| -rw-r--r-- | stdlib/siphash.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/stdlib/siphash.h b/stdlib/siphash.h new file mode 100644 index 00000000..8104a306 --- /dev/null +++ b/stdlib/siphash.h @@ -0,0 +1,13 @@ +#pragma once + +// An implementation of the SipHash algorithm. + +#include <stdint.h> +#include <stddef.h> + +// This value will be randomized on startup in tomo_init(): +extern uint64_t TOMO_HASH_KEY[2]; + +uint64_t siphash24(const uint8_t *src, size_t src_sz); + +// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
