From 8205ba01ebc060245776c8316c59acc448ea4605 Mon Sep 17 00:00:00 2001 From: JP Aumasson Date: Wed, 19 Nov 2014 16:03:16 +0100 Subject: [PATCH] details --- siphash24.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/siphash24.c b/siphash24.c index ae63b08..d5ea0e0 100644 --- a/siphash24.c +++ b/siphash24.c @@ -1,8 +1,8 @@ /* SipHash reference C implementation - Copyright (c) 2012 Jean-Philippe Aumasson - Copyright (c) 2012 Daniel J. Bernstein + Copyright (c) 2012-2014 Jean-Philippe Aumasson + Copyright (c) 2012-2014 Daniel J. Bernstein To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain @@ -101,19 +101,12 @@ int siphash( uint8_t *out, const uint8_t *in, uint64_t inlen, const uint8_t *k switch( left ) { case 7: b |= ( ( uint64_t )in[ 6] ) << 48; - case 6: b |= ( ( uint64_t )in[ 5] ) << 40; - case 5: b |= ( ( uint64_t )in[ 4] ) << 32; - case 4: b |= ( ( uint64_t )in[ 3] ) << 24; - case 3: b |= ( ( uint64_t )in[ 2] ) << 16; - case 2: b |= ( ( uint64_t )in[ 1] ) << 8; - case 1: b |= ( ( uint64_t )in[ 0] ); break; - case 0: break; }