Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstCustomMPEnvelopedData.Decrypt

function Decrypt(aStream, aDest: TStream): Boolean;
Consumer side: opens the EnvelopedData in aStream, finds a RecipientInfo addressed to a certificate whose private key is available in KeysAndCerts, unwraps the content-encryption key and writes the decrypted content to aDest (pass nil to test decryptability only). Returns False on bad format or when no matching recipient key is found.