From 5ee185a4896e43c67b6d299becfa616da78fb9f4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 21 Mar 2025 21:48:53 -0400 Subject: Move stdlib into src/ --- src/stdlib/siphash.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/stdlib/siphash.h (limited to 'src/stdlib/siphash.h') diff --git a/src/stdlib/siphash.h b/src/stdlib/siphash.h new file mode 100644 index 00000000..67bad582 --- /dev/null +++ b/src/stdlib/siphash.h @@ -0,0 +1,15 @@ +#pragma once + +// An implementation of the SipHash algorithm. + +#include +#include + +#include "util.h" + +// This value will be randomized on startup in tomo_init(): +extern uint64_t TOMO_HASH_KEY[2]; + +PUREFUNC 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