Shake256.HashDataAsync Methode

Definitie

Overloads

Name Description
HashDataAsync(Stream, Int32, CancellationToken)

Asynchroon berekent de hash van een stream met behulp van het SHAKE256 algoritme.

HashDataAsync(Stream, Memory<Byte>, CancellationToken)

Asynchroon berekent de hash van een stream met behulp van het SHAKE256 algoritme.

HashDataAsync(Stream, Int32, CancellationToken)

Bron:
Shake256.cs
Bron:
Shake256.cs
Bron:
Shake256.cs
Bron:
Shake256.cs

Asynchroon berekent de hash van een stream met behulp van het SHAKE256 algoritme.

public static System.Threading.Tasks.ValueTask<byte[]> HashDataAsync(System.IO.Stream source, int outputLength, System.Threading.CancellationToken cancellationToken = default);
static member HashDataAsync : System.IO.Stream * int * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<byte[]>
Public Shared Function HashDataAsync (source As Stream, outputLength As Integer, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Byte())

Parameters

source
Stream

De stroom naar hash.

outputLength
Int32

De grootte van de hash die moet worden geproduceerd.

cancellationToken
CancellationToken

Het token dat moet worden gecontroleerd op annuleringsaanvragen. De standaardwaarde is None.

Retouren

Een ValueTask<TResult> die is voltooid met de berekende hash.

Uitzonderingen

source biedt geen ondersteuning voor lezen.

outputLength is negatief.

source is null.

cancellationToken is geannuleerd.

Het platform biedt geen ondersteuning voor SHAKE256. Bellers kunnen de IsSupported eigenschap gebruiken om te bepalen of het platform ondersteuning biedt voor SHAKE256.

Van toepassing op

HashDataAsync(Stream, Memory<Byte>, CancellationToken)

Bron:
Shake256.cs
Bron:
Shake256.cs
Bron:
Shake256.cs
Bron:
Shake256.cs

Asynchroon berekent de hash van een stream met behulp van het SHAKE256 algoritme.

public static System.Threading.Tasks.ValueTask HashDataAsync(System.IO.Stream source, Memory<byte> destination, System.Threading.CancellationToken cancellationToken = default);
static member HashDataAsync : System.IO.Stream * Memory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Shared Function HashDataAsync (source As Stream, destination As Memory(Of Byte), Optional cancellationToken As CancellationToken = Nothing) As ValueTask

Parameters

source
Stream

De stroom naar hash.

destination
Memory<Byte>

De buffer die moet worden gevuld met de hash.

cancellationToken
CancellationToken

Het token dat moet worden gecontroleerd op annuleringsaanvragen. De standaardwaarde is None.

Retouren

Een ValueTask die de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

source is null.

source biedt geen ondersteuning voor lezen.

cancellationToken is geannuleerd.

Het platform biedt geen ondersteuning voor SHAKE256. Bellers kunnen de IsSupported eigenschap gebruiken om te bepalen of het platform ondersteuning biedt voor SHAKE256.

Van toepassing op