IncrementalHash Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides support for computing a hash or Hash-based Message Authentication Code (HMAC) value incrementally across several segments.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

System.Object
  System.Security.Cryptography.IncrementalHash

public sealed class IncrementalHash : IDisposable

NameDescription
System_CAPS_pubpropertyAlgorithmName

Gets the name of the algorithm being performed.

NameDescription
System_CAPS_pubmethodAppendData(Byte[])

Appends the specified data to the data already processed in the hash or HMAC.

System_CAPS_pubmethodAppendData(Byte[], Int32, Int32)

Appends the specified number of bytes from the specified data, starting at the specified offset, to the data already processed in the hash or Hash-based Message Authentication Code (HMAC).

System_CAPS_pubmethodSystem_CAPS_staticCreateHash(HashAlgorithmName)

Creates an IncrementalHash for the specified algorithm.

System_CAPS_pubmethodSystem_CAPS_staticCreateHMAC(HashAlgorithmName, Byte[])

Creates an IncrementalHash for the Hash-based Message Authentication Code (HMAC) algorithm using the specified hash algorithm and key.

System_CAPS_pubmethodDispose()

Releases the resources used by the current instance of the IncrementalHash class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashAndReset()

Retrieves the hash or Hash-based Message Authentication Code (HMAC) for the data accumulated from prior calls to the AppendData method, and resets the object to its initial state.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 4.7.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: