CryptographicOperations.HmacData 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 |
|---|---|
| HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>) |
Calcola l'HMAC dei dati. |
| HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream, Span<Byte>) |
Calcola l'HMAC di un flusso. |
| HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Calcola l'HMAC dei dati. |
| HmacData(HashAlgorithmName, Byte[], Stream) |
Calcola l'HMAC di un flusso. |
| HmacData(HashAlgorithmName, Byte[], Byte[]) |
Calcola l'HMAC dei dati. |
| HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream) |
Calcola l'HMAC di un flusso. |
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola l'HMAC dei dati.
public:
static int HmacData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);
public static int HmacData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination);
static member HmacData : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> int
Public Shared Function HmacData (hashAlgorithm As HashAlgorithmName, key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- ReadOnlySpan<Byte>
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- ReadOnlySpan<Byte>
Dati su cui calcolare il codice HMAC.
Restituisce
Numero totale di byte scritti in destination.
Eccezioni
Il buffer in destination è troppo piccolo per contenere le dimensioni dell'hash calcolato.
-o-
hashAlgorithm ha un Name vuoto.
hashAlgorithm ha un Namenull.
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
Si applica a
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream, Span<Byte>)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola l'HMAC di un flusso.
public:
static int HmacData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> key, System::IO::Stream ^ source, Span<System::Byte> destination);
public static int HmacData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, System.IO.Stream source, Span<byte> destination);
static member HmacData : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * System.IO.Stream * Span<byte> -> int
Public Shared Function HmacData (hashAlgorithm As HashAlgorithmName, key As ReadOnlySpan(Of Byte), source As Stream, destination As Span(Of Byte)) As Integer
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- ReadOnlySpan<Byte>
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- Stream
Dati su cui calcolare il codice HMAC.
Restituisce
Numero totale di byte scritti in destination.
Eccezioni
hashAlgorithm ha un Name vuoto.
-o-
source non supporta la lettura.
-o-
Il buffer in destination è troppo piccolo per contenere le dimensioni calcolate di HMAC.
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
Si applica a
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola l'HMAC dei dati.
public:
static cli::array <System::Byte> ^ HmacData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source);
public static byte[] HmacData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source);
static member HmacData : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> byte[]
Public Shared Function HmacData (hashAlgorithm As HashAlgorithmName, key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte)) As Byte()
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- ReadOnlySpan<Byte>
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- ReadOnlySpan<Byte>
Dati su cui calcolare il codice HMAC.
Restituisce
HMAC dei dati.
Eccezioni
hashAlgorithm ha un Namenull.
hashAlgorithm ha un Name vuoto.
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
Si applica a
HmacData(HashAlgorithmName, Byte[], Stream)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola l'HMAC di un flusso.
public:
static cli::array <System::Byte> ^ HmacData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ key, System::IO::Stream ^ source);
public static byte[] HmacData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] key, System.IO.Stream source);
static member HmacData : System.Security.Cryptography.HashAlgorithmName * byte[] * System.IO.Stream -> byte[]
Public Shared Function HmacData (hashAlgorithm As HashAlgorithmName, key As Byte(), source As Stream) As Byte()
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- Byte[]
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- Stream
Dati su cui calcolare il codice HMAC.
Restituisce
HMAC dei dati.
Eccezioni
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
Si applica a
HmacData(HashAlgorithmName, Byte[], Byte[])
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola l'HMAC dei dati.
public:
static cli::array <System::Byte> ^ HmacData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ key, cli::array <System::Byte> ^ source);
public static byte[] HmacData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] key, byte[] source);
static member HmacData : System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] -> byte[]
Public Shared Function HmacData (hashAlgorithm As HashAlgorithmName, key As Byte(), source As Byte()) As Byte()
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- Byte[]
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- Byte[]
Dati su cui calcolare il codice HMAC.
Restituisce
HMAC dei dati.
Eccezioni
hashAlgorithm ha un Name vuoto.
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.
Si applica a
HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream)
- Origine:
- CryptographicOperations.cs
- Origine:
- CryptographicOperations.cs
Calcola l'HMAC di un flusso.
public:
static cli::array <System::Byte> ^ HmacData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, ReadOnlySpan<System::Byte> key, System::IO::Stream ^ source);
public static byte[] HmacData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, System.IO.Stream source);
static member HmacData : System.Security.Cryptography.HashAlgorithmName * ReadOnlySpan<byte> * System.IO.Stream -> byte[]
Public Shared Function HmacData (hashAlgorithm As HashAlgorithmName, key As ReadOnlySpan(Of Byte), source As Stream) As Byte()
Parametri
- hashAlgorithm
- HashAlgorithmName
Algoritmo usato per calcolare il codice HMAC.
- key
- ReadOnlySpan<Byte>
Chiave privata. La chiave può essere qualsiasi lunghezza.
- source
- Stream
Dati su cui calcolare il codice HMAC.
Restituisce
HMAC dei dati.
Eccezioni
hashAlgorithm specifica un algoritmo hash non supportato dalla piattaforma corrente.
hashAlgorithm specifica un algoritmo hash sconosciuto.