diff options
author | Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> | 2021-02-19 08:27:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 08:27:11 +0100 |
commit | 750cdc00bc86b927b0f0667ff781526c3a56df09 (patch) | |
tree | 3533de2c8c97de49b7a62eb41fe151ac17bd36f3 /halfsiphash.c | |
parent | halfsiphash header + badge (diff) | |
parent | tests (diff) | |
download | siphash-750cdc00bc86b927b0f0667ff781526c3a56df09.tar.gz siphash-750cdc00bc86b927b0f0667ff781526c3a56df09.tar.xz |
Merge pull request #34 from veorq/moretest
more tests and security checks
Diffstat (limited to 'halfsiphash.c')
-rw-r--r-- | halfsiphash.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/halfsiphash.c b/halfsiphash.c index a929224..a797fa9 100644 --- a/halfsiphash.c +++ b/halfsiphash.c @@ -21,10 +21,10 @@ /* default: SipHash-2-4 */ #ifndef cROUNDS - #define cROUNDS 2 +#define cROUNDS 2 #endif #ifndef dROUNDS - #define dROUNDS 4 +#define dROUNDS 4 #endif #define ROTL(x, b) (uint32_t)(((x) << (b)) | ((x) >> (32 - (b)))) @@ -60,10 +60,10 @@ #ifdef DEBUG #define TRACE \ do { \ - printf("(%3zu) v0 %08"PRIx32"\n", inlen, v0); \ - printf("(%3zu) v1 %08"PRIx32"\n", inlen, v1); \ - printf("(%3zu) v2 %08"PRIx32"\n", inlen, v2); \ - printf("(%3zu) v3 %08"PRIx32"\n", inlen, v3); \ + printf("(%3zu) v0 %08" PRIx32 "\n", inlen, v0); \ + printf("(%3zu) v1 %08" PRIx32 "\n", inlen, v1); \ + printf("(%3zu) v2 %08" PRIx32 "\n", inlen, v2); \ + printf("(%3zu) v3 %08" PRIx32 "\n", inlen, v3); \ } while (0) #else #define TRACE |