diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-17 00:30:43 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-17 00:30:43 +0200 |
commit | e26fff7c5aee64574917e9a46c6f08a1ba55f280 (patch) | |
tree | 5e9b9b72323f51ad5329893ff2fbde1130ae1d8f /pure-java/sha3sum.java | |
parent | update readme (diff) | |
download | sha3sum-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.java | 20 |
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) |