CryptographicEngine.SignHashedDataAsync(CryptographicKey, IBuffer) 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.
Firma i dati di input con hash usando la chiave specificata.
public:
static IAsyncOperation<IBuffer ^> ^ SignHashedDataAsync(CryptographicKey ^ key, IBuffer ^ data);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IBuffer> SignHashedDataAsync(CryptographicKey const& key, IBuffer const& data);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IBuffer> SignHashedDataAsync(CryptographicKey key, IBuffer data);
function signHashedDataAsync(key, data)
Public Shared Function SignHashedDataAsync (key As CryptographicKey, data As IBuffer) As IAsyncOperation(Of IBuffer)
Parametri
- key
- CryptographicKey
Chiave da usare per firmare l'hash. Questa chiave deve essere una chiave asimmetrica ottenuta da persistedKeyProvider o AsymmetricKeyAlgorithmProvider.
- data
- IBuffer
Dati di input da firmare. I dati sono un valore hash che può essere ottenuto tramite hash incrementale.
Restituisce
Operazione asincrona per recuperare i dati firmati.
- Attributi
Commenti
I dati di input forniti al metodo SignHashedDataAsync sono un valore hash. Per firmare dati non elaborati che non sono stati hash, utilizzare il metodo SignAsync .
Se la chiave è una chiave persistente e l'operazione richiede un'interfaccia utente o richiede molto tempo, usare il metodo SignHashedDataAsync anziché il metodo SignHashedData .