Appearance
Verify Method
Definition
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
Overloads
| Name | Description |
|---|---|
bool Verify(byte[] message, byte[] signature, byte[] key, HashProvider hash = null) | Verifies the digital signature of the given data using the provided RSA public key. |
bool Verify(byte[] input, byte[] signature, X509Certificate2 certificate, HashProvider hash = null, RsaSignaturePadding? padding = null) | Verifies the digital signature of the given data using the provided RSA public key. |
bool Verify(byte[] message, byte[] signature, byte[] key, HashProvider hash = null)
csharp
bool Verify(byte[] message, byte[] signature, byte[] key, HashProvider hash = null)Verifies the digital signature of the given data using the provided RSA public key.
Parameters
| Name | Description |
|---|---|
hash | The hash algorithm used to sign the original message. Default is SHA384. |
key | The RSA public key as a byte array. |
message | The original message data that was signed. |
signature | The digital signature to verify. |
Returns
True if the signature is valid for the given data and key; otherwise, false.
bool Verify(byte[] input, byte[] signature, X509Certificate2 certificate, HashProvider hash = null, RsaSignaturePadding? padding = null)
csharp
bool Verify(byte[] input, byte[] signature, X509Certificate2 certificate, HashProvider hash = null, RsaSignaturePadding? padding = null)Verifies the digital signature of the given data using the provided RSA public key.
Returns
True if the signature is valid for the given data and key; otherwise, false.