public DigestAlgorithm
Interface for injecting custom digest implementation bypassing JCA.
Modifier and Type | Interface and Description |
---|---|
static class |
DigestAlgorithm.DefaultImpls
Interface for injecting custom digest implementation bypassing JCA.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
componentDigest(byte[] bytes)
Computes the digest of the ByteArray which is resistant to pre-image attacks. Only used to calculate the hash of the leaves of the
ComponentGroup Merkle tree, starting from its serialized components.
Default implementation provides double hashing, but can it be changed to single hashing or something else for better performance.
|
byte[] |
digest(byte[] bytes)
Computes the digest of the ByteArray.
|
java.lang.String |
getAlgorithm()
Algorithm identifier.
|
int |
getDigestLength()
The length of the digest in bytes.
|
byte[] |
nonceDigest(byte[] bytes)
Computes the digest of the ByteArray which is resistant to pre-image attacks. Only used to calculate the nonces for the leaves of
the ComponentGroup Merkle tree.
Default implementation provides double hashing, but can it be changed to single hashing or something else for better performance.
|
java.lang.String getAlgorithm()
Algorithm identifier.
int getDigestLength()
The length of the digest in bytes.
byte[] digest(byte[] bytes)
Computes the digest of the ByteArray.
byte[] componentDigest(byte[] bytes)
Computes the digest of the ByteArray which is resistant to pre-image attacks. Only used to calculate the hash of the leaves of the ComponentGroup Merkle tree, starting from its serialized components. Default implementation provides double hashing, but can it be changed to single hashing or something else for better performance.
byte[] nonceDigest(byte[] bytes)
Computes the digest of the ByteArray which is resistant to pre-image attacks. Only used to calculate the nonces for the leaves of the ComponentGroup Merkle tree. Default implementation provides double hashing, but can it be changed to single hashing or something else for better performance.