Key takeaways
- An Ed25519 public key is 32 bytes and its signature 64 bytes, against 384 bytes each for RSA 3072, and NIST documents rate both at about 128 bits of security.
- In an OpenSSL 3.0.13 test on one core, Ed25519 signed about 23 times faster than RSA 3072, while RSA 3072 verified about 2.7 times faster.
- Statements from US agencies on December 2, 2026 and from Anthropic and OpenAI on December 5 name neither algorithm, and OpenSSH's switch of its default to ECDSA P-384 came with no stated reason.
On Ed25519 vs RSA, the documents still point one way for an SSH key: Ed25519, unless something you connect to can't read it. An Ed25519 public key is 32 bytes and its signature 64, against 384 bytes each for RSA at the same rated strength, and GitHub's docs list RSA only as the fallback for legacy systems. What changed in the first week of December 2026 is that neither looks like the long-term answer, and OpenSSH's developers have picked a third type as their next default.
This comparison is based on the docs and published standards: RFC 8032, FIPS 186-5, NIST SP 800-57 and IR 8547, the OpenSSH manual, release notes and source repository, and GitHub's documentation. Two sets of numbers were produced for it, the speed test and the public key lengths, and both are marked.
Ed25519 vs RSA at a glance
| Ed25519 | RSA 3072 | RSA 4096 | |
|---|---|---|---|
| Public key | 32 bytes | 3,072-bit modulus (384 bytes) | 4,096-bit modulus (512 bytes) |
| Signature | 64 bytes | 384 bytes | 512 bytes |
| Public key line in OpenSSH format, no comment | 80 characters | 552 characters | 724 characters |
| Security strength | About 128 bits (RFC 8032, FIPS 186-5) | 128 bits (NIST SP 800-57) | Not listed; between 128 and 192 |
| Signs per second, one core (this article's test) | 23,824 | 1,021 | 511 |
| Verifies per second, one core (this article's test) | 8,887 | 23,659 | 13,625 |
| In OpenSSH since | 6.5, January 2014 | Before Ed25519 | Before Ed25519 |
| FIPS 186-5 | Approved, new in February 2023 | Approved (2,048 bits or more) | Approved |
| NIST post-quantum schedule (IR 8547) | Deprecated after 2030, disallowed after 2035 | Same | Same |
| FIDO security key type in OpenSSH | ed25519-sk |
None | None |
Key and signature sizes
RFC 8032, which defines Ed25519, gives a 32-byte public key and a 64-byte signature. An RSA signature is as long as the key's modulus, per RFC 8017: 384 bytes at 3,072 bits and 512 bytes at 4,096.
Test keys made with Python's cryptography library, in OpenSSH's public key format, came to 80 characters for Ed25519, 552 for RSA 3072 and 724 for RSA 4096, before any comment.
Small keys are the reason OpenSSH gave when it made Ed25519 the ssh-keygen default in version 9.5, released October 4, 2023.
Security strength: about 128 bits either way
NIST rates keys by security strength, roughly the number of bits of work an attacker needs. Table 2 of SP 800-57 Part 1, Revision 5 (May 2020) puts RSA at 112 bits for a 2,048-bit key, 128 bits for 3,072, and 192 bits for 7,680. RFC 8032 says Ed25519 is meant to operate at around the 128-bit level, and FIPS 186-5 repeats that.
So an Ed25519 key and a 3,072-bit RSA key carry the same rating. RSA 4096 has no row in the table. It lands above 128 bits and well short of 192, and in the test below it signed at half the speed of 3,072.
RSA 2048 is the one to retire. The ssh-keygen manual still allows RSA keys down to 1,024 bits, but its default is 3,072, a size it calls generally sufficient.
Ed25519 has one advantage that isn't about bits. It needs no fresh random number for each signature, and FIPS 186-5 says that protects against attacks that come from signing with too little randomness.
All of these ratings predate this week. Nobody has published revised ones.
Speed: Ed25519 signs faster, RSA verifies faster
RFC 8032 claims high performance without giving figures. For this article, openssl speed -seconds 3 rsa2048 rsa3072 rsa4096 ed25519 was run with OpenSSL 3.0.13 on one core of a 2.1 GHz Intel Xeon virtual machine on December 6, 2026.
Ed25519 produced 23,824 signatures a second. RSA 3072 managed 1,021 and RSA 4096 managed 511, so Ed25519 signed about 23 times faster than the first and 47 times faster than the second.
Verification went the other way. RSA 3072 checked 23,659 signatures a second against 8,887 for Ed25519.
For logging in over SSH none of this is noticeable. The slowest operation here, an RSA 4096 signature, took about 2 milliseconds. These are one machine's numbers from OpenSSL, not from OpenSSH itself.
Compatibility: where each key works
GitHub's docs treat RSA as the option for systems that lack Ed25519. Ed25519 arrived in OpenSSH 6.5, which the release notes date to January 30, 2014. Software older than that can't use it.
RSA has its own compatibility trap. The original ssh-rsa signature format hashes with SHA-1. OpenSSH 8.8, released September 26, 2021, disabled it by default, citing research that put a SHA-1 chosen-prefix collision under $50,000. The keys themselves were fine: OpenSSH has supported RSA signatures with SHA-256 and SHA-512 since 7.2, and the notes say most users would not need to replace their RSA keys.
For a server too old for the SHA-2 signatures, the 8.8 notes give a per-host workaround for ~/.ssh/config, and call it a stopgap:
Host old-host
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
GitHub accepts both key types and no longer accepts DSA. Its docs say an RSA key added after November 2, 2021 must sign with SHA-2. When GitHub announced that rule in September 2021, it published a chart of its SSH traffic: about 92% of requests were signed with an RSA key (45% in the old SHA-1 format, 47% with SHA-2) and 7.3% with Ed25519.
For hardware security keys, the ssh-keygen manual lists ed25519-sk and ecdsa-sk as the FIDO authenticator types. There is no RSA one.
FIPS: both are approved, with an end date
FIPS 186-5, published February 3, 2023, approves three signature techniques: RSA, ECDSA and EdDSA, the family Ed25519 belongs to.
Ed25519 is the newcomer. The standard's own list of revisions calls EdDSA new, while RSA was already in FIPS 186-4 from 2013. On a system held to FIPS, check that its validated crypto module includes EdDSA.
Both now have an end date. NIST's IR 8547, dated October 2026, deprecates RSA, ECDSA and EdDSA signatures after 2030 and disallows them under NIST standards after 2035. That replaces the older plan in SP 800-57, which would have disallowed 112-bit keys such as RSA 2048 on January 1, 2031.
What a quantum computer changes
Between these two, nothing. SP 800-57 says large-scale quantum computers, once they exist, will threaten all of the approved public-key algorithms. RFC 8032 says a large enough one would break Ed25519. Our RSA explainer covers the factoring side.
A bigger RSA key is no hedge. The replacements are different algorithms. OpenSSH 10.6, released October 6, 2026, turned on ssh-mldsa44-ed25519, which its release notes describe as a hybrid post-quantum signature algorithm.
What this week's news changes
Three things happened, and none of them names Ed25519 or RSA.
On December 2, the NSA, CISA and the Office of the National Cyber Director said that American AI companies had disclosed discoveries affecting the security of some cryptography in use, and that these "do not present an immediate and widespread threat to that cryptography." The statement names no algorithm and sets no deadline.
On December 3, OpenSSH's developers changed the key type that a bare ssh-keygen generates from Ed25519 to ECDSA on the NIST P-384 curve. The commit message says "switch default key type generated to ECDSA NISTP384", records a second developer's approval, and gives no reason. It is not yet in a release: the newest is 10.6p2, from November 5, and the online manual still says a bare ssh-keygen makes an Ed25519 key. Our news report on the commit has more.
On December 5, Anthropic and OpenAI said that researchers at both companies, testing unreleased models, had separately found weaknesses in some of the cryptography that protects the internet. They said the weaknesses are in the underlying mathematics, do not affect NIST's post-quantum standards, and are not an immediate threat to the public. The post-quantum standards, they wrote, rest on different mathematics that does not share the weaknesses. Both plan to move their own systems to post-quantum cryptography by the first half of 2027. They are not publishing their methods.
That is everything on the record. The labs did not say whether the weaknesses touch RSA, Curve25519 (the curve family behind Ed25519), the NIST curves, or something else. Neither did the agencies. OpenSSH moved its default off Ed25519 without saying why, and it did not move it to RSA.
RSA and Ed25519 are both outside the group the labs cleared by name, and the people who know the details are sending everyone toward post-quantum algorithms. Anything more specific, including the idea that RSA is now the safer of the pair because OpenSSH dropped Ed25519 as a default, is a guess.
Which to pick
Between these two, Ed25519. Its keys and signatures are smaller, it signs faster, and GitHub's docs still recommended it on December 6, 2026. Nothing published this week says to replace an Ed25519 key you already have.
Use RSA where the other end can't take Ed25519. Make it 3,072 bits, the ssh-keygen default, or 4,096, GitHub's fallback. Not 2,048.
If you are making a new key anyway and want to match where OpenSSH is going, look at ECDSA P-384, which our ECDSA vs Ed25519 comparison covers.
The ssh-keygen commands
These come from the ssh-keygen manual and GitHub's docs. OpenSSH is not installed on the machine used for this article, so they were not run here. Our guide on how to generate an SSH key ran them on Ubuntu.
ssh-keygen -t ed25519 -C "you@example.com"
Ed25519 keys have a fixed length, and the manual says -b is ignored for them.
ssh-keygen -t rsa -b 4096 -C "you@example.com"
Leave out -b and you get 3,072 bits.
The next thing to watch is the OpenSSH release after 10.6p2. Release notes are where the project explained the Ed25519 default in 2023, and where a reason for leaving it would appear.
Frequently asked questions
Is Ed25519 more secure than RSA?
On paper they are level at common sizes: RFC 8032 puts Ed25519 at around 128 bits of security, the same rating NIST SP 800-57 gives a 3,072-bit RSA key. Ed25519 also avoids the per-signature random number that FIPS 186-5 says can cause trouble when it is badly generated. A 2,048-bit RSA key is rated lower, at 112 bits.
Is RSA 4096 better than Ed25519?
NIST's table has no row for 4,096 bits: it rates RSA 3072 at 128 bits and needs 7,680 bits for 192. In an OpenSSL test for this article, RSA 4096 signed about 47 times slower than Ed25519, and its signature is 512 bytes against 64.
Is RSA still safe for SSH keys?
No primary source says RSA is broken as of December 6, 2026. OpenSSH 8.8 disabled the SHA-1 ssh-rsa signature format in 2021, not RSA keys, which sign with SHA-256 or SHA-512 instead. NIST's IR 8547 deprecates RSA, ECDSA and EdDSA signatures alike after 2030 and disallows them after 2035.
Should I replace my Ed25519 key after the OpenSSH change?
Nothing published requires it. The OpenSSH commit only changes what a bare ssh-keygen generates, gives no reason and is not in a release, and the Anthropic and OpenAI statement of December 5, 2026 does not name Ed25519 or any other algorithm. Existing keys keep working.
Sources
- RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)IETF
- SP 800-57 Part 1 Rev. 5: Recommendation for Key ManagementNIST
- FIPS 186-5: Digital Signature Standard (DSS)NIST
- FIPS 186-5 publication pageNIST
- IR 8547: Transition to Post-Quantum Cryptography StandardsNIST
- RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2IETF
- ssh-keygen(1) manual pageOpenBSD
- upstream: switch default key type generated to ECDSA NISTP384 (commit 5b63da2)OpenSSH
- OpenSSH release notesOpenSSH
- OpenSSH 8.8 release notesOpenSSH
- OpenSSH 9.5 release notesOpenSSH
- OpenSSH 6.5 release notesOpenSSH
- Generating a new SSH key and adding it to the ssh-agentGitHub
- Improving Git protocol security on GitHubGitHub
- Joint statement from Anthropic and OpenAI on recent advances in cryptographyAnthropic
- Joint Statement on Recent Advances in Cryptographic and Cybersecurity CapabilitiesCISA