diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-11 21:22:29 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-11 21:22:34 +0100 |
commit | 7cd2624ceafb38bc4bba6b83f478604f6c6ba11c (patch) | |
tree | 689bda85bf60c3afdc391cf8cf4e5a4833a76049 /src | |
parent | bug fixed, but found that large outputs does not work correctly (diff) | |
download | libkeccak-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.c | 2 |
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)) /** |