aboutsummaryrefslogtreecommitdiff
path: root/halfsiphash.c
diff options
context:
space:
mode:
authorJP Aumasson <jp@taurusgroup.ch>2022-10-22 07:14:59 +0200
committerJP Aumasson <jp@taurusgroup.ch>2022-10-22 07:14:59 +0200
commiteee7d0d84dc7731df2359b243aa5e75d85f6eaef (patch)
tree80cd972e2b8a08119f4069c5ff1770a7d1eb8f32 /halfsiphash.c
parentduallicense (diff)
downloadsiphash-eee7d0d84dc7731df2359b243aa5e75d85f6eaef.tar.gz
siphash-eee7d0d84dc7731df2359b243aa5e75d85f6eaef.tar.xz
comments
Diffstat (limited to 'halfsiphash.c')
-rw-r--r--halfsiphash.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/halfsiphash.c b/halfsiphash.c
index 18ebadd..455c27c 100644
--- a/halfsiphash.c
+++ b/halfsiphash.c
@@ -71,6 +71,14 @@
#define TRACE
#endif
+/*
+ Computes a SipHash value
+ *in: pointer to input data (read-only)
+ inlen: input data length in bytes (any size_t value)
+ *k: pointer to the key data (read-only), must be 8 bytes
+ *out: pointer to output data (write-only), outlen bytes must be allocated
+ outlen: length of the output in bytes, must be 4 or 8
+*/
int halfsiphash(const void *in, const size_t inlen, const void *k, uint8_t *out,
const size_t outlen) {