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