The data is processed through it using the update methods. At any point reset can be called to reset the digest. Once all the data to be updated has been updated, one of the digest methods should be called to complete the hash computation. The digest method can be called once for a given number of updates. After digest has been called, the MessageDigest object is reset to its initialized state.
Implementations are free to implement the Cloneable interface.
Note that this class is abstract and extends from MessageDigestSpi for historical reasons. Creates a message digest with the specified algorithm name. Completes the hash computation by performing final operations such as padding. Performs a final update on the digest using the specified array of bytes, then completes the digest computation. Completes the hash computation by performing final operations such as padding.