Skip to content

VerifyDataFromKey Method ​

Definition ​

  • Namespace: JASE.Crypto
  • Assembly: JASE.Crypto.dll

Overloads ​

NameDescription
bool VerifyDataFromKey(string base64ExportedKey, byte[] input, byte[] signature, HashProvider hash)Verifies the data using a public key.
bool VerifyDataFromKey(string base64ExportedKey, string input, string signature, HashProvider hash)Verifies the data using a public key, with the input data and signature provided as strings.

bool VerifyDataFromKey(string base64ExportedKey, byte[] input, byte[] signature, HashProvider hash) ​

csharp
bool VerifyDataFromKey(string base64ExportedKey, byte[] input, byte[] signature, HashProvider hash)

Verifies the data using a public key.

Parameters ​

NameDescription
base64ExportedKeyThe base64-encoded exported public key.
hashThe hash algorithm provider used for signing.
inputThe data that was signed.
signatureThe signature to verify.

Returns ​

Returns true if the signature is valid for the given data and public key; otherwise, false.

bool VerifyDataFromKey(string base64ExportedKey, string input, string signature, HashProvider hash) ​

csharp
bool VerifyDataFromKey(string base64ExportedKey, string input, string signature, HashProvider hash)

Verifies the data using a public key, with the input data and signature provided as strings.

Parameters ​

NameDescription
base64ExportedKeyThe base64-encoded exported public key.
hashThe hash algorithm provider used for signing.
inputThe string representation of the data that was signed.
signatureThe base64-encoded signature to verify.

Returns ​

Returns true if the signature is valid for the given data and public key; otherwise, false.