Skip to main content
CryptographicEngine.SignHashedData | signHashedData method

Signs the hashed input data using the specified key.

Syntax


var iBuffer = Windows.Security.Cryptography.Core.CryptographicEngine.signHashedData(key, data);

public static IBuffer SignHashedData(
  CryptographicKey key, 
  IBuffer data
)

Public Shared Function SignHashedData(
  key As CryptographicKey,  
  data As IBuffer 
) As IBuffer

public:
static IBuffer^ SignHashedData(
  CryptographicKey^ key, 
  IBuffer^ data
)

Parameters

key

Type: CryptographicKey

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

data

Type: IBuffer

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

Return value

Type: IBuffer

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.

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