aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/siphash.h
blob: 98f1a6a10a1cff16dd8c48a577381d6868907e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

// An implementation of the SipHash algorithm.

#include <stddef.h>
#include <stdint.h>

#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);