CryptographicEngine.SignHashedData(CryptographicKey, IBuffer) Method

Definition

Signs the hashed input data using the specified key.

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

Parameters

key
CryptographicKey

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

data
IBuffer

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

Returns

The signed data.

Remarks

The input data supplied to the SignHashedData 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.

Applies to