Azure.Storage.IHasher
Interface to wrap either a HashAlgorithm or a NonCryptographicHashAlgorithm
to provide a common interface for hashing a stream.
namespace Azure.Storage
{
internal interface IHasher : IDisposable
{
int HashSizeInBytes { get; }
Task<byte[]> ComputeHashInternal(Stream stream, bool async, CancellationToken cancellationToken);
void AppendHash(ReadOnlySpan<byte> content);
int GetFinalHash(Span<byte> hashDestination);
}
}