public final class Hashing
extends java.lang.Object
HashFunction
instances, and other static hashing-related
utilities.
A comparison of the various hash functions can be found here.
Modifier and Type | Field and 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.
|
Modifier and Type | Method and 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).
|
public static final int DEFAULT_HASH_SIZE_BYTES
public static final int DEFAULT_HASH_SIZE_BITS
public static HashFunction sha256()
public static HashFunction defaultHashFunction()
HashFunction.newHasher()
public static HashFunction sha384()
public static HashFunction sha512()
Copyright © 2018 Exonum. All rights reserved.