diff --git a/CHANGELIST.md b/CHANGELIST.md index 5a3b2b63..5780bd88 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -2,6 +2,7 @@ - Move Hash enum and simplify - Add other non-cryptographic hashes +- Avoid unncessary allocation in hashing ### 2.7.3 (2023-10-26) diff --git a/MPF.Core/Hashing/Hasher.cs b/MPF.Core/Hashing/Hasher.cs index 8e425a56..705cc182 100644 --- a/MPF.Core/Hashing/Hasher.cs +++ b/MPF.Core/Hashing/Hasher.cs @@ -95,6 +95,7 @@ namespace MPF.Core.Hashing /// /// Finalize the internal hash algorigthm /// + /// NonCryptographicHashAlgorithm implementations do not need finalization public void Terminate() { byte[] emptyBuffer = Array.Empty(); @@ -103,9 +104,6 @@ namespace MPF.Core.Hashing case HashAlgorithm ha: ha.TransformFinalBlock(emptyBuffer, 0, 0); break; - case NonCryptographicHashAlgorithm ncha: - // No finalization is needed - break; } }