HashFunction
Incremental hash function that accumulates data and produces a digest on finalization.
Data is fed via update and the digest is obtained by calling one of the finalization methods: hashIntoByteArray, hashToByteArray, or hash. After finalization, the function can be reset and reused, or closed to release resources.
Obtained via Hasher.createHashFunction.
Functions
Finalizes the hash computation and returns the result as a ByteString.
Finalizes the hash computation and writes the result into destination starting at destinationOffset, and returns the number of bytes written.
Finalizes the hash computation and returns the result as a new ByteArray.
Reads all available data from the source and feeds it into this function.
Feeds data from the source byte array into this function. Only the portion from startIndex (inclusive) to endIndex (exclusive) is processed.
Feeds data from the source byte string into this function. Only the portion from startIndex (inclusive) to endIndex (exclusive) is processed.