diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-02-05 10:17:32 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-02-05 10:17:32 +0100 |
commit | 184c0f9579a64b650cb789e689ae96c9661aede8 (patch) | |
tree | fdf90320b518b23f3e51ad8c4ef304425a67ff97 /pure-java | |
parent | add makefile (diff) | |
download | sha3sum-184c0f9579a64b650cb789e689ae96c9661aede8.tar.gz sha3sum-184c0f9579a64b650cb789e689ae96c9661aede8.tar.bz2 sha3sum-184c0f9579a64b650cb789e689ae96c9661aede8.tar.xz |
basically coping the java version to c (naturally this does not compile)
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'pure-java')
-rw-r--r-- | pure-java/SHA3.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pure-java/SHA3.java b/pure-java/SHA3.java index 5b4796e..700e469 100644 --- a/pure-java/SHA3.java +++ b/pure-java/SHA3.java @@ -25,14 +25,6 @@ */ public class SHA3 { - private static String hex(long x) - { - String a = "00000000" + Long.toString((x >>> 32) & ((1L << 32) - 1), 16); - String b = "00000000" + Long.toString(x & ((1L << 32) - 1), 16); - a = a.substring(a.length() - 8); - b = b.substring(b.length() - 8); - return a + b; - } /** * Round contants */ |