Update the hash being computed with length of the bytes in buf starting at offset. The programmer should ensure that buf is at least offset + length bytes long.
Finishes the computation of the hash and returns the result as a byte array. The input read thusfar may be padded first (depending on the algorithm), and the instance is reset.
Returns the size of the final hash (the byte array returned by
digest()
) in bytes.
Resets the internal state of the hash, making its state equivalent to that of a newly-created instance.