public interface HashEngine
getHash
that must return the hash value calculated on the data.Modifier and Type | Method and Description |
---|---|
byte[] |
getHash()
Gets the calculated hash value.
|
byte[] |
getHash(int hashLen)
Gets the calculated hash value of the given length.
|
byte[] getHash()
byte[] getHash(int hashLen) throws java.security.DigestException
hashLen
- the length (in bytes) of the hash valuejava.security.DigestException
- if an error occurs when calculating the hash value