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.constructor Create;
property Alg: tCompositeMLDSAAlg read GetAlg;
property Alg: tCompositeMLDSAAlg read GetAlg;
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;
inherits from Exception
(no public members)