Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstMLDSAKey.GenerateSignature

function GenerateSignature(const aSignedData: AnsiString; aSignFormat: tStringFormat = sfBinary) : AnsiString; overload;
Signs aSignedData with this component's ML-DSA private key; an application calls this on whichever side (client or server) holds the PQ/hybrid signing key, e.g. for a TLS 1.3 CertificateVerify or a CMS SignerInfo.
function GenerateSignature(const aSignedData: AnsiString; aCtx : AnsiString; aSignFormat: tStringFormat = sfBinary) : AnsiString; overload;
Overload taking an explicit application context aCtx; see the matching VerifySignature overload on TstMLDSAPublicKey.
function GenerateSignature(aSignedData: TStream; aSignFormat: tStringFormat = sfBinary) : AnsiString; overload;
Stream overload. When DigestAlgorithm is haNull the whole stream is read and signed as-is (pure ML-DSA over the raw message); otherwise aSignedData is first digested with DigestAlgorithm and that digest is signed (the pre-hash variant).