aboutsummaryrefslogtreecommitdiff
path: root/siphash.c
diff options
context:
space:
mode:
authorJean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>2021-01-19 21:30:37 +0100
committerGitHub <noreply@github.com>2021-01-19 21:30:37 +0100
commit53773b814f8223f06b06d7646184aaa1972ec72b (patch)
treecd1b8210b737781ade345530b51cf9d27c38e9ee /siphash.c
parentMerge pull request #30 from veorq/notahash (diff)
parentfixes (diff)
downloadsiphash-53773b814f8223f06b06d7646184aaa1972ec72b.tar.gz
siphash-53773b814f8223f06b06d7646184aaa1972ec72b.tar.xz
Merge pull request #32 from veorq/header
header
Diffstat (limited to 'siphash.c')
-rw-r--r--siphash.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/siphash.c b/siphash.c
index 71d85de..88f390c 100644
--- a/siphash.c
+++ b/siphash.c
@@ -1,7 +1,7 @@
/*
SipHash reference C implementation
- Copyright (c) 2012-2016 Jean-Philippe Aumasson
+ Copyright (c) 2012-2021 Jean-Philippe Aumasson
<jeanphilippe.aumasson@gmail.com>
Copyright (c) 2012-2014 Daniel J. Bernstein <djb@cr.yp.to>
@@ -14,11 +14,12 @@
this software. If not, see
<http://creativecommons.org/publicdomain/zero/1.0/>.
*/
+
+#include "siphash.h"
#include <assert.h>
-#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
-#include <string.h>
+
/* default: SipHash-2-4 */
#ifndef cROUNDS
@@ -76,6 +77,7 @@
#define TRACE
#endif
+
int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k,
uint8_t *out, const size_t outlen) {