diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-12 10:58:03 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 10:58:03 -0500 |
commit | f51df9bb93f889533e7480e6364899ce249fe45b (patch) | |
tree | 882e16e9222d074e63cf0cd9585c0a0c312b48f5 /src/ext | |
parent | 1bd86b69b6198892a8310f3933a4df483b91713a (diff) | |
download | tor-f51df9bb93f889533e7480e6364899ce249fe45b.tar.gz tor-f51df9bb93f889533e7480e6364899ce249fe45b.zip |
Tests for siphash, from reference implementation.
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/siphash.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ext/siphash.h b/src/ext/siphash.h new file mode 100644 index 0000000000..ff372bc5d4 --- /dev/null +++ b/src/ext/siphash.h @@ -0,0 +1,9 @@ +#ifndef SIPHASH_H +#define SIPHASH_H +struct sipkey { + uint64_t k0; + uint64_t k1; +}; +uint64_t siphash24(const void *src, unsigned long src_sz, const struct sipkey *key); + +#endif |