Sunday, 6 December 2026NewsWorldBusinessTech
Latest

OpenSSH Developers Change Default Ssh-Keygen Key to ECDSA NIST P-384

OpenSSH developers have changed the default key type generated by ssh-keygen from Ed25519 to ECDSA on the NIST P-384 curve.

The change appeared in a code commit dated 3 December 2026. This update also increases the default size for ECDSA keys from 256 to 384 bits. While these changes are in the OpenSSH development tree but are not yet part of an official release, they represent a change in the cryptographic preferences of the project.

The timing of the update aligns with a week of activity regarding post-quantum cryptography. Sulat AI & Tech News said the change arrived the same week as a post-quantum advisory from the NSA.

On 2 December, the NSA advised operators of national security systems to accelerate their migration to post-quantum cryptography. The agency suggested that algorithms like EdDSA or elliptic curves other than P-384 and P-521 for ECDSA or ECDH are not approved under CNSA 1.0 or 2.0. The new OpenSSH default follows these standards.

The commit message provides no rationale for the decision.

3D OpenSSH pufferfish agent holding a key beside a glowing split lattice key on a dark navy grid
Photo: Sulat

How ssh-keygen Defaults Change

The update affects how the ssh-keygen utility behaves when a user does not request a specific type or bit length. According to MLQ, the patch modifies two compile-time constants within the ssh-keygen.c file.

A user running a bare ssh-keygen command in future releases will generate an ECDSA NIST P-384 keypair. This replaces the Ed25519 keypair that has been the default since OpenSSH 9.5 was released in October 2023. The commit is identified as 5b63da2 in the portable OpenSSH repository. Developer Damien Miller authored the commit, and Markus Friedl reviewed it. The patch also updates the version header of ssh-keygen.c from 1.512 to 1.513.

The modification also impacts users who specifically ask for ECDSA keys. Frank Chu at DEV Community said anyone running ssh-keygen -t ecdsa without the -b flag will now receive a 384-bit key instead of the previous 256-bit P-256 default.

The default filename for a bare command will change from id_ed25519 to id_ecdsa. Sesame Disk warned that existing provisioning scripts or automation that assume the old filename could break.

OpenSSH switches default key type to ECDSA NISTP384 — TechPulse Daily

The following table compares the previous defaults with the new settings introduced in the December 3 commit:

Parameter Previous Default New Default
Key Type (no -t) Ed25519 ECDSA
ECDSA bits (no -b) 256 (NIST P-256) 384 (NIST P-384)
RSA bits (no -b) 3072 3072 (unchanged)

Increased Computational Costs

The transition to larger elliptic curves increases data size and processing requirements. An Ed25519 public key is 87 bytes, while a P-384 public key is 211 bytes. This makes the new public key 2.43x larger.

Private keys increase from 387 to 602 bytes. This is a 1.56x increase. Signatures increase from 294 to 476 bytes, or 1.62x.

Testing 100 sign and verify operations per type showed a change in load. Median signing times rise from 5.48 ms to 9.78 ms. This is a 1.78x increase. These changes are minimal compared to network latency for interactive SSH sessions.

New Signature Algorithm Preferences

The development tree also changed the order in which signature algorithms are preferred during connections. I10X said a second commit moved a post-quantum hybrid algorithm to the top of the signature preference list. This hybrid is known as mldsa44-ed25519. It is now prioritized over classical algorithms.

Openssh key title
Photo: i10x.ai

On 4 December, another OpenBSD developer, naddy, wrote a follow-up titled “actually change the default signature algorithm preference order,” which moved plain Ed25519 below both. Sesame Disk clarified that while this new composite type is supported, it is “not yet enabled by default.”

The current signature preference order in the development tree puts the post-quantum hybrid ssh-mldsa44-ed25519 first. It puts ecdsa-sha2-nistp384 second and plain ssh-ed25519 third.

Other entities are also adjusting their security. MLQ said Google plans to stop trusting P-256 certificate authority keys starting 15 March 2027. OpenSSH maintains support for existing Ed25519 keys through explicit command-line flags.

As reported by P.K. Sharma, the commit message read, “switch default key type generated to ECDSA NISTP384; ok markus@”.