Condividi tramite


CryptographicEngine.SignHashedDataAsync(CryptographicKey, IBuffer) Metodo

Definizione

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 .

Si applica a