KmacXof256.HashDataAsync Metodo

Definizione

Overload

HashDataAsync(ReadOnlyMemory<Byte>, Stream, Memory<Byte>, ReadOnlyMemory<Byte>, CancellationToken)

Calcola in modo asincrono l'hash di un flusso usando l'algoritmo KMACXOF256.

HashDataAsync(Byte[], Stream, Int32, Byte[], CancellationToken)

Calcola in modo asincrono l'hash di un flusso usando l'algoritmo KMACXOF256.

HashDataAsync(ReadOnlyMemory<Byte>, Stream, Int32, ReadOnlyMemory<Byte>, CancellationToken)

Calcola in modo asincrono l'hash di un flusso usando l'algoritmo KMACXOF256.

HashDataAsync(ReadOnlyMemory<Byte>, Stream, Memory<Byte>, ReadOnlyMemory<Byte>, CancellationToken)

Origine:
KmacXof256.cs

Calcola in modo asincrono l'hash di un flusso usando l'algoritmo KMACXOF256.

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

Parametri

key
ReadOnlyMemory<Byte>

Tasto KMAC.

source
Stream

Flusso da hashre.

destination
Memory<Byte>

Buffer da riempire con l'hash.

customizationString
ReadOnlyMemory<Byte>

Stringa di personalizzazione facoltativa. Il valore predefinito non è una stringa di personalizzazione.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento. Il valore predefinito è None.

Restituisce

Oggetto ValueTask che rappresenta l'operazione asincrona.

Eccezioni

source è null.

source non supporta la lettura.

Si è verificato un errore durante l'operazione.

cancellationToken è stato annullato.

La piattaforma non supporta KMACXOF256. I chiamanti possono usare la proprietà IsSupported per determinare se la piattaforma supporta KMACXOF256.

Si applica a

HashDataAsync(Byte[], Stream, Int32, Byte[], CancellationToken)

Origine:
KmacXof256.cs

Calcola in modo asincrono l'hash di un flusso usando l'algoritmo KMACXOF256.

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

Parametri

key
Byte[]

Tasto KMAC.

source
Stream

Flusso da hashre.

outputLength
Int32

Dimensione dell'hash da produrre.

customizationString
Byte[]

Stringa di personalizzazione facoltativa. Il valore predefinito non è una stringa di personalizzazione.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento. Il valore predefinito è None.

Restituisce

Un ValueTask<TResult> che viene completato con l'hash calcolato.

Eccezioni

key o source è null.

source non supporta la lettura.

outputLength è negativo.

Si è verificato un errore durante l'operazione.

cancellationToken è stato annullato.

La piattaforma non supporta KMACXOF256. I chiamanti possono usare la proprietà IsSupported per determinare se la piattaforma supporta KMACXOF256.

Si applica a

HashDataAsync(ReadOnlyMemory<Byte>, Stream, Int32, ReadOnlyMemory<Byte>, CancellationToken)

Origine:
KmacXof256.cs

Calcola in modo asincrono l'hash di un flusso usando l'algoritmo KMACXOF256.

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

Parametri

key
ReadOnlyMemory<Byte>

Tasto KMAC.

source
Stream

Flusso da hashre.

outputLength
Int32

Dimensione dell'hash da produrre.

customizationString
ReadOnlyMemory<Byte>

Stringa di personalizzazione facoltativa. Il valore predefinito non è una stringa di personalizzazione.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento. Il valore predefinito è None.

Restituisce

Un ValueTask<TResult> che viene completato con l'hash calcolato.

Eccezioni

source è null.

source non supporta la lettura.

outputLength è negativo.

Si è verificato un errore durante l'operazione.

cancellationToken è stato annullato.

La piattaforma non supporta KMACXOF256. I chiamanti possono usare la proprietà IsSupported per determinare se la piattaforma supporta KMACXOF256.

Si applica a