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 --- halfsiphash.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'halfsiphash.c') diff --git a/halfsiphash.c b/halfsiphash.c index 689e125..862de9d 100644 --- a/halfsiphash.c +++ b/halfsiphash.c @@ -19,8 +19,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) (uint32_t)(((x) << (b)) | ((x) >> (32 - (b)))) -- cgit v1.2.3