Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstSLHDSAKey.GenerateNewKeys

procedure GenerateNewKeys(aAlg: tSLHDSAAlg; aSave: Boolean = True);
aAlg selects the SLH-DSA parameter set, e.g. slhSHA2_128f / slhSHAKE_256s. Generates a fresh SLH-DSA keypair for aAlg and, if aSave is True, persists it via SavePrivateKey/SavePublicKey; note SLH-DSA key generation/signing is comparatively slow, so an application may want to run this off the UI thread.