Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstDSSKey.GenerateSignature

function GenerateSignature(const aSignedData: AnsiString; aSignFormat: tStringFormat = sfBinary) : AnsiString; overload;
Signs aSignedData with this component's DSA private key; an application calls this on whichever side holds the private key (a signer, e.g. a CA or an SSH host).
function GenerateSignature(aSignedData: TStream; aSignFormat: tStringFormat = sfBinary) : AnsiString; overload;
Stream overload; digests aSignedData with DigestAlgorithm before signing.