Class Hashing

java.lang.Object
com.exonum.binding.common.hash.Hashing

public final class Hashing
extends java.lang.Object
Static methods to obtain HashFunction instances, and other static hashing-related utilities.

A comparison of the various hash functions can be found here.

Since:
11.0
Author:
Kevin Bourrillion, Dimitris Andreou, Kurt Alfred Kluever
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int DEFAULT_HASH_SIZE_BITS
    Size of a hash code in the default Exonum algorithm, in bits.
    static int DEFAULT_HASH_SIZE_BYTES
    Size of a hash code in the default Exonum algorithm.
  • Method Summary

    Modifier and Type Method Description
    static HashFunction defaultHashFunction()
    Returns the default Exonum hash function: SHA-256.
    static HashFunction sha256()
    Returns a hash function implementing the SHA-256 algorithm (256 hash bits).
    static HashFunction sha384()
    Returns a hash function implementing the SHA-384 algorithm (384 hash bits).
    static HashFunction sha512()
    Returns a hash function implementing the SHA-512 algorithm (512 hash bits).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait