PLAIN QUANTUM
Search

What are RSA and elliptic-curve cryptography?

  • Level: Beginner
  • 2 min read
  • Quick answer
The short answer

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

RSAElliptic curve
Hard problemFactoring the product of two large primesThe elliptic-curve discrete logarithm
Typical size2,048-bit keys256-bit keys, such as P-256 or X25519
Used forSignatures, certificates, sending keys (key transport)Agreeing keys (ECDH, X25519), signatures (ECDSA, EdDSA)
Against a large quantum computerBroken by Shor's algorithmBroken by Shor's algorithm
Replaced byML-KEM for keys, ML-DSA for signaturesThe same
Different maths, same weakness: both have a hidden repeating structure that Shor's algorithm finds.

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

Sources and further reading

Tags show the kind of source (how sources are chosen and checked). Checked against these sources on 13 November 2026.

  1. Peer-reviewed paperA method for obtaining digital signatures and public-key cryptosystemsRivest, Shamir and Adleman, Communications of the ACM, 1978
  2. Peer-reviewed paperNew directions in cryptographyWhitfield Diffie and Martin Hellman, IEEE Transactions on Information Theory, 1976
  3. Peer-reviewed paperUse of elliptic curves in cryptographyVictor S. Miller, CRYPTO '85, 1986
  4. Peer-reviewed paperElliptic curve cryptosystemsNeal Koblitz, Mathematics of Computation, 1987
  5. StandardFIPS 186-5: Digital Signature Standard (DSS)NIST, 2023
  6. StandardSP 800-57 Part 1 Rev. 5: Recommendation for Key ManagementNIST, 2020
  7. Peer-reviewed paperPolynomial-time algorithms for prime factorization and discrete logarithms on a quantum computerPeter Shor, SIAM Journal on Computing, 1997
  8. Government guidanceNIST IR 8547: Transition to Post-Quantum Cryptography StandardsNIST, 2026

Written by Muhammad Atif · Reviewed 13 November 2026 · Report a correction