aboutsummaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-12 10:58:03 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-12 10:58:03 -0500
commitf51df9bb93f889533e7480e6364899ce249fe45b (patch)
tree882e16e9222d074e63cf0cd9585c0a0c312b48f5 /src/ext
parent1bd86b69b6198892a8310f3933a4df483b91713a (diff)
downloadtor-f51df9bb93f889533e7480e6364899ce249fe45b.tar.gz
tor-f51df9bb93f889533e7480e6364899ce249fe45b.zip
Tests for siphash, from reference implementation.
Diffstat (limited to 'src/ext')
-rw-r--r--src/ext/siphash.h9
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