From dca0aa484bd08731fc017a28640d668c3761fbd9 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 19 Nov 2017 22:38:18 +1300 Subject: Fix incorrect grouping in device-side ROL --- cl/onion.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.1