cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
siphash.h
Go to the documentation of this file.
1#ifndef __CWIST_SIPHASH_H__
2#define __CWIST_SIPHASH_H__
3
4#include <stdint.h>
5#include <stddef.h>
6
14uint64_t siphash24(const void *src, size_t len, const uint8_t key[16]);
23void cwist_generate_hash_seed(uint8_t key[16]);
24#endif
uint64_t siphash24(const void *src, size_t len, const uint8_t key[16])
Compute SipHash-2-4 over a byte range using a 16-byte secret key.
Definition siphash.c:52
void cwist_generate_hash_seed(uint8_t key[16])
Generates a random SipHash seed.
Definition siphash.c:223