aboutsummaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-02-07 20:33:54 +0100
committerMattias Andrée <maandree@operamail.com>2013-02-07 20:33:54 +0100
commitaaa48e1bbe053199dc49fcb5bbd565b08d5453ef (patch)
tree80fac097e21cfbc0e6c77326becb6b2acbf290ea /c
parenterror in java version detected (c is identical) + c implemention other wise complete but not optimised (and misses blksize reading) (diff)
downloadsha3sum-aaa48e1bbe053199dc49fcb5bbd565b08d5453ef.tar.gz
sha3sum-aaa48e1bbe053199dc49fcb5bbd565b08d5453ef.tar.bz2
sha3sum-aaa48e1bbe053199dc49fcb5bbd565b08d5453ef.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--c/sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/sha3.c b/c/sha3.c
index de05328..47867b8 100644
--- a/c/sha3.c
+++ b/c/sha3.c
@@ -382,7 +382,7 @@ extern void initialise(long bitrate, long capacity, long output)
w = b / 25;
l = lb(w);
nr = 12 + (l << 1);
- wmod = (1L << w) - 1L;
+ wmod = w == 64 ? -1LL ? (1LL << w) - 1LL;
S = (llong*)malloc(25 * sizeof(llong));
M = (byte*)malloc(mlen = (r * b) >> 2);
mptr = 0;