public class Hashes
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
hash160(byte[]... inputs)
Performs a RIPEMD_160 hash of SHA_256 of the concatenated inputs.
|
static byte[] |
hash256(byte[]... inputs)
Performs a SHA_256 hash of the concatenated inputs.
|
static byte[] |
keccak256(byte[]... inputs)
Performs a KECCAK_256 hash of the concatenated inputs.
|
static byte[] |
keccak512(byte[]... inputs)
Performs a KECCAK_512 hash of the concatenated inputs.
|
static byte[] |
ripemd160(byte[]... inputs)
Performs a RIPEMD_160 hash of the concatenated inputs.
|
static byte[] |
sha256ForSharedKey(byte[] sharedSecret)
Hasher used for shared keys
|
static byte[] |
sha3_256(byte[]... inputs)
Performs a SHA_3_256 hash of the concatenated inputs.
|
static byte[] |
sha3_512(byte[]... inputs)
Performs a SHA_3_512 hash of the concatenated inputs.
|
static byte[] |
sha512(byte[]... inputs)
Performs a SHA_512 hash of the concatenated inputs.
|
public static byte[] sha3_256(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] sha3_512(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] ripemd160(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] keccak256(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] keccak512(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] sha512(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] hash256(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] hash160(byte[]... inputs)
inputs
- The byte arrays to concatenate and hash.CryptoException
- if the hash operation failed.public static byte[] sha256ForSharedKey(byte[] sharedSecret)
sharedSecret
- the shared secret