class function DecodeData(const Data: TBytes): TBytes; overload;

class procedure DecodeData(InStream, OutStream: TStream); overload;



The DecodeData method decodes a CMS/PKCS #7 message encoded in the PEM or S/MIME format to the DER format. The result data can be passed to other methods of CMS message processing, like Decrypt, CheckSignature, and DecryptAndCheckSignature.

The encoded CMS/PKCS #7 message that will be decoded can be passed by the Data parameter as a byte array or by the InStream parameter as a TStream object.

The decoded data can be returned as an array of byte values or can be written to the OutStream parameter.


See Also



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