diff options
author | Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> | 2021-01-19 21:30:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 21:30:37 +0100 |
commit | 53773b814f8223f06b06d7646184aaa1972ec72b (patch) | |
tree | cd1b8210b737781ade345530b51cf9d27c38e9ee /siphash.c | |
parent | Merge pull request #30 from veorq/notahash (diff) | |
parent | fixes (diff) | |
download | siphash-53773b814f8223f06b06d7646184aaa1972ec72b.tar.gz siphash-53773b814f8223f06b06d7646184aaa1972ec72b.tar.xz |
Merge pull request #32 from veorq/header
header
Diffstat (limited to 'siphash.c')
-rw-r--r-- | siphash.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) { |