aboutsummaryrefslogtreecommitdiffstats
path: root/pure-java
diff options
context:
space:
mode:
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);