aboutsummaryrefslogtreecommitdiff
path: root/halfsiphash.c
diff options
context:
space:
mode:
Diffstat (limited to 'halfsiphash.c')
-rw-r--r--halfsiphash.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/halfsiphash.c b/halfsiphash.c
index 689e125..862de9d 100644
--- a/halfsiphash.c
+++ b/halfsiphash.c
@@ -19,8 +19,12 @@
#include <string.h>
/* 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))))