aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-11 21:22:29 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-11 21:22:34 +0100
commit7cd2624ceafb38bc4bba6b83f478604f6c6ba11c (patch)
tree689bda85bf60c3afdc391cf8cf4e5a4833a76049 /src
parentbug fixed, but found that large outputs does not work correctly (diff)
downloadlibkeccak-7cd2624ceafb38bc4bba6b83f478604f6c6ba11c.tar.gz
libkeccak-7cd2624ceafb38bc4bba6b83f478604f6c6ba11c.tar.bz2
libkeccak-7cd2624ceafb38bc4bba6b83f478604f6c6ba11c.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libkeccak/digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libkeccak/digest.c b/src/libkeccak/digest.c
index 0b3005d..d359405 100644
--- a/src/libkeccak/digest.c
+++ b/src/libkeccak/digest.c
@@ -76,7 +76,7 @@ static const uint_fast64_t RC[] =
* @param wmod:int_fast64_t `state->wmod`
* @return :int_fast64_t The value rotated
*/
-#define rotate(x, n, w, wmod) ((((x) >> ((w) - ((n) % (w)))) + ((x) << ((n) % (w)))) & (wmod))
+#define rotate(x, n, w, wmod) ((((x) >> ((w) - ((n) % (w)))) | ((x) << ((n) % (w)))) & (wmod))
/**