Shake256.Read Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Read(Span<Byte>) |
Fills the buffer with the hash for the data accumulated from prior calls to the |
Read(Int32) |
Retrieves the hash for the data accumulated from prior calls to the |
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
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
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.