From f98f5fedc544a9070e78c0a2f7363e11b209c123 Mon Sep 17 00:00:00 2001 From: JP Aumasson Date: Fri, 16 Dec 2016 17:04:42 +0100 Subject: bugfix --- halfsiphash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'halfsiphash.c') 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; -- cgit v1.2.3