Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CryptographicEngine.SignAsync | signAsync method

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

Syntax


Windows.Security.Cryptography.Core.CryptographicEngine.signAsync(key, data).done( /* Your success and error handlers */ );

Parameters

key

Type: CryptographicKey

The key to use to compute and sign the hash.

data

Type: IBuffer

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

Return value

Type: IAsyncOperation<IBuffer>

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Security.Cryptography.Core
Windows::Security::Cryptography::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Security.Cryptography.Core
Windows::Security::Cryptography::Core [C++]

Metadata

Windows.winmd

See also

CryptographicEngine

 

 

Show: