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

Definition

Computes a hash for the supplied input data, and then signs the computed hash using the specified key.

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

Parameters

key
CryptographicKey CryptographicKey CryptographicKey

The key to use to compute and sign the hash.

data
IBuffer IBuffer IBuffer

The raw input data to sign. The data is not hashed.

Returns

An asynchronous operation to retrieve the hashed and signed data.

Remarks

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

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