diff --git a/main.c b/main.c index 7349517..28bc2de 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,7 @@ /* SipHash reference C implementation - Written in 2012 by + Written in 2012 by Jean-Philippe Aumasson Daniel J. Bernstein @@ -20,7 +20,7 @@ typedef uint32_t u32; typedef uint8_t u8; extern int siphash( unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k ); + unsigned long long inlen, const unsigned char *k ); /* SipHash-2-4 output with @@ -131,7 +131,7 @@ int main() { if ( test_vectors() ) printf( "test vectors ok\n" ); - else + else printf( "test vectors fail\n" ); return 0; diff --git a/siphash24.c b/siphash24.c index 131033a..6ebe360 100644 --- a/siphash24.c +++ b/siphash24.c @@ -1,7 +1,7 @@ /* SipHash reference C implementation - Written in 2012 by + Written in 2012 by Jean-Philippe Aumasson Daniel J. Bernstein @@ -82,27 +82,29 @@ int siphash( unsigned char *out, const unsigned char *in, unsigned long long in printf( "(%3d) compress %08x %08x\n", ( int )inlen, ( u32 )( m >> 32 ), ( u32 )m ); #endif v3 ^= m; - for(i=0;i> 32 ), ( u32 )b ); #endif v3 ^= b; - for(i=0;i> 32 ), ( u32 )v0 ); @@ -122,7 +126,9 @@ int siphash( unsigned char *out, const unsigned char *in, unsigned long long in printf( "(%3d) v3 %08x %08x\n", ( int )inlen, ( u32 )( v3 >> 32 ), ( u32 )v3 ); #endif v2 ^= 0xff; - for(i=0;i