aboutsummaryrefslogtreecommitdiff
path: root/cl
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-11-19 22:38:18 +1300
committerDavid Phillips <david@sighup.nz>2017-11-19 22:38:18 +1300
commitdca0aa484bd08731fc017a28640d668c3761fbd9 (patch)
tree0fa7625dc27a8da2ad4679e4a127493a7b429bee /cl
parent3957b694e3d469c94c68cb07ad0dc12d20963534 (diff)
downloadsand-leek-dca0aa484bd08731fc017a28640d668c3761fbd9.tar.xz
Fix incorrect grouping in device-side ROL
Diffstat (limited to 'cl')
-rw-r--r--cl/onion.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/cl/onion.cl b/cl/onion.cl
index da6a654..035749c 100644
--- a/cl/onion.cl
+++ b/cl/onion.cl
@@ -1,5 +1,5 @@
#define SHA_CHUNK_LEN 64
-#define ROL(x, shamt) ((x << shamt) | ((x >> sizeof(x)*8) - shamt))
+#define ROL(x, shamt) ((x << shamt) | (x >> (sizeof(x)*8 - shamt)))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
struct sha_data {