HMACSHA3_384.HashDataAsync Metodo
In questo articolo
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
HashDataAsync(Byte[], Stream, CancellationToken) |
Calcola in modo asincrono l'HMAC di un flusso usando l'algoritmo SHA3-384. |
HashDataAsync(ReadOnlyMemory<Byte>, Stream, CancellationToken) |
Calcola in modo asincrono l'HMAC di un flusso usando l'algoritmo SHA3-384. |
HashDataAsync(ReadOnlyMemory<Byte>, Stream, Memory<Byte>, CancellationToken) |
Calcola in modo asincrono l'HMAC di un flusso usando l'algoritmo SHA3-384. |
- Origine:
- HMACSHA3_384.cs
- Origine:
- HMACSHA3_384.cs
Calcola in modo asincrono l'HMAC di un flusso usando l'algoritmo SHA3-384.
public static System.Threading.Tasks.ValueTask<byte[]> HashDataAsync(byte[] key, System.IO.Stream source, System.Threading.CancellationToken cancellationToken = default);
static member HashDataAsync : byte[] * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<byte[]>
Public Shared Function HashDataAsync (key As Byte(), source As Stream, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Byte())
Parametri
- key
- Byte[]
Tasto HMAC.
- source
- Stream
Flusso in HMAC.
- cancellationToken
- CancellationToken
Token da monitorare per le richieste di annullamento. Il valore predefinito è None.
Restituisce
HMAC dei dati.
Eccezioni
key
o source
è null
.
source
non supporta la lettura.
Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.
Si applica a
.NET 10 e altre versioni
Prodotto | Versioni |
---|---|
.NET | 8, 9, 10 |
- Origine:
- HMACSHA3_384.cs
- Origine:
- HMACSHA3_384.cs
Calcola in modo asincrono l'HMAC di un flusso usando l'algoritmo SHA3-384.
public static System.Threading.Tasks.ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, System.IO.Stream source, System.Threading.CancellationToken cancellationToken = default);
static member HashDataAsync : ReadOnlyMemory<byte> * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<byte[]>
Public Shared Function HashDataAsync (key As ReadOnlyMemory(Of Byte), source As Stream, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Byte())
Parametri
- key
- ReadOnlyMemory<Byte>
Tasto HMAC.
- source
- Stream
Flusso in HMAC.
- cancellationToken
- CancellationToken
Token da monitorare per le richieste di annullamento. Il valore predefinito è None.
Restituisce
HMAC dei dati.
Eccezioni
source
è null
.
source
non supporta la lettura.
Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.
Si applica a
.NET 10 e altre versioni
Prodotto | Versioni |
---|---|
.NET | 8, 9, 10 |
- Origine:
- HMACSHA3_384.cs
- Origine:
- HMACSHA3_384.cs
Calcola in modo asincrono l'HMAC di un flusso usando l'algoritmo SHA3-384.
public static System.Threading.Tasks.ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, System.IO.Stream source, Memory<byte> destination, System.Threading.CancellationToken cancellationToken = default);
static member HashDataAsync : ReadOnlyMemory<byte> * System.IO.Stream * Memory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>
Public Shared Function HashDataAsync (key As ReadOnlyMemory(Of Byte), source As Stream, destination As Memory(Of Byte), Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Integer)
Parametri
- key
- ReadOnlyMemory<Byte>
Tasto HMAC.
- source
- Stream
Flusso in HMAC.
- cancellationToken
- CancellationToken
Token da monitorare per le richieste di annullamento. Il valore predefinito è None.
Restituisce
Numero totale di byte scritti in destination
.
Eccezioni
source
è null
.
Il buffer in destination
è troppo piccolo per contenere le dimensioni hash calcolate. L'algoritmo SHA3-384 produce sempre un hash a 384 bit o 48 byte.
-oppure-
source
non supporta la lettura.
Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.
Si applica a
.NET 10 e altre versioni
Prodotto | Versioni |
---|---|
.NET | 8, 9, 10 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: