Dela via


CryptographicEngine.VerifySignatureWithHashInput Method

Definition

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

public:
 static bool VerifySignatureWithHashInput(CryptographicKey ^ key, IBuffer ^ data, IBuffer ^ signature);
 static bool VerifySignatureWithHashInput(CryptographicKey const& key, IBuffer const& data, IBuffer const& signature);
public static bool VerifySignatureWithHashInput(CryptographicKey key, IBuffer data, IBuffer signature);
function verifySignatureWithHashInput(key, data, signature)
Public Shared Function VerifySignatureWithHashInput (key As CryptographicKey, data As IBuffer, signature As IBuffer) As Boolean

Parameters

key
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
IBuffer

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

signature
IBuffer

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

Returns

Boolean

bool

True if the signature is verified; otherwise false.

Applies to