<PackageReference Include="Azure.Storage.Files.DataLake" Version="12.25.0" />

Azure.Storage.ContentHasher

static class ContentHasher
Hashes Storage content.
namespace Azure.Storage { internal static class ContentHasher { public delegate int GetFinalStreamHash (Span<byte> destination); public static Task AssertResponseHashMatchInternal(Stream content, StorageChecksumAlgorithm algorithm, Response response, bool async, CancellationToken cancellationToken); public static void AssertResponseHashMatch(byte[] content, int offset, int count, StorageChecksumAlgorithm algorithm, Response response); public static Task<GetHashResult> GetHashOrDefaultInternal(Stream content, UploadTransferValidationOptions options, bool async, CancellationToken cancellationToken); public static GetHashResult GetHashOrDefault(BinaryData content, UploadTransferValidationOptions options); public static Task<GetHashResult> GetHashInternal(Stream content, StorageChecksumAlgorithm algorithmIdentifier, bool async, CancellationToken cancellationToken); public static GetHashResult GetHash(BinaryData content, StorageChecksumAlgorithm algorithmIdentifier); public static (Stream Stream, GetFinalStreamHash GetCurrentStreamHash, int HashSize, IDisposable Disposable) SetupChecksumCalculatingReadStream(Stream stream, StorageChecksumAlgorithm algorithmIdentifier); public static IHasher GetHasherFromAlgorithmId(StorageChecksumAlgorithm algorithm); public static (ReadOnlyMemory<byte> Checksum, StorageChecksumAlgorithm Algorithm) GetResponseChecksumOrDefault(Response response); } }