diff --git a/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs index 85777fcb079ad..bbc80a0124c51 100644 --- a/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs @@ -12,11 +12,11 @@ public enum ClientSideEncryptionVersion { V1_0 = 1, } - public partial class StorageCrc64NonCryptographicHashAlgorithm : System.IO.Hashing.NonCryptographicHashAlgorithm + public partial class StorageCrc64HashAlgorithm : System.IO.Hashing.NonCryptographicHashAlgorithm { - internal StorageCrc64NonCryptographicHashAlgorithm() : base (default(int)) { } + internal StorageCrc64HashAlgorithm() : base (default(int)) { } public override void Append(System.ReadOnlySpan source) { } - public static Azure.Storage.StorageCrc64NonCryptographicHashAlgorithm Create() { throw null; } + public static Azure.Storage.StorageCrc64HashAlgorithm Create() { throw null; } protected override void GetCurrentHashCore(System.Span destination) { } public override void Reset() { } } diff --git a/sdk/storage/Azure.Storage.Common/src/Shared/NonCryptographicHashAlgorithmHasher.cs b/sdk/storage/Azure.Storage.Common/src/Shared/NonCryptographicHashAlgorithmHasher.cs index 0836ae6df5cc4..e49e5f8927a51 100644 --- a/sdk/storage/Azure.Storage.Common/src/Shared/NonCryptographicHashAlgorithmHasher.cs +++ b/sdk/storage/Azure.Storage.Common/src/Shared/NonCryptographicHashAlgorithmHasher.cs @@ -14,11 +14,11 @@ internal class NonCryptographicHashAlgorithmHasher : IHasher { private const int _streamBufferSize = 4 * Constants.MB; - private readonly StorageCrc64NonCryptographicHashAlgorithm _nonCryptpgraphicHashAlgorithm; + private readonly StorageCrc64HashAlgorithm _nonCryptographicHashAlgorithm; - public NonCryptographicHashAlgorithmHasher(StorageCrc64NonCryptographicHashAlgorithm nonCryptographicHashAlgorithm) + public NonCryptographicHashAlgorithmHasher(StorageCrc64HashAlgorithm nonCryptographicHashAlgorithm) { - _nonCryptpgraphicHashAlgorithm = nonCryptographicHashAlgorithm; + _nonCryptographicHashAlgorithm = nonCryptographicHashAlgorithm; } public byte[] ComputeHash(Stream stream) @@ -37,12 +37,12 @@ public byte[] ComputeHash(Stream stream) break; } - _nonCryptpgraphicHashAlgorithm.Append(new ReadOnlySpan(buffer, 0, read)); + _nonCryptographicHashAlgorithm.Append(new ReadOnlySpan(buffer, 0, read)); } ArrayPool.Shared.Return(buffer); - return _nonCryptpgraphicHashAlgorithm.GetCurrentHash(); + return _nonCryptographicHashAlgorithm.GetCurrentHash(); } } } diff --git a/sdk/storage/Azure.Storage.Common/src/StorageCrc64NonCryptographicHashAlgorithm.cs b/sdk/storage/Azure.Storage.Common/src/StorageCrc64HashAlgorithm.cs similarity index 70% rename from sdk/storage/Azure.Storage.Common/src/StorageCrc64NonCryptographicHashAlgorithm.cs rename to sdk/storage/Azure.Storage.Common/src/StorageCrc64HashAlgorithm.cs index 54eed8b2c0b85..9c0cc2664ea90 100644 --- a/sdk/storage/Azure.Storage.Common/src/StorageCrc64NonCryptographicHashAlgorithm.cs +++ b/sdk/storage/Azure.Storage.Common/src/StorageCrc64HashAlgorithm.cs @@ -9,24 +9,24 @@ namespace Azure.Storage /// /// Azure Storage CRC-64 implementation. /// - public class StorageCrc64NonCryptographicHashAlgorithm : NonCryptographicHashAlgorithm + public class StorageCrc64HashAlgorithm : NonCryptographicHashAlgorithm { private ulong _uCRC; private const int _hashSizeBytes = 8; - private StorageCrc64NonCryptographicHashAlgorithm(ulong uCrc) + private StorageCrc64HashAlgorithm(ulong uCrc) : base(_hashSizeBytes) { _uCRC = uCrc; } /// - /// Creates a new instance of . + /// Creates a new instance of . /// /// - public static StorageCrc64NonCryptographicHashAlgorithm Create() + public static StorageCrc64HashAlgorithm Create() { - return new StorageCrc64NonCryptographicHashAlgorithm(0UL); + return new StorageCrc64HashAlgorithm(0UL); } /// diff --git a/sdk/storage/Azure.Storage.Common/tests/StorageCrc64NonCryptographicHashAlgorithmTests.cs b/sdk/storage/Azure.Storage.Common/tests/StorageCrc64NonCryptographicHashAlgorithmTests.cs index 77d4172533df0..0668e4ef33899 100644 --- a/sdk/storage/Azure.Storage.Common/tests/StorageCrc64NonCryptographicHashAlgorithmTests.cs +++ b/sdk/storage/Azure.Storage.Common/tests/StorageCrc64NonCryptographicHashAlgorithmTests.cs @@ -27,7 +27,7 @@ public void UpdateHashManualAppends() // should produce same result every time regardless of randomness byte[] ComputeHash() { - var calculator = StorageCrc64NonCryptographicHashAlgorithm.Create(); + var calculator = StorageCrc64HashAlgorithm.Create(); var position = 0; do