de.flexiprovider.core.md.swifftx
Class SWIFFTX

java.lang.Object
  |
  +--de.flexiprovider.core.md.swifftx.SWIFFTX

public class SWIFFTX
extends java.lang.Object

This is a C++ - Java portation of the reference SWIFFTX hash function, designed by Yuriy Arbitman, Gil Dogon, Vadim Lyubashevsky, Daniele Micciancio, Chris Peikert, Alon Rosen. The NIST submission package can be found here: It also contains speed optimized versions and papers. SWIFFTX is a SHA3 candidate. The original comments are only slightly changed.

Author:
Stephan Mönkehues

Constructor Summary
SWIFFTX()
           
 
Method Summary
(package private) static int[] hash(int hashbitlen, byte[] data, int databitlen)
          Hash() provides a method to perform all-at-once processing of the input data using SWIFFTX and returns the resulting hash value.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWIFFTX

public SWIFFTX()
Method Detail

hash

static int[] hash(int hashbitlen,
                  byte[] data,
                  int databitlen)
Hash() provides a method to perform all-at-once processing of the input data using SWIFFTX and returns the resulting hash value. The Hash() function is called with the data to be processed, the length of the data to be processed (databitlen) and a length of the desired hash value (hashbitlen). This function utilizes the previous three function calls, namely Init(), Update(), and Final(). Parameters: - hashbitlen: the length in bits of the desired hash value - data: the input data to be hashed - databitlen: the length, in bits, of the data to be hashed Returns: - hashvalue.