public final class Util extends Object
Modifier and Type | Field and Description |
---|---|
static HashAlgorithm |
DEFAULT_AGGREGATION_ALGORITHM |
static int |
MAXIMUM_LEVEL |
Modifier and Type | Method and Description |
---|---|
static DataHash |
hash(HashAlgorithm hashAlgorithm,
byte[] left,
byte[] right,
long level)
Calculates a data hash using the following formula: H(left||right||Util.encodeUnsignedLong(level)) where
H is a cryptographic hash function defined by
hashAlgorithm . |
public static final HashAlgorithm DEFAULT_AGGREGATION_ALGORITHM
public static final int MAXIMUM_LEVEL
public static DataHash hash(HashAlgorithm hashAlgorithm, byte[] left, byte[] right, long level) throws HashException
hashAlgorithm
.HashException
Copyright © 2024 Guardtime. All rights reserved.