aboutsummaryrefslogtreecommitdiff
path: root/halfsiphash.c
diff options
context:
space:
mode:
authorJP Aumasson <jeanphilippe.aumasson@gmail.com>2016-12-16 17:04:42 +0100
committerJP Aumasson <jeanphilippe.aumasson@gmail.com>2016-12-16 17:04:42 +0100
commitf98f5fedc544a9070e78c0a2f7363e11b209c123 (patch)
tree4a43eefc8e66ab1d4daa103e01f09b2324344064 /halfsiphash.c
parentexperimental (diff)
downloadsiphash-f98f5fedc544a9070e78c0a2f7363e11b209c123.tar.gz
siphash-f98f5fedc544a9070e78c0a2f7363e11b209c123.tar.xz
bugfix
Diffstat (limited to 'halfsiphash.c')
-rw-r--r--halfsiphash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/halfsiphash.c b/halfsiphash.c
index 74d7517..877f62f 100644
--- a/halfsiphash.c
+++ b/halfsiphash.c
@@ -124,7 +124,7 @@ int halfsiphash(const uint8_t *in, const size_t inlen, const uint8_t *k, uint8_t
v0 ^= b;
- if (outlen == 16) v2 ^= 0xee;
+ if (outlen == 8) v2 ^= 0xee;
else v2 ^= 0xff;
TRACE;