From e802f9cc563abdb6f3ee4c4137edc6f293fdd8d2 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 10 Sep 2019 08:43:15 -0400 Subject: Make *c* and *d* rounds less intrusively configurable --- siphash.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'siphash.c') diff --git a/siphash.c b/siphash.c index 41c6f50..78bdf9f 100644 --- a/siphash.c +++ b/siphash.c @@ -20,8 +20,12 @@ #include /* default: SipHash-2-4 */ -#define cROUNDS 2 -#define dROUNDS 4 +#ifndef cROUNDS + #define cROUNDS 2 +#endif +#ifndef dROUNDS + #define dROUNDS 4 +#endif #define ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) -- cgit v1.2.3