function Decrypt(const Data: TBytes): TBytes; overload;

procedure Decrypt(InStream, OutStream: TStream); overload;

procedure Decrypt(const InFileName, OutFileName: string); overload;

 

Description

The Decrypt method decrypts the contents of the enveloped CMS/PKCS #7 message by using the certificate with a private key specified in the Certificate property. The method finds the recipient information corresponding to the specified certificate and decrypts the content information.

The decrypted data can be returned as an array of byte values or can be written to the OutStream stream or to the OutFileName file.

 

Data is an array of byte values that represents the CMS/PKCS #7 message to be decrypted.

InStream is a TStream object that represents the CMS/PKCS #7 message to be decrypted.

InFileName is a name of the file that contains the CMS/PKCS #7 message to be decrypted.

OutStream is a TStream object that will contain the decrypted content information.

OutFileName is a name of the file that will contain the decrypted content information.

 

Decrypt resets all properties of the EnvelopedData object that stores the information about the processed CMS/PKCS #7 message.

 

See Also

Encrypt

EnvelopedData

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