Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.CompositeSig

Composite ML-DSA: ML-DSA-44/65/87 paired with a traditional signature
  algorithm (RSASSA-PSS, RSASSA-PKCS1-v1_5, ECDSA over the NIST curves, or
  Ed25519/Ed448). The Brainpool combinations of the draft are not implemented.

  The combiner builds the to-be-signed message representative

    M' := Prefix || Label || len(ctx) || ctx || PH(M)

  with the fixed Prefix "CompositeAlgorithmSignatures2025" and a per-algorithm
  Label; the ML-DSA component signs M' as pure ML-DSA with the Label as the
  FIPS 204 context, and the traditional component signs M' according to its
  own specification.

  Serialization is plain concatenation (draft section 4): public key =
  mldsaPK || tradPK, private key = 32-byte mldsaSeed || tradSK, signature =
  mldsaSig || tradSig. RSA components use DER RSAPublicKey/RSAPrivateKey,
  ECDSA components use the uncompressed X9.62 point and an RFC 5915
  ECPrivateKey (with the [0] curve parameters, without the public key), and
  EdDSA components use the raw RFC 8032 encodings.

  The pool (iDSICS, obtain via GetDSICS) delegates each component to the
  corresponding registered pool: GetDSIML, GetDSIIF, GetDSIEC and GetDSIED.

Classes, interfaces and records

classtCompositeMLDSAPublicKey

constructor Create; property Alg: tCompositeMLDSAAlg read GetAlg;

classtCompositeMLDSAPrivateKey

property Alg: tCompositeMLDSAAlg read GetAlg;

classtDSICS

inherits from TInterfacedObject

implements iDSICS

function OIDToAlg(const aOID: ObjectIdentifier; var aAlg: tCompositeMLDSAAlg) : Boolean; function AlgToOID(aAlg: tCompositeMLDSAAlg): ObjectIdentifier; procedure SigKeyGen(aAlg: tCompositeMLDSAAlg; var aPublicKey : iCompositeMLDSAPublicKey; var aPrivateKey: iCompositeMLDSAPrivateKey); function NewSigPrivateKey(aAlg: tCompositeMLDSAAlg; const aSerialized: tBytes) : iCompositeMLDSAPrivateKey; function NewSigPublicKey(aAlg: tCompositeMLDSAAlg; const aSerialized: tBytes) : iCompositeMLDSAPublicKey; function SigSign(const aPrivateKey: iCompositeMLDSAPrivateKey; const aMsg : tBytes; const aCtx : tBytes = nil) : tBytes; function SigVerify(const aPublicKey: iCompositeMLDSAPublicKey; const aMsg : tBytes; const aCtx : tBytes; const aSignature: tBytes) : Boolean;

classeCompositeSigError

inherits from Exception

(no public members)

Types (enumerations, sets, aliases)

enumtCompositeTradKind

  tCompositeTradKind = (ctkRSAPSS,
                        ctkRSAPKCS15,
                        ctkECDSA,
                        ctkEd25519,
                        ctkEd448);