diff options
author | Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> | 2019-09-13 20:40:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-13 20:40:30 +0200 |
commit | 1512ba4576e6167196d8d14cad898e563af3f83b (patch) | |
tree | 341fa5f8d011756778a1932c0325b958ada0041f /halfsiphash.c | |
parent | Merge pull request #13 from altendky/use_UINTxx_C_macros (diff) | |
parent | Make *c* and *d* rounds less intrusively configurable (diff) | |
download | siphash-1512ba4576e6167196d8d14cad898e563af3f83b.tar.gz siphash-1512ba4576e6167196d8d14cad898e563af3f83b.tar.xz |
Merge pull request #15 from altendky/makefile_rounds_parameters
Make *c* and *d* rounds less intrusively configurable
Diffstat (limited to 'halfsiphash.c')
-rw-r--r-- | halfsiphash.c | 8 |
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)))) |