Bewerken

Share via


Shake128 Class

Definition

Computes the SHAKE128 hash for the input data.

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

Remarks

This algorithm is specified by FIPS 202. The SHAKE algorithm family is an extendable-output function (XOF) which allows the output to be extended to any length. The size of the XOF indicates the security strength of the algorithm, not the output size.

Constructors

Shake128()

Initializes a new instance of the Shake128 class.

Properties

IsSupported

Gets a value that indicates whether the algorithm is supported on the current platform.

Methods

AppendData(Byte[])

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

AppendData(ReadOnlySpan<Byte>)

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

Clone()

Creates a new instance of Shake128 with the existing appended data preserved.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Equals(Object)

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

(Inherited from Object)
GetCurrentHash(Int32)

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

GetCurrentHash(Span<Byte>)

Fills the buffer with the hash for the data accumulated from prior calls to the AppendData methods, without resetting 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>)

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.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
HashData(Byte[], Int32)

Computes the hash of data using the SHAKE128 algorithm.

HashData(ReadOnlySpan<Byte>, Int32)

Computes the hash of data using the SHAKE128 algorithm.

HashData(ReadOnlySpan<Byte>, Span<Byte>)

Computes the hash of data using the SHAKE128 algorithm.

HashData(Stream, Int32)

Computes the hash of a stream using the SHAKE128 algorithm.

HashData(Stream, Span<Byte>)

Computes the hash of a stream using the SHAKE128 algorithm.

HashDataAsync(Stream, Int32, CancellationToken)

Asynchronously computes the hash of a stream using the SHAKE128 algorithm.

HashDataAsync(Stream, Memory<Byte>, CancellationToken)

Asynchronously computes the hash of a stream using the SHAKE128 algorithm.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Read(Int32)

Retrieves the hash for the data accumulated from prior calls to the AppendData methods without resetting the object to its initial state and allowing additional calls to continue retrieving the hash.

Read(Span<Byte>)

Fills the buffer with the hash for the data accumulated from prior calls to the AppendData methods without resetting the object to its initial state and allowing additional calls to continue retrieving the hash.

Reset()

Resets the instance back to its initial state.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to