Skip to main content
CryptographicEngine.VerifySignatureWithHashInput | verifySignatureWithHashInput method

Verifies the signature of the specified input data against a known signature.

Syntax


var boolean = Windows.Security.Cryptography.Core.CryptographicEngine.verifySignatureWithHashInput(key, data, signature);

public static bool VerifySignatureWithHashInput(
  CryptographicKey key, 
  IBuffer data, 
  IBuffer signature
)

Public Shared Function VerifySignatureWithHashInput(
  key As CryptographicKey,  
  data As IBuffer,  
  signature As IBuffer 
) As Boolean

public:
static bool VerifySignatureWithHashInput(
  CryptographicKey^ key, 
  IBuffer^ data, 
  IBuffer^ signature
)

Parameters

key

Type: CryptographicKey

The key to use to retrieve the signature from the input data. This key must be an asymmetric key obtained from a PersistedKeyProvider or AsymmetricKeyAlgorithmProvider.

data

Type: IBuffer

The data to be verified. The data is a hashed value of raw data.

signature

Type: IBuffer

The known signature to use to verify the signature of the input data.

Return value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True if the signature is verified; otherwise false.

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