CryptographicEngine.SignHashedDataAsync(CryptographicKey, IBuffer) CryptographicEngine.SignHashedDataAsync(CryptographicKey, IBuffer) CryptographicEngine.SignHashedDataAsync(CryptographicKey, IBuffer) CryptographicEngine.SignHashedDataAsync(CryptographicKey, IBuffer) CryptographicEngine.SignHashedDataAsync(CryptographicKey, IBuffer) Method

Definition

Signs the hashed input data using the specified key.

public : static IAsyncOperation<IBuffer> SignHashedDataAsync(CryptographicKey key, IBuffer data)
static IAsyncOperation<IBuffer> SignHashedDataAsync(CryptographicKey key, IBuffer data) const;
public static IAsyncOperation<IBuffer> SignHashedDataAsync(CryptographicKey key, IBuffer data)
Public Shared Function SignHashedDataAsync(key As CryptographicKey, data As IBuffer) As IAsyncOperation(Of IBuffer)
Windows.Security.Cryptography.Core.CryptographicEngine.signHashedDataAsync(key, data).done( /* Your success and error handlers */ );

Parameters

key
CryptographicKey CryptographicKey CryptographicKey

The key to use to sign the hash. This key must be an asymmetric key obtained from a PersistedKeyProvider or AsymmetricKeyAlgorithmProvider.

data
IBuffer IBuffer IBuffer

The input data to sign. The data is a hashed value which can be obtained through incremental hash.

Returns

An asynchronous operation to retrieve the signed data.

Remarks

The input data supplied to the SignHashedDataAsync method is a hashed value. To sign raw data that has not been hashed, use the SignAsync method.

If the key is a persisted key and the operation requires UI or takes a long time, use the SignHashedDataAsync method instead of the SignHashedData method.