Condividi tramite


CryptographicEngine.SignHashedData(CryptographicKey, IBuffer) Metodo

Definizione

Firma i dati di input hash usando la chiave specificata.

public:
 static IBuffer ^ SignHashedData(CryptographicKey ^ key, IBuffer ^ data);
 static IBuffer SignHashedData(CryptographicKey const& key, IBuffer const& data);
public static IBuffer SignHashedData(CryptographicKey key, IBuffer data);
function signHashedData(key, data)
Public Shared Function SignHashedData (key As CryptographicKey, data As IBuffer) As IBuffer

Parametri

key
CryptographicKey

Chiave da usare per firmare l'hash. Questa chiave deve essere una chiave asimmetrica ottenuta da un PersistentedKeyProvider o AsymmetricKeyAlgorithmProvider.

data
IBuffer

Dati di input da firmare. I dati sono un valore hash che può essere ottenuto tramite hash incrementale.

Restituisce

Dati firmati.

Commenti

I dati di input forniti al metodo SignHashedData sono un valore hashed. Per firmare i dati non elaborati non hash, usare il metodo SignAsync .

Se la chiave è una chiave persistente e l'operazione richiede un'interfaccia utente o richiede molto tempo, usare invece il metodo SignHashedDataAsync .

Si applica a