diff options
author | JP Aumasson <jeanphilippe.aumasson@gmail.com> | 2016-12-16 17:14:34 +0100 |
---|---|---|
committer | JP Aumasson <jeanphilippe.aumasson@gmail.com> | 2016-12-16 17:14:34 +0100 |
commit | 7ce7f0470961555956a12cdf81474e68d1e89610 (patch) | |
tree | de1054535c2d26f64d86bf2d1cd7a9147b9a90af /halfsiphash.c | |
parent | bugfix (diff) | |
download | siphash-7ce7f0470961555956a12cdf81474e68d1e89610.tar.gz siphash-7ce7f0470961555956a12cdf81474e68d1e89610.tar.xz |
chaskey constants
Diffstat (limited to 'halfsiphash.c')
-rw-r--r-- | halfsiphash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/halfsiphash.c b/halfsiphash.c index 877f62f..7a5e7e8 100644 --- a/halfsiphash.c +++ b/halfsiphash.c @@ -45,17 +45,17 @@ #define SIPROUND \ do { \ v0 += v1; \ - v1 = ROTL(v1, 7); \ + v1 = ROTL(v1, 5); \ v1 ^= v0; \ v0 = ROTL(v0, 16); \ v2 += v3; \ v3 = ROTL(v3, 8); \ v3 ^= v2; \ v0 += v3; \ - v3 = ROTL(v3, 11); \ + v3 = ROTL(v3, 7); \ v3 ^= v0; \ v2 += v1; \ - v1 = ROTL(v1, 9); \ + v1 = ROTL(v1, 13); \ v1 ^= v2; \ v2 = ROTL(v2, 16); \ } while (0) |