KmacXof256.GetHashAndReset Method

Definition

Overloads

GetHashAndReset(Span<Byte>)

Fills the buffer with the hash for the data accumulated from prior calls to the AppendData methods, and resets the object to its initial state.

GetHashAndReset(Int32)

Retrieves the hash for the data accumulated from prior calls to the AppendData methods, and resets the object to its initial state.

GetHashAndReset(Span<Byte>)

Source:
KmacXof256.cs

Fills the buffer with the hash for the data accumulated from prior calls to the AppendData methods, and resets the object to its initial state.

C#
public void GetHashAndReset (Span<byte> destination);

Parameters

destination
Span<Byte>

The buffer to fill with the hash.

Exceptions

An error has occurred during the operation.

The object has already been disposed.

See also

Applies to

.NET 9
Product Versions
.NET 9

GetHashAndReset(Int32)

Source:
KmacXof256.cs

Retrieves the hash for the data accumulated from prior calls to the AppendData methods, and resets the object to its initial state.

C#
public byte[] GetHashAndReset (int outputLength);

Parameters

outputLength
Int32

The size of the hash to produce.

Returns

Byte[]

The computed hash.

Exceptions

outputLength is negative.

An error has occurred during the operation.

The object has already been disposed.

See also

Applies to

.NET 9
Product Versions
.NET 9