Appearance
VerifyDataFromKey Method
Definition
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
base64ExportedKey | The base64-encoded exported public key. |
hash | The hash algorithm provider used for signing. |
input | The data that was signed. |
signature | The 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
| Name | Description |
|---|---|
base64ExportedKey | The base64-encoded exported public key. |
hash | The hash algorithm provider used for signing. |
input | The string representation of the data that was signed. |
signature | The base64-encoded signature to verify. |
Returns
Returns true if the signature is valid for the given data and public key; otherwise, false.