diff options
author | David Phillips <david@sighup.nz> | 2017-11-19 22:38:18 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-11-19 22:38:18 +1300 |
commit | dca0aa484bd08731fc017a28640d668c3761fbd9 (patch) | |
tree | 0fa7625dc27a8da2ad4679e4a127493a7b429bee | |
parent | 3957b694e3d469c94c68cb07ad0dc12d20963534 (diff) | |
download | sand-leek-dca0aa484bd08731fc017a28640d668c3761fbd9.tar.xz |
Fix incorrect grouping in device-side ROL
-rw-r--r-- | cl/onion.cl | 2 |
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 { |