NonCryptographicHashAlgorithm Class

Definition

Represents a non-cryptographic hash algorithm.

public ref class NonCryptographicHashAlgorithm abstract
public abstract class NonCryptographicHashAlgorithm
type NonCryptographicHashAlgorithm = class
Public MustInherit Class NonCryptographicHashAlgorithm
Inheritance
NonCryptographicHashAlgorithm
Derived

Constructors

NonCryptographicHashAlgorithm(Int32)

Called from constructors in derived classes to initialize the NonCryptographicHashAlgorithm class.

Properties

HashLengthInBytes

Gets the number of bytes produced from this hash algorithm.

Methods

Append(Byte[])

Appends the contents of source to the data already processed for the current hash computation.

Append(ReadOnlySpan<Byte>)

When overridden in a derived class, appends the contents of source to the data already processed for the current hash computation.

Append(Stream)

Appends the contents of stream to the data already processed for the current hash computation.

AppendAsync(Stream, CancellationToken)

Asychronously reads the contents of stream and appends them to the data already processed for the current hash computation.

Equals(Object)

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

(Inherited from Object)
GetCurrentHash()

Gets the current computed hash value without modifying accumulated state.

GetCurrentHash(Span<Byte>)

Writes the computed hash value to destination without modifying accumulated state.

GetCurrentHashCore(Span<Byte>)

When overridden in a derived class, writes the computed hash value to destination without modifying accumulated state.

GetHashAndReset()

Gets the current computed hash value and clears the accumulated state.

GetHashAndReset(Span<Byte>)

Writes the computed hash value to destination then clears the accumulated state.

GetHashAndResetCore(Span<Byte>)

Writes the computed hash value to destination then clears the accumulated state.

GetHashCode()
Obsolete.

This method is not supported and should not be called. Call GetCurrentHash() or GetHashAndReset() instead.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Reset()

When overridden in a derived class, resets the hash computation to the initial state.

ToString()

Returns a string that represents the current object.

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

Attempts to write the computed hash value to destination without modifying accumulated state.

TryGetHashAndReset(Span<Byte>, Int32)

Attempts to write the computed hash value to destination. If successful, clears the accumulated state.

Applies to