aboutsummaryrefslogtreecommitdiffstats
path: root/pure-java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-05-03 01:59:39 +0200
committerMattias Andrée <maandree@operamail.com>2013-05-03 01:59:39 +0200
commit90d50be92fe23f17ca722de75c01c4ecc33b3233 (patch)
treebc80f6a5e61e2ac00b5d8949cc98c459576fb4e1 /pure-java
parentm (diff)
downloadsha3sum-90d50be92fe23f17ca722de75c01c4ecc33b3233.tar.gz
sha3sum-90d50be92fe23f17ca722de75c01c4ecc33b3233.tar.bz2
sha3sum-90d50be92fe23f17ca722de75c01c4ecc33b3233.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'pure-java')
-rw-r--r--pure-java/sha3sum.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pure-java/sha3sum.java b/pure-java/sha3sum.java
index 356ac9d..75f48b0 100644
--- a/pure-java/sha3sum.java
+++ b/pure-java/sha3sum.java
@@ -253,7 +253,7 @@ public class sha3sum
if ((R == null) && (C == null) && (O == null)) // s?
- { r = ((c = (o = ((((s = S == null ? _s : s) << 5) / 100 + 7) >> 3) << 3) << 1) - s);
+ { r = -((c = (o = ((((s = S == null ? _s : s) << 5) / 100 + 7) >> 3) << 3) << 1) - s);
o = o < 8 ? 8 : o;
}
else if ((R == null) && (C == null)) // !o s?
@@ -288,6 +288,7 @@ public class sha3sum
System.exit(6);
}
+
System.err.println("Bitrate: " + r);
System.err.println("Capacity: " + c);
System.err.println("Word size: " + w);