---
title: "Post-quantum replacement for RSA encryption"
description: "RSA encryption is broken by Shor's algorithm. Its replacement is ML-KEM, a key-encapsulation mechanism: it establishes a shared secret and does not encrypt a message of the caller's choice."
url: "https://quantum.zksecurity.xyz/replacements/rsa-encryption/"
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# RSA encryption (RSA-OAEP, RSAES-PKCS1-v1_5, RSA key transport)

Classical algorithm · Public-key encryption

RSA encryption is broken by Shor's algorithm. Its replacement is ML-KEM, a key-encapsulation mechanism: it establishes a shared secret and does not encrypt a message of the caller's choice.

**zkSecurity** · Reviewed 2026-11-25

## Against a quantum computer

> Shor's algorithm factors the modulus in polynomial time, so a larger key does not help. Ciphertexts recorded today can be decrypted once a large enough quantum computer exists.

## Replacements

[All algorithms](https://quantum.zksecurity.xyz/algorithms/)

| Algorithm | Standard and status | Public key | Ciphertext |
| --- | --- | --- | --- |
| RSA-2048 (In use today) | Broken | 256 | 256 |
| RSA-3072 (In use today) | Broken | 384 | 384 |
| [ML-KEM](https://quantum.zksecurity.xyz/algorithms/ml-kem/) (The general-purpose replacement. NIST recommends ML-KEM-768 as the default; CNSA 2.0 requires ML-KEM-1024.) | [FIPS 203](https://csrc.nist.gov/pubs/fips/203/final) (Final) | 800 to 1,568 | 768 to 1,568 |
| [HQC](https://quantum.zksecurity.xyz/algorithms/hqc/) (Selected by NIST as the second KEM, on a code-based assumption. No standard or draft yet.) | [FIPS (no number yet)](https://csrc.nist.gov/pubs/ir/8545/final) (Selected, in development) | 2,249 to 7,245 | 4,433 to 14,421 |
| [FrodoKEM](https://quantum.zksecurity.xyz/algorithms/frodokem/) (Unstructured lattices, at the cost of keys and ciphertexts of 10 to 20 KB. Recommended by BSI and ANSSI.) | [ISO/IEC (in progress)](https://frodokem.org/) (Recommended by BSI and ANSSI; not selected by NIST) | 9,616 to 21,520 | 9,720 to 21,632 |
| [Classic McEliece](https://quantum.zksecurity.xyz/algorithms/classic-mceliece/) (Standardized by ISO/IEC in 2026 and under active cryptanalysis since. Not advised for new deployments.) | [ISO/IEC 18033-2 Amd 2](https://classic.mceliece.org/) (New attacks in 2026) | 261,120 to 1,044,992 | 96 to 208 |

Sizes in bytes, from the smallest to the largest parameter set, without encoding.

## Proposed, not standardized

- [Post-quantum and hybrid KEMs for HPKE](https://datatracker.ietf.org/doc/draft-ietf-hpke-pq/): ML-KEM and hybrid KEM identifiers for HPKE, the general-purpose public-key encryption scheme. An IETF working group draft.

## What changes

- ML-KEM does not encrypt a message of the caller's choice. Formats that RSA-encrypt a content key move to encapsulate, derive, then wrap. RFC 9629 defines this for CMS; the post-quantum KEMs for HPKE are still a working group draft.
- ML-KEM-768 encapsulation keys and ciphertexts are 1,184 and 1,088 bytes, against 256 for RSA-2048.
- Key generation is fast, so ephemeral keys and forward secrecy are practical where RSA key transport had neither.
- An RSA key pair used for both encryption and signing needs two replacements: ML-KEM and a signature algorithm.

## Protocol support

Standards that carry the replacement · [All protocols](https://quantum.zksecurity.xyz/algorithms/#protocols)

| Protocol | Mechanism | Document | Date | Status |
| --- | --- | --- | --- | --- |
| X.509 | ML-KEM keys | [RFC 9935](https://www.rfc-editor.org/info/rfc9935) | 2026-03 | Proposed Standard |
|  | Composite ML-KEM with a traditional KEM | [draft-ietf-lamps-pq-composite-kem](https://datatracker.ietf.org/doc/draft-ietf-lamps-pq-composite-kem/) | 2026-10-12 | Approved, RFC pending |
| CMS | ML-KEM key transport | [RFC 9936](https://www.rfc-editor.org/info/rfc9936) | 2026-03 | Proposed Standard |
| OpenPGP | Post-quantum key and signature formats | [RFC 9980](https://www.rfc-editor.org/info/rfc9980) | 2026-06 | Proposed Standard |

## Deadlines

[All jurisdictions](https://quantum.zksecurity.xyz/timelines/)

- [NIST IR 8547 (U.S. federal)](https://quantum.zksecurity.xyz/timelines/nist-ir-8547/): **2030** All quantum-vulnerable public-key algorithms deprecated (RSA, ECDSA, EdDSA, DH, ECDH, MQV at every strength). **2035** All quantum-vulnerable public-key algorithms disallowed under NIST standards.
- [CNSA 2.0 (U.S. national security)](https://quantum.zksecurity.xyz/timelines/cnsa-2-0/): **2027-01-01** CNSA 2.0 algorithms required in all new National Security System acquisitions. **2030-12-31** Equipment and services that cannot support CNSA 2.0 phased out. **2031-12-31** CNSA 2.0 algorithms mandated for use.
- [Australia (ASD)](https://quantum.zksecurity.xyz/timelines/australia-asd-ism/): **2026-12-31** Refined post-quantum transition plan in place. **2028-12-31** Transition of critical systems under way. **2030-12-31** Transition complete; DH, ECDH and ECDSA no longer approved.

## Record

10 entries · [Feed](https://quantum.zksecurity.xyz/feed/)

- 2026-10-28 · Quantum computing · [Alice & Bob estimate RSA-2048 in 3.14 days with about 23,000 cat qubits](https://quantum.zksecurity.xyz/feed/2026-10-28-alice-bob-estimate-rsa-2048-in-3-14-days-with-ab/)
- 2026-03-30 · Quantum computing · [Oratomic preprint: Shor's algorithm with as few as 10,000 neutral-atom qubits](https://quantum.zksecurity.xyz/feed/2026-03-30-oratomic-preprint-shor-s-algorithm-with-as-few-a/)
- 2026-03-30 · Quantum computing · [Google: 256-bit elliptic curves breakable with under 500,000 physical qubits](https://quantum.zksecurity.xyz/feed/2026-03-30-google-256-bit-elliptic-curves-breakable-with-un/)
- 2026-03-07 · Claim refuted · No action required · ['JVG algorithm' claim of RSA-2048 with 5,000 qubits dismissed](https://quantum.zksecurity.xyz/feed/2026-03-07-jvg-algorithm-claim-of-rsa-2048-with-5-000-qubit/)
- 2026-02-12 · Quantum computing · [Pinnacle architecture preprint: RSA-2048 with under 100,000 physical qubits](https://quantum.zksecurity.xyz/feed/2026-02-12-pinnacle-architecture-preprint-rsa-2048-with-und/)
- 2025-05-21 · Quantum computing · [Gidney: RSA-2048 factorable in under a week with under a million noisy qubits](https://quantum.zksecurity.xyz/feed/2025-05-21-gidney-rsa-2048-factorable-in-under-a-week-with/)
- 2024-12-09 · Quantum computing · [Google Willow demonstrates below-threshold surface-code error correction](https://quantum.zksecurity.xyz/feed/2024-12-09-google-willow-demonstrates-below-threshold-surfa/)
- 2024-10 · Claim refuted · No action required · ['D-Wave breaks RSA' coverage traced to factoring of a 22-bit integer](https://quantum.zksecurity.xyz/feed/2024-10-d-wave-breaks-rsa-coverage-traced-to-factoring-o/)
- 2023-08-12 · Quantum computing · [Regev publishes a new quantum factoring algorithm with smaller circuits](https://quantum.zksecurity.xyz/feed/2023-08-12-regev-publishes-a-new-quantum-factoring-algorith/)
- 2022-12-23 · Claim refuted · No action required · [Claim that 372 qubits could threaten RSA-2048 does not survive scrutiny](https://quantum.zksecurity.xyz/feed/2022-12-23-claim-that-372-qubits-could-threaten-rsa-2048-do/)

- **Type**: Public-key encryption
- **Hard problem**: Integer factorization
- **Against a quantum computer**: Broken (Shor's algorithm)
- **Recorded data**: Exposed. Recorded ciphertexts can be decrypted later.
- **Replacement**: [ML-KEM](https://quantum.zksecurity.xyz/algorithms/ml-kem/)
- **Used in**: Key transport in TLS 1.2 and earlier, S/MIME and CMS, OpenPGP, JOSE, and key wrapping in HSMs and key-management services.

### Specified in

- [RFC 8017, PKCS #1 v2.2](https://www.rfc-editor.org/info/rfc8017)
- [NIST SP 800-56B Rev. 2](https://csrc.nist.gov/pubs/sp/800/56/b/r2/final)

**Sources (1)**

- [RFC 9629, Using Key Encapsulation Mechanism (KEM) Algorithms in the Cryptographic Message Syntax (CMS)](https://www.rfc-editor.org/info/rfc9629)

### Audit

zkSecurity audits post-quantum implementations and migrations. [Request an audit](https://www.zksecurity.xyz/contact.html).

### Data

[data.json](https://quantum.zksecurity.xyz/replacements/rsa-encryption/data.json)
