CryptographicOperations.HmacDataAsync Metodo
Definizione
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.
Overload
| Nome | Descrizione |
|---|---|
| HmacDataAsync(HashAlgorithmName, Byte[], Stream, CancellationToken) |
Calcola in modo asincrono l'HMAC di un flusso. |
| HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<Byte>, Stream, CancellationToken) |
Calcola in modo asincrono l'HMAC di un flusso. |
| HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<Byte>, Stream, Memory<Byte>, CancellationToken) |
Calcola in modo asincrono l'HMAC di un flusso. |
HmacDataAsync(HashAlgorithmName, Byte[], Stream, CancellationToken)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola in modo asincrono l'HMAC di un flusso.
public static System.Threading.Tasks.ValueTask<byte[]> HmacDataAsync(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] key, System.IO.Stream source, System.Threading.CancellationToken cancellationToken = default);
static member HmacDataAsync : System.Security.Cryptography.HashAlgorithmName * byte[] * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<byte[]>
Public Shared Function HmacDataAsync (hashAlgorithm As HashAlgorithmName, key As Byte(), source As Stream, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Byte())
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- Byte[]
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- Stream
Flusso su cui calcolare il codice HMAC.
- cancellationToken
- CancellationToken
Token da monitorare per le richieste di annullamento. Il valore predefinito è None.
Valori restituiti
HMAC dei dati.
Eccezioni
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
cancellationToken è stato annullato.
Si applica a
HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<Byte>, Stream, CancellationToken)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola in modo asincrono l'HMAC di un flusso.
public static System.Threading.Tasks.ValueTask<byte[]> HmacDataAsync(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlyMemory<byte> key, System.IO.Stream source, System.Threading.CancellationToken cancellationToken = default);
static member HmacDataAsync : System.Security.Cryptography.HashAlgorithmName * ReadOnlyMemory<byte> * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<byte[]>
Public Shared Function HmacDataAsync (hashAlgorithm As HashAlgorithmName, key As ReadOnlyMemory(Of Byte), source As Stream, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Byte())
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- ReadOnlyMemory<Byte>
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- Stream
Flusso su cui calcolare il codice HMAC.
- cancellationToken
- CancellationToken
Token da monitorare per le richieste di annullamento. Il valore predefinito è None.
Valori restituiti
HMAC dei dati.
Eccezioni
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
cancellationToken è stato annullato.
Si applica a
HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<Byte>, Stream, Memory<Byte>, CancellationToken)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola in modo asincrono l'HMAC di un flusso.
public static System.Threading.Tasks.ValueTask<int> HmacDataAsync(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlyMemory<byte> key, System.IO.Stream source, Memory<byte> destination, System.Threading.CancellationToken cancellationToken = default);
static member HmacDataAsync : System.Security.Cryptography.HashAlgorithmName * ReadOnlyMemory<byte> * System.IO.Stream * Memory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>
Public Shared Function HmacDataAsync (hashAlgorithm As HashAlgorithmName, key As ReadOnlyMemory(Of Byte), source As Stream, destination As Memory(Of Byte), Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Integer)
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- ReadOnlyMemory<Byte>
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- Stream
Flusso su cui calcolare il codice HMAC.
- cancellationToken
- CancellationToken
Token da monitorare per le richieste di annullamento. Il valore predefinito è None.
Valori restituiti
Numero totale di byte scritti in destination.
Eccezioni
Il buffer in destination è troppo piccolo per contenere le dimensioni calcolate di HMAC.
oppure
hashAlgorithm ha un oggetto Name vuoto.
oppure
source non supporta la lettura.
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
cancellationToken è stato annullato.