Skip to content

DecryptAndVerify Method ​

Definition ​

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

byte[] DecryptAndVerify(byte[] input, X509Certificate2 recipient, X509Certificate2 sender, bool allowInvalidTime = null) ​

csharp
byte[] DecryptAndVerify(byte[] input, X509Certificate2 recipient, X509Certificate2 sender, bool allowInvalidTime = null)

Decrypts and verifies the input data using the private key of the specified X.509 certificate.

Parameters ​

NameDescription
allowInvalidTimeBoolean to enforce certificate time frame validity
inputThe input data to decrypt and verify.

Returns ​

The decrypted data.