Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstRSAKey.Decrypt

function Decrypt(const aEData : AnsiString; const aP : AnsiString = ''; aEncFormat : tStringFormat = sfBinary; aDataFormat: tStringFormat = sfBinary; aPFormat : tStringFormat = sfBinary) : AnsiString; overload;
RSA decryption (inverse of TstRSAPublicKey.Encrypt) using this component's private key; an application calls this to recover data/a key that a peer encrypted to its public key.
procedure Decrypt(const aEData : AnsiString; out aData : iSecretKey; const aP : AnsiString = ''; aEncFormat : tStringFormat = sfBinary; aPFormat : tStringFormat = sfBinary); overload;
Overload returning the decrypted data as an iSecretKey rather than an AnsiString, so a recovered content-encryption key/shared secret can be wiped via ProtectClear-aware handling.