Unit

ScCMS

 

Description

The TScCMSProcessor class provides a simple interface to encrypt, decrypt, sign, and verify content of any type and store them in CMS/PKCS #7 format. CMS is a common format to store encrypted and signed data, described in RFC 5652.

 

Before any operation the Certificate or CertificateName property should be set. The specified certificate will be used to encrypt, decrypt, sign, or verify data.

After this to encrypt data just call the Encrypt method, specifying the encrypted data as an input parameter of the method.

To decrypt data call the Decrypt method, specifying the enveloped CMS/PKCS #7 message as an input parameter of the method.

The EnvelopedData object will store the information about the previous encrypted or decrypted enveloped CMS/PKCS #7 message.

 

To sing data just call the Sign method, specifying the input data as an input parameter of the method.

To verify the digital signature of the data call the CheckSignature method, specifying the signed CMS/PKCS #7 message as an input parameter of the method.

The SignedData object will store the information about the previous signed or verified CMS/PKCS #7 message.

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support