Редагувати

Поділитися через


Shake128.Read Method

Definition

Overloads

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.

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.

public:
 void Read(Span<System::Byte> destination);
public void Read (Span<byte> destination);
member this.Read : Span<byte> -> unit
Public Sub Read (destination As Span(Of Byte))

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.

The platform does not support multiple reads of the hash. GetHashAndReset(Span<Byte>) can be used to perform a single operation.

Applies to

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.

public:
 cli::array <System::Byte> ^ Read(int outputLength);
public byte[] Read (int outputLength);
member this.Read : int -> byte[]
Public Function Read (outputLength As Integer) As Byte()

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.

The platform does not support multiple reads of the hash. GetHashAndReset(Int32) can be used to perform a single operation.

Applies to