diff options
author | EuAndreh <eu@euandre.org> | 2024-06-02 09:52:32 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-06-02 20:27:30 -0300 |
commit | 0cbfbd63d86b63cef88f349119d1a4b551c0a862 (patch) | |
tree | a388138afaf1fe909ba701d5914c3c75834179c4 /src/hash.h | |
parent | tests/*.c: Use EXIT_FAILURE and EXIT_SUCCESS in main() functions (diff) | |
download | pindaiba-0cbfbd63d86b63cef88f349119d1a4b551c0a862.tar.gz pindaiba-0cbfbd63d86b63cef88f349119d1a4b551c0a862.tar.xz |
src/hash.c: Add thread safe initialization of SipHash seed
Diffstat (limited to 'src/hash.h')
-rw-r--r-- | src/hash.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hash.h b/src/hash.h new file mode 100644 index 0000000..4831c4b --- /dev/null +++ b/src/hash.h @@ -0,0 +1,8 @@ +#define HASH_OUTPUT_LENGTH 16U + +void +hash( + const size_t inlen, + const void *const restrict in, + uint8_t out[HASH_OUTPUT_LENGTH] +); |