CryptographicEngine.SignHashedData(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 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 .