IHasher
Interface to wrap either a HashAlgorithm or a NonCryptographicHashAlgorithm
to provide a common interface for hashing a stream.
Hash length in bytes.
Appends content to hash calculation.
Hashes the contents of the stream.
Writes the current hash calculation to the given buffer.
Note that some implementations have an explicit hash finalization step.
Therefore this method should NOT be called to observe a partial calculation.