IncrementalHash Class

Definition

Provides support for computing a hash or HMAC value incrementally across several segments.

public ref class IncrementalHash sealed : IDisposable
public sealed class IncrementalHash : IDisposable
type IncrementalHash = class
    interface IDisposable
Public NotInheritable Class IncrementalHash
Implements IDisposable
Inheritance
IncrementalHash
Implements

Properties

Name Description
AlgorithmName

Get the name of the algorithm being performed.

Methods

Name Description
AppendData(Byte[], Int32, Int32)

Append count bytes of data, starting at offset, to the data already processed in the hash or HMAC.

AppendData(Byte[])

Append the entire contents of data to the data already processed in the hash or HMAC.

AppendData(ReadOnlySpan<Byte>)

Appends the specified data to the data already processed in the hash or Hash-based Message Authentication Code (HMAC).

CreateHash(HashAlgorithmName)

Create an IncrementalHash for the algorithm specified by hashAlgorithm.

CreateHMAC(HashAlgorithmName, Byte[])

Create an IncrementalHash for the Hash-based Message Authentication Code (HMAC) algorithm utilizing the hash algorithm specified by hashAlgorithm, and a key specified by key.

Dispose()

Release all resources used by the current instance of the IncrementalHash class.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashAndReset()

Retrieve the hash or HMAC for the data accumulated from prior calls to AppendData(Byte[]), and return to the state the object was in at construction.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetHashAndReset(Span<Byte>, Int32)

Attempts to finalize the hash computation after the last data is processed by the hash algorithm.

Applies to