[KongchangAI]
· 2 min read· 1,273 words

OpenSSH Adds Support for Composite ML-DSA 87 / ECDSA p384 Keys

OpenSSH Adds Support for Composite ML-DSA 87 / ECDSA p384 Keys

OpenSSH adds composite ML-DSA 87 and ECDSA p384 support, a key step in post-quantum migration.

OpenSSH added support for composite ML-DSA 87 and ECDSA p384 via a code commit, sparking widespread discussion. Composite keys use both classic and post-quantum algorithms, requiring attackers to break both to forge signatures, providing post-quantum protection while reducing overreliance on new algorithms. The scheme offers a gradual SSH migration path.

Title

OpenSSH Adds Support for Composite ML-DSA 87 / ECDSA p384 Keys

Meta Description

OpenSSH commits support for composite ML-DSA 87 and ECDSA p384, combining post-quantum signatures with classic elliptic curve algorithms. This article explains the principles of composite keys, technical details, and the impact on operations and the SSH ecosystem.

Article Content

A code commit in OpenSSH shows that support for composite ML-DSA 87 and ECDSA p384 has been added. The news sparked widespread discussion in technical communities, with the related Hacker News entry receiving 296 points and 82 comments. For operators and security engineers, this is not an ordinary algorithm update but a key step for the SSH protocol in addressing the threat of quantum computing.

What Are Composite Keys and Why Are They Needed

Traditional SSH authentication relies on a single algorithm, such as RSA, ECDSA, or EdDSA. Once quantum computers mature, algorithms based on integer factorization and elliptic curve discrete logarithms will be broken by Shor's algorithm. Post-quantum algorithms can replace them, but new algorithms often create friction with existing infrastructure in terms of key length, signature size, and compatibility.

The idea behind composite keys is to use two keys at the same time: one classic algorithm key and one post-quantum algorithm key. Both participate in authentication, and an attacker must break both algorithms simultaneously to forge a signature. This design is particularly valuable during the transition period—it provides post-quantum protection without betting security entirely on a single scheme that has not yet undergone long-term scrutiny.

Technical Details: How the Two Algorithms Combine

ML-DSA is a digital signature algorithm selected in the U.S. NIST post-quantum cryptography standardization project. It is based on lattice mathematics and evolved from the Dilithium scheme. ECDSA p384 is a classic elliptic curve signature algorithm using a 384-bit curve and is already widely deployed in the SSH ecosystem.

The composite scheme binds the two together, and signature verification requires both keys to pass. In its post-quantum migration recommendations, NIST explicitly encourages this hybrid mode, reasoning that it guards against the risk of post-quantum algorithms being unexpectedly broken while maintaining interoperability with traditional systems. This OpenSSH commit brings that recommendation down to the SSH protocol level.

Relationship between ML-DSA and Dilithium: ML-DSA (Module-Lattice-Based Digital Signature Algorithm) is one of the first standards officially released by the NIST post-quantum cryptography standardization project in 2024 (FIPS 204), and its predecessor is the CRYSTALS-Dilithium candidate scheme. It is based on mathematical hard problems on module lattices (such as Module-LWE and Module-SIS), and its security depends on the computational difficulty of lattice problems rather than integer factorization or discrete logarithms. ML-DSA provides multiple parameter sets (such as ML-DSA-44, 65, and 87); the larger the number, the higher the security strength, but the larger the keys and signatures. ML-DSA 87 corresponds to NIST security level 5, with a public key of about 2592 bytes and a signature of about 4627 bytes, far larger than the 96-byte signature of ECDSA p384, which is the main source of performance overhead in the composite scheme.

Security positioning of ECDSA p384: ECDSA uses the NIST P-384 curve and provides about 192 bits of classic security strength, corresponding to NIST security level 5 (the same level as ML-DSA 87). In SSH, it usually appears under the algorithm identifier ecdsa-sha2-nistp384. The reason for choosing p384 rather than p256 to pair with the post-quantum algorithm is to match the security strength of the classic component with that of the post-quantum component and avoid the overall security of the composite scheme being dragged down by the weaker link. This also means that the classic part of a composite key already has a high security margin and can still provide strong protection before the quantum threat truly arrives.

Practical Impact on the SSH Ecosystem

SSH is the infrastructure for server management, code hosting, and automated deployment, and the security of key exchange and identity authentication directly affects the operational security of the entire internet. The difficulty of post-quantum migration lies not in the algorithms themselves but in the huge installed base and client compatibility.

Composite keys provide a gradual path: clients and servers that support the new algorithm negotiate to use composite keys, while nodes that do not support it continue to use traditional algorithms. This means upgrades can be rolled out in stages without waiting for the entire ecosystem to update in sync. For data channels that require long-term confidentiality, deploying composite keys in advance can reduce future migration costs.

The 82 comments on Hacker News reflect the community's attention to such changes. Common concerns in the discussion include the performance overhead caused by larger keys and signatures, the complexity of configuration management, and the adequacy of interoperability testing between different implementations.

Difference between SSH key exchange and identity authentication: The composite keys mentioned in the article mainly apply to the identity authentication phase of SSH (server host keys and user public key authentication), not the key exchange phase. In the SSH protocol, key exchange (such as curve25519-sha256) is responsible for negotiating session keys, while identity authentication uses digital signatures to prove the identity of both parties. Post-quantum migration needs to cover both layers at the same time: NIST is also advancing ML-KEM (formerly Kyber) for key encapsulation. OpenSSH's addition of composite signature algorithms this time is one step on the identity authentication side; post-quantum hybrid schemes on the key exchange side (such as sntrup761x25519) have already landed in OpenSSH earlier. Understanding this division of labor helps operators distinguish the scope of different configuration items.

What Operators Need to Watch

In the short term, this change will not force everyone to switch. OpenSSH usually introduces new capabilities as optional algorithms or configuration items, and the default configuration may remain conservative. Operations teams can watch several areas: version support on the client and server sides, adjustments to key generation and distribution workflows, and compatibility with existing certificate authentication systems.

For scenarios with high security requirements, such as finance, government affairs, or long-term archival data transmission, composite keys are worth evaluating and testing as early as possible. Ordinary development teams can first observe upstream versions and distribution packaging strategies before deciding on the upgrade pace.

A Signal of Post-Quantum Migration

OpenSSH's addition of composite key support shows that post-quantum cryptography is moving from standardization texts into everyday tools. Foundational protocols such as TLS, SSH, and code signing are all advancing similar hybrid schemes. For developers, understanding the principles and trade-offs of composite keys will be more valuable than simply waiting for default configuration changes.

One-line Summary

OpenSSH adds support for composite ML-DSA 87 and ECDSA p384, taking a key step toward post-quantum migration.

Paragraph Summary

Through a code commit, OpenSSH added support for composite ML-DSA 87 and ECDSA p384, sparking widespread discussion in technical communities. Composite keys use both a classic algorithm and a post-quantum algorithm at the same time, and an attacker must break both to forge a signature, obtaining post-quantum protection while reducing the risk of overbetting on new algorithms. ML-DSA is based on lattice problems and evolved from Dilithium; ECDSA p384 provides about 192 bits of classic security strength, matching ML-DSA 87. This scheme provides a gradual migration path for the SSH ecosystem: nodes that support the new algorithm can negotiate composite keys, while other nodes continue to use traditional algorithms. The community is focused on the performance overhead caused by larger key sizes, configuration complexity, and the adequacy of interoperability testing. Operations teams should pay attention to version support, adjustments to key workflows, and compatibility with certificate systems, and high-security scenarios can evaluate and test it early.

#OpenSSH#ML-DSA 87#ECDSA p384#composite keys#post-quantum cryptography
Share:

Related articles