Skip to main content

Module mldsa65_ed25519

Module mldsa65_ed25519 

Source
Expand description

IETF LAMPS Composite ML-DSA (id-MLDSA65-Ed25519-SHA512) hybrid digital signature scheme.

Conforms to RFC 10073 (draft-ietf-lamps-pq-composite-sigs-19, OID 1.3.6.1.5.5.7.6.48), combining NIST FIPS 204 ML-DSA-65 (NIST Security Category 3) with RFC 8032 Ed25519 using SHA-512 pre-hashing and mandatory domain separation:

Prefix = "CompositeAlgorithmSignatures2025"  (32 bytes)
Label  = "COMPSIG-MLDSA65-Ed25519-SHA512"    (30 bytes)
M'     = Prefix || Label || len(ctx) || ctx || SHA512(M)
sig    = ML-DSA-65.Sign(sk_mldsa, M', ctx = Label) || Ed25519.Sign(sk_ed, M')

Verified against the official lamps-wg/draft-composite-sigs (RFC 10073 / -19) id-MLDSA65-Ed25519-SHA512 test vectors (both empty and non-empty context).

§Security Properties

  • Hybrid AND-Gate: Verification succeeds if and only if both ML-DSA-65 and Ed25519 verify cleanly over M', preserving EUF-CMA unforgeability as long as either primitive holds.
  • Anti-stripping domain separation: Binding Label into both M' and the ML-DSA-65 internal context string prevents cross-protocol component-signature reuse.
  • Compact 64-byte composite seed: sk = seed_mldsa65 (32 B) || seed_ed25519 (32 B).
  • #![no_std] (zero heap allocation) and #![forbid(unsafe_code)].

Structs§

MlDsa65Ed25519
Marker struct implementing quantaegis_core::Signature for IETF LAMPS MLDSA65-Ed25519-SHA512.
Signature
Composite signature (sig_mldsa65[3309] || sig_ed25519[64], 3,373 bytes).
SigningKey
Compact 64-byte composite signing key seed (seed_mldsa65[32] || seed_ed25519[32]).
VerifyingKey
Composite verifying key (pk_mldsa65[1952] || pk_ed25519[32]).

Constants§

LABEL
Algorithm-specific domain separator ("COMPSIG-MLDSA65-Ed25519-SHA512", 30 bytes).
MAX_CTX_LEN
Maximum application context string length (255 bytes).
PK_LEN
Composite public verifying key length: 1952 (ML-DSA-65) + 32 (Ed25519) = 1984 bytes.
PREFIX
IETF LAMPS composite signature prefix ("CompositeAlgorithmSignatures2025", 32 bytes).
SIG_LEN
Composite signature length: 3309 (ML-DSA-65) + 64 (Ed25519) = 3373 bytes.
SK_LEN
Composite private signing key length: 32 (ML-DSA-65 seed) + 32 (Ed25519 seed) = 64 bytes.