aboutsummaryrefslogtreecommitdiffstats
path: root/pure-java/sha3sum.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-17 00:30:43 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-17 00:30:43 +0200
commite26fff7c5aee64574917e9a46c6f08a1ba55f280 (patch)
tree5e9b9b72323f51ad5329893ff2fbde1130ae1d8f /pure-java/sha3sum.java
parentupdate readme (diff)
downloadsha3sum-e26fff7c5aee64574917e9a46c6f08a1ba55f280.tar.gz
sha3sum-e26fff7c5aee64574917e9a46c6f08a1ba55f280.tar.bz2
sha3sum-e26fff7c5aee64574917e9a46c6f08a1ba55f280.tar.xz
m + fix for python version
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'pure-java/sha3sum.java')
-rw-r--r--pure-java/sha3sum.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/pure-java/sha3sum.java b/pure-java/sha3sum.java
index 3b4cec9..783e41b 100644
--- a/pure-java/sha3sum.java
+++ b/pure-java/sha3sum.java
@@ -142,7 +142,7 @@ public class sha3sum
System.out.println("You should have received a copy of the GNU General Public License");
System.out.println("along with this program. If not, see <http://www.gnu.org/licenses/>.");
System.out.println("");
- System.exit(2);
+ System.exit(0);
}
else
{
@@ -292,6 +292,15 @@ public class sha3sum
}
+ System.err.println("Bitrate: " + r);
+ System.err.println("Capacity: " + c);
+ System.err.println("Word size: " + w);
+ System.err.println("State size: " + s);
+ System.err.println("Output size: " + o);
+ System.err.println("Iterations: " + i);
+ System.err.println("Squeezes: " + j);
+
+
if (r > s)
{ System.err.println(cmd + ": the bitrate must not be higher than the state size.");
System.exit(6);
@@ -306,15 +315,6 @@ public class sha3sum
}
- System.err.println("Bitrate: " + r);
- System.err.println("Capacity: " + c);
- System.err.println("Word size: " + w);
- System.err.println("State size: " + s);
- System.err.println("Output size: " + o);
- System.err.println("Iterations: " + i);
- System.err.println("Squeezes: " + j);
-
-
if (fptr == 0)
files[fptr++] = null;
if (i < 1)