Skip to content

Verify Method ​

Definition ​

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

Overloads ​

NameDescription
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 ​

NameDescription
hashThe hash algorithm used to sign the original message. Default is SHA384.
keyThe RSA public key as a byte array.
messageThe original message data that was signed.
signatureThe 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.