Appearance
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
| Name | Description |
|---|---|
allowInvalidTime | Boolean to enforce certificate time frame validity |
input | The byte array to sign |
sender | The X509Certificate2 containing the private key for signing |
Returns
The byte array containing the digital signature of the input data