Skip to content

EncryptAndSign Method ​

Definition ​

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

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

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

Sign the input byte array using the private key from the provided X509Certificate2

Parameters ​

NameDescription
allowInvalidTimeBoolean to enforce certificate time frame validity
inputThe byte array to sign
senderThe X509Certificate2 containing the private key for signing

Returns ​

The byte array containing the digital signature of the input data