From 90d50be92fe23f17ca722de75c01c4ecc33b3233 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 3 May 2013 01:59:39 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- pure-java/sha3sum.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pure-java/sha3sum.java') 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); -- cgit v1.2.3-70-g09d2