IncrementalHash IncrementalHash IncrementalHash IncrementalHash Class

Definition

Provides support for computing a hash or Hash-based Message Authentication Code (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
IncrementalHashIncrementalHashIncrementalHashIncrementalHash
Implements

Properties

AlgorithmName AlgorithmName AlgorithmName AlgorithmName

Gets the name of the algorithm being performed. HMAC algorithms are prepended with "HMAC" to distinguish them from an unkeyed digest.

Methods

AppendData(Byte[]) AppendData(Byte[]) AppendData(Byte[]) AppendData(Byte[])

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

AppendData(Byte[], Int32, Int32) AppendData(Byte[], Int32, Int32) AppendData(Byte[], Int32, Int32) AppendData(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).

AppendData(ReadOnlySpan<Byte>) AppendData(ReadOnlySpan<Byte>) AppendData(ReadOnlySpan<Byte>) AppendData(ReadOnlySpan<Byte>)
CreateHash(HashAlgorithmName) CreateHash(HashAlgorithmName) CreateHash(HashAlgorithmName) CreateHash(HashAlgorithmName)

Creates an IncrementalHash for the specified algorithm.

CreateHMAC(HashAlgorithmName, Byte[]) CreateHMAC(HashAlgorithmName, Byte[]) CreateHMAC(HashAlgorithmName, Byte[]) CreateHMAC(HashAlgorithmName, Byte[])

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

Dispose() Dispose() Dispose() Dispose()

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashAndReset() GetHashAndReset() GetHashAndReset() GetHashAndReset()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

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

Applies to