What are RSA and elliptic-curve cryptography?
RSA and elliptic-curve cryptography (ECC) are the two families of public-key cryptography behind most of today's secure connections and digital signatures. RSA, published in 1978, rests on how hard it is to split a very large number into its two prime factors. ECC, proposed in the mid-1980s, rests on a different hard problem, on mathematical curves, and gives similar protection with much smaller keys. A large quantum computer running Shor's algorithm would break both, which is why both are being replaced.
Side by side
| RSA | Elliptic curve | |
|---|---|---|
| Hard problem | Factoring the product of two large primes | The elliptic-curve discrete logarithm |
| Typical size | 2,048-bit keys | 256-bit keys, such as P-256 or X25519 |
| Used for | Signatures, certificates, sending keys (key transport) | Agreeing keys (ECDH, X25519), signatures (ECDSA, EdDSA) |
| Against a large quantum computer | Broken by Shor's algorithm | Broken by Shor's algorithm |
| Replaced by | ML-KEM for keys, ML-DSA for signatures | The same |
Why both fall together
Against ordinary computers, both problems are effectively impossible at the sizes in use. But both have a hidden repeating structure, and Shor's algorithm finds that structure efficiently. Once a large enough quantum computer exists, the problems stop being hard, whatever the key size. That's why NIST's transition plan, NIST IR 8547, retires RSA and elliptic-curve algorithms at every key size, rather than asking for bigger keys.
Common confusions
- "RSA encrypts my data." Mostly not. RSA and ECC set up keys and make signatures; the data itself is encrypted with symmetric encryption such as AES, which stays.
- "Elliptic curves are the newer, quantum-safe option." No. They are newer than RSA, but Shor's algorithm breaks them too.
- "Longer RSA keys will keep us safe." No. Against Shor's algorithm, longer keys only raise the size of machine needed; the fix is new algorithms.
Where this comes up
- LessonPost-quantum cryptography for non-engineersQuantum and security · 14 min
- LessonWhy your bank is already preparingBanking and payments journey · 14 min
- GuideChapter 1 · What quantum threatens in a bank, and what it doesn'tProfessionals · Banking guide
- GuideChapter 2 · Where cryptography lives in a payments estateProfessionals · Banking guide
Sources and further reading
Tags show the kind of source (how sources are chosen and checked). Checked against these sources on 13 November 2026.
- Peer-reviewed paperA method for obtaining digital signatures and public-key cryptosystemsRivest, Shamir and Adleman, Communications of the ACM, 1978
- Peer-reviewed paperNew directions in cryptographyWhitfield Diffie and Martin Hellman, IEEE Transactions on Information Theory, 1976
- Peer-reviewed paperUse of elliptic curves in cryptographyVictor S. Miller, CRYPTO '85, 1986
- Peer-reviewed paperElliptic curve cryptosystemsNeal Koblitz, Mathematics of Computation, 1987
- StandardFIPS 186-5: Digital Signature Standard (DSS)NIST, 2023
- StandardSP 800-57 Part 1 Rev. 5: Recommendation for Key ManagementNIST, 2020
- Peer-reviewed paperPolynomial-time algorithms for prime factorization and discrete logarithms on a quantum computerPeter Shor, SIAM Journal on Computing, 1997
- Government guidanceNIST IR 8547: Transition to Post-Quantum Cryptography StandardsNIST, 2026
Written by Muhammad Atif · Reviewed 13 November 2026 · Report a correction