aboutsummaryrefslogtreecommitdiffstats
path: root/pure-java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-02-05 10:17:32 +0100
committerMattias Andrée <maandree@operamail.com>2013-02-05 10:17:32 +0100
commit184c0f9579a64b650cb789e689ae96c9661aede8 (patch)
treefdf90320b518b23f3e51ad8c4ef304425a67ff97 /pure-java
parentadd makefile (diff)
downloadsha3sum-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.java8
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
*/