From c455e7b67d2e55e6ed03e3449203d4e307f5a7dd Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Sep 2024 20:18:08 -0400 Subject: Rename builtins/ -> stdlib/ --- stdlib/siphash.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 stdlib/siphash.h (limited to 'stdlib/siphash.h') 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 +#include + +// 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 -- cgit v1.2.3