How ML-KEM and RSA differ when a session key must be set up
A vendor document, tender or audit request often names both ML-KEM and RSA in the same breath, and the question behind it is usually how each one gets a session key into place. The short answer is that RSA key transport encrypts a key chosen by the sender to the recipient's public key, while ML-KEM encapsulation produces a shared secret through an encapsulation step on one side and a decapsulation step on the other, so the sender never picks the key. The key distinction is the mechanism, not the family: both are public-key primitives, but one moves a value the sender already holds and the other derives a value both parties end up sharing. Architects, security leads and auditors meet this comparison most often in TLS, SSH and IKE configurations, and in vendor documents that list supported key exchange methods side by side.
The distinction matters for review because NIST SP 800-56B Rev. 2 specifies RSA-based schemes that cover both key agreement and key transport with key confirmation, while FIPS 203 specifies ML-KEM as a mechanism for two parties to establish a shared secret over a public channel. RFC 9794 explains why a key encapsulation mechanism is the primitive intended for Internet use, since KEMs provide IND-CCA security and ordinary public-key encryption schemes typically provide only IND-CPA security, which the RFC says is insufficient against active attackers. Reviewers should therefore check whether a product that claims ML-KEM support uses it as an encapsulation step, and whether any RSA key transport it still offers is restricted to contexts where the sources permit it.
When you review a configuration, confirm which mechanism each key exchange group uses rather than relying on the family name. TLS 1.3 removed static RSA key exchange and keeps RSA only as an authentication method, according to RFC 8446, so an RSA certificate in a TLS 1.3 handshake does not mean RSA transported the session key. RFC 10024 defines TLS 1.3 hybrid groups that combine ML-KEM with ECDHE and does not define a hybrid with RSA key transport, so any document describing an RSA-based post-quantum hybrid for TLS should be checked against that RFC. For the exact versions and group identifiers your products run, confirm them in each vendor's documentation.
ML-KEM and RSA side by side across the attributes the sources give
This table sets ML-KEM against RSA across the attributes the sources cover, including the defining document, purpose, and sizes. RSA sizes are not supplied in these sources, so read them from NIST SP 800-56B Rev. 2 or the relevant vendor documentation. Use the table to see which attributes differ in kind and which are only covered for one side.
| Attribute | ML-KEM | RSA |
|---|---|---|
| What it is | A key encapsulation mechanism with key generation, encapsulation and decapsulation functions | An integer factorization scheme used for key transport and key agreement, with key confirmation |
| Defining document and date | FIPS 203, final on 13 August 2024 | NIST SP 800-56B Rev. 2, March 2019, reaffirmed as current on 6 January 2026 |
| Purpose | Two parties establish a shared secret key over a public channel through encapsulation and decapsulation | Key transport and key agreement schemes, covered in NIST SP 800-56B Rev. 2 |
| Parameter sets | ML-KEM-512, ML-KEM-768 and ML-KEM-1024 | Sizes are not supplied in these sources; check NIST SP 800-56B Rev. 2 or vendor documentation |
| Encapsulation key and ciphertext sizes | ML-KEM-512: 800-byte key, 768-byte ciphertext. ML-KEM-768: 1184-byte key, 1088-byte ciphertext. ML-KEM-1024: 1568-byte key, 1568-byte ciphertext (draft-ietf-tls-mlkem-11) | Sizes are not supplied in these sources; check NIST SP 800-56B Rev. 2 or vendor documentation |
| Shared secret size | 32 bytes for all three parameter sets (draft-ietf-tls-mlkem-11) | Not supplied in these sources; confirm against NIST SP 800-56B Rev. 2 and the implementation in use |
| Role in TLS 1.3 | Used in hybrid groups with ECDHE as defined in RFC 10024 | Kept only as an authentication method alongside ECDSA and EdDSA; static RSA key transport cipher suites were removed (RFC 8446) |
| Where it is supported | Hybrid TLS 1.3 groups in RFC 10024 and OpenSSH key exchange from version 9.9 (mlkem768x25519-sha256) | Confirm support and the exact key transport options in the TLS stack, SSH build or library you run |
What each one is for and which document defines it
RSA is used for key establishment through key transport and key agreement schemes, with key confirmation, as specified in NIST SP 800-56B Rev. 2. In that model one party generates a secret value and transports it to the other party under the recipient's RSA public key, so the scheme's security rests on integer factorization cryptography. The specification was published in March 2019 and reaffirmed as current on 6 January 2026. In TLS 1.3, RSA no longer protects the session key. Static RSA cipher suites were removed, and RSA remains only as an authentication method alongside ECDSA and EdDSA, as set out in RFC 8446.
- Governing document: NIST SP 800-56B Rev. 2 defines the RSA-based key establishment schemes, including key transport and key confirmation.
- Protocol role in TLS 1.3: RFC 8446 keeps RSA as an authentication method only, so it signs or verifies handshake material rather than carrying the session key.
- Removed usage: Static RSA key exchange cipher suites are not part of TLS 1.3, so RSA key transport does not appear there.
- No hybrid defined with ML-KEM: RFC 10024 defines hybrids of ML-KEM with ECDHE for TLS 1.3 and does not define any hybrid with RSA key transport.
- Migration implication: Because the RSA key transport scheme depends on integer factorization, planners should check which of their systems still use it for key establishment rather than only for signatures.
Confirm with your environment which protocols and libraries in your estate use RSA for key transport, and check each one against the standard it implements.
ML-KEM is specified in FIPS 203 as a key-encapsulation mechanism that lets two parties establish a shared secret key over a public channel. Instead of encrypting a chosen key, the sender runs encapsulation against the recipient's public key to produce a ciphertext and a shared secret, and the recipient runs decapsulation to recover the same secret. FIPS 203 was published as a final standard on 13 August 2024 with the parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. RFC 9794 describes a KEM as a scheme with three functions, key generation, encapsulation and decapsulation.
- Governing document: FIPS 203 defines ML-KEM and its parameter sets, published as a final standard on 13 August 2024.
- KEM functions: RFC 9794 defines a KEM as having key generation, encapsulation and decapsulation, the three functions the scheme must provide.
- Security property: RFC 9794 says KEMs suit Internet use because they provide IND-CCA security, while public key encryption typically provides only IND-CPA, which is insufficient against active attackers.
- Operational guidance: NIST SP 800-227, published as a final document on 18 September 2025, gives recommendations for implementing and using KEMs securely.
- Sizes for ML-KEM-768: The draft lists an encapsulation key of 1184 bytes, a ciphertext of 1088 bytes and a 32-byte shared secret, as stated in draft-ietf-tls-mlkem-11.
Check the parameter set and library version you deploy against FIPS 203 and the TLS draft your stack follows, since sizes differ across the three parameter sets.
Several documents govern how these primitives are used, and they do not all answer the same question. FIPS 203 and NIST SP 800-227 cover the KEM itself. NIST SP 800-56B Rev. 2 covers RSA-based key establishment. The TLS working group drafts and RFC 10024 cover how the algorithms appear in TLS 1.3, and OpenSSH publishes its own post-quantum key exchange choices. Reviewers should match each claim to the document that actually defines it, rather than treating any one of them as the single authority for the whole topic.
- Primitive specification: FIPS 203 defines ML-KEM, and NIST SP 800-56B Rev. 2 defines RSA key establishment.
- Implementation guidance: NIST SP 800-227 gives recommendations for KEM implementation and use.
- Protocol profile: RFC 10024 defines TLS 1.3 hybrid groups that combine ML-KEM with ECDHE, such as X25519MLKEM768.
- SSH deployment: The OpenSSH post-quantum page lists mlkem768x25519-sha256 as supported from version 9.9 and as the default from OpenSSH 10.0, released in April 2025.
- Transition context: NIST IR 8547 identifies the quantum-vulnerable standards that products and services will need to move away from, which bears on whether RSA key establishment must be replaced.
Before relying on a profile, confirm the exact version of the protocol or library you run, because a draft or a newer release may differ from the standard it cites.
The differences that change systems, configurations and decisions
RSA key transport and ML-KEM encapsulation both deliver a session key to a peer, but they differ in what the sender controls, what the ciphertext looks like and which protocol contexts accept them. Each card below is a point where that difference changes a system, a configuration or a procurement decision.
Encapsulation is not encryption of a chosen key
An ML-KEM sender does not pick the shared secret. The encapsulation function produces it along with a ciphertext, and the receiver's decapsulation recovers it. RFC 9794 treats KEMs as the appropriate primitive for Internet use because they provide IND-CCA security, while public key encryption schemes typically provide only IND-CPA, which RFC 9794 calls insufficient against active attackers. Check whether a design or library assumes the sender chooses the key, because that assumption does not carry over to ML-KEM.
RFC 9794RSA key transport is gone from TLS 1.3
TLS 1.3 removed static RSA cipher suites and keeps RSA only as an authentication method alongside ECDSA and EdDSA. A TLS 1.3 deployment therefore has no RSA key transport to replace with ML-KEM. Teams should check their TLS configuration for any RSA key exchange still enabled in older protocol versions, since that is where RSA key transport still lives.
RFC 8446Ciphertext size changes handshake budgets
At ML-KEM-768, the encapsulation ciphertext is 1088 bytes and the encapsulation key is 1184 bytes, compared with the shared secret of 32 bytes. Packet sizing, buffer allocations and any fixed-size message fields in a protocol must accommodate these lengths. Confirm the exact sizes against the TLS working group draft for the version you deploy, because message layouts differ between drafts and implementations.
TLS ML-KEM draftHybrids with ECDHE, not with RSA
RFC 10024 defines TLS 1.3 hybrid groups that combine ML-KEM with ECDHE, including X25519MLKEM768 and SecP256r1MLKEM768. It does not define any hybrid with RSA key transport. An architect who needs a hybrid key exchange should plan around the ECDHE-based groups in that document, and treat any RSA-based hybrid as something to confirm with the specific vendor or standard rather than assume.
RFC 10024Key confirmation is a separate requirement
NIST SP 800-56B Rev. 2 specifies RSA-based key establishment schemes covering key agreement and key transport with key confirmation. Key confirmation is a distinct property from the KEM operation itself, so a system that moves to ML-KEM must still determine how it confirms that both parties hold the same secret. Review the key confirmation method in any ML-KEM implementation against the requirements your assessment applies.
NIST SP 800-56BWhere RSA key transport and ML-KEM show up in protocols and products
The practical question for most reviewers is not whether ML-KEM replaces RSA in general, but where each one actually sits in a protocol or product. In TLS 1.3, RSA no longer carries key transport at all. RFC 8446 removed static RSA cipher suites and keeps RSA only as an authentication method alongside ECDSA and EdDSA. Post-quantum key establishment in TLS instead appears as hybrid groups defined in RFC 10024: X25519MLKEM768 (codepoint 4588, 0x11EC, marked Recommended), SecP256r1MLKEM768 (codepoint 4587, 0x11EB, not marked Recommended) and SecP384r1MLKEM1024 (codepoint 4589, 0x11ED, not marked Recommended). RFC 10024 defines hybrids of ML-KEM with ECDHE only and does not define any hybrid with RSA key transport. Reviewers should check which of these groups their TLS stack offers and in what order, since the Recommended flag does not by itself mean a stack will negotiate it.
In SSH, the relevant key exchange is mlkem768x25519-sha256, supported from OpenSSH 9.9 and made the default in OpenSSH 10.0 (April 2025). Earlier releases offered sntrup761x25519-sha512 from version 9.0 (April 2022), which is a different lattice KEM. A host running a version older than 9.9 will not offer the ML-KEM hybrid unless it has been built or configured otherwise, so the OpenSSH version and its negotiated key exchange algorithm are the first things to confirm on each host. RSA still appears in SSH as a host key or user authentication method, which is a separate role from key exchange.
Legacy configurations are where RSA key transport is most likely to persist. Older TLS deployments, custom applications, appliances and some file transfer or VPN products may still use RSA to encrypt a session key directly, a pattern that TLS 1.3 no longer offers. NIST SP 800-56B Rev. 2 covers RSA-based key establishment, both key agreement and key transport with key confirmation, so it remains the reference for those schemes. Inventory should record each endpoint's supported key exchange and whether RSA transport is still negotiable. Vendors should confirm the protocol versions and key exchange groups their own releases support, since the sources listed here describe the standards and some upstream projects, not every product build.
How to work out which one applies to your system
This sequence establishes which key transport or encapsulation method your systems negotiate today, which one the requirements and contracts name, and whether the chosen ML-KEM group works in your endpoints before rollout. Each step ends with a record you can hand to an auditor or change board. Work through the steps in order, because later checks depend on what earlier ones find.
Read the requirements and contract clauses
Start with the requirements your organization has to meet, including any contract, tender or procurement clause that names a standard. Search those documents for FIPS 203 and NIST SP 800-56B Rev. 2, and note exactly which one each clause names. NIST SP 800-56B Rev. 2 covers RSA-based key establishment, while FIPS 203 specifies ML-KEM, so a clause naming one does not automatically cover the other. Record each clause, its wording and its owner. This step is done when every clause naming either document is listed with its source and the person who needs to confirm its meaning.
Inventory where RSA key transport is configured
Find every place RSA key transport is configured in your estate. Typical locations are legacy TLS configurations, SSH server and client settings, and IKE configurations for IPsec. TLS 1.3 removed static RSA cipher suites and uses RSA only for authentication, so a TLS 1.3 endpoint may use RSA as a signature without using it for key transport. Check each endpoint's configuration file and the negotiated result, and label each finding as key transport or authentication. This step is done when you have a list of endpoints with the configuration key, the protocol version and whether RSA is doing key transport or authentication.
Check vendor documentation for ML-KEM support
For each product in the inventory, read the vendor's documentation to see whether it supports ML-KEM, and which version adds it. Note the parameter set named (ML-KEM-512, ML-KEM-768 or ML-KEM-1024), whether support is in the default configuration or must be enabled, and whether the feature is a hybrid with a classical group. Ask each vendor in writing for the minimum version and any known limitations. Where the documentation is silent, record that gap rather than assuming support. This step is done when every product has a documented support statement, a version number and a named contact for any unresolved question.
Confirm the TLS and SSH versions endpoints negotiate
Test what your endpoints actually negotiate, because configuration and negotiation can differ. For TLS, confirm the protocol version and the key exchange group the server selects with a representative client. For SSH, confirm the key exchange algorithm each server and client agrees on. Use the output of these tests, not the configuration file alone, as the record of what happens in practice. Note any endpoint that negotiates an older method or a method that is not a hybrid. This step is done when each endpoint has a recorded negotiated protocol version and key exchange group.
Test the chosen group before rollout
Before enabling the chosen ML-KEM group across production, test it in a staging environment that matches production as closely as possible. Confirm that the group negotiates successfully with the clients you actually serve, including older clients that may not offer it. Check that the session still completes, that logs record the expected group, and that performance is acceptable for your workloads. Keep the previous configuration available so you can revert. This step is done when a test report lists each client tested, the group negotiated, and any failures with their resolution.
Record the decision and its evidence
Write down which method applies to each system and why, linking each decision to the clause, documentation and test result that supports it. Name the owner of each system and the date of the decision. Include any system where ML-KEM is not yet available and the plan for that system. Keep the record with your inventory so an auditor or reviewer can trace each claim to its source. This step is done when every system in the inventory has a documented decision, its evidence and a named owner.
Questions readers ask about ML-KEM and RSA
Are ML-KEM and RSA the same kind of thing?
No. They are built for different jobs, even though both can set up a shared secret between two parties. RSA is covered by NIST SP 800-56B Rev. 2, which specifies key-establishment schemes based on integer factorization, in particular RSA, for both key agreement and key transport with key confirmation. ML-KEM is specified by FIPS 203 as a key-encapsulation mechanism: two parties establish a shared secret key over a public channel through encapsulation and decapsulation, rather than by encrypting a key the sender chose. RFC 9794 explains that KEMs are the appropriate primitive for Internet use because they provide IND-CCA security, and that public key encryption schemes typically provide only IND-CPA security, which is insufficient against active attackers. The practical difference is in the mechanism, so check how each product implements it.
Which is newer, ML-KEM or RSA?
RSA is the older of the two. ML-KEM is the newer one. NIST published FIPS 203, which specifies ML-KEM, as a final standard on 13 August 2024, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The same month NIST released FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA). NIST SP 800-56B Rev. 2 was first published in March 2019 and was reaffirmed as current on 6 January 2026, which is the document that covers RSA-based key establishment. TLS 1.3 (RFC 8446) removed static RSA cipher suites and keeps RSA only as an authentication method alongside ECDSA and EdDSA, so RSA is still in use in certificates even where it no longer does key transport in TLS.
Does a rule or customer require ML-KEM?
The sources in this topic do not establish a binding requirement for commercial organizations. NIST IR 8547 was published as final in October 2026, replacing the initial public draft of 12 November 2024. Its abstract says it identifies existing quantum-vulnerable cryptographic standards and the quantum-resistant standards to which products and services will need to transition. Whether that applies to your organization depends on the rules and contracts you operate under, including any federal customer requirements. Ask your customer or compliance lead which standard they expect, and whether they name ML-KEM, RSA key transport, or a hybrid. Confirm the current status of any document against NIST's publication pages before writing it into a contract.
Do we need both ML-KEM and RSA?
It depends on what the system does. RFC 10024 defines hybrid groups for TLS 1.3 that combine ML-KEM with ECDHE, such as X25519MLKEM768 and SecP256r1MLKEM768. It does not define any hybrid with RSA key transport. RFC 9794 describes a PQ/T hybrid as one with at least one post-quantum and at least one traditional component, designed so an attacker must break all components. In TLS, RSA is still common for authentication through certificates, which is a separate role from key transport. Work out whether RSA is used for key transport, for authentication, or for both, because the answer changes which replacement you need. Confirm supported groups with your TLS library and version before deciding.
What sizes should we expect for ML-KEM messages?
The TLS working group draft draft-ietf-tls-mlkem-11, dated 17 September 2026, lists the sizes in bytes. ML-KEM-512 has an 800-byte encapsulation key and a 768-byte ciphertext. ML-KEM-768 has a 1184-byte encapsulation key and a 1088-byte ciphertext. ML-KEM-1024 has a 1568-byte encapsulation key and a 1568-byte ciphertext. All three produce a 32-byte shared secret. Because these messages are larger than many RSA key transport messages, check that network paths, firewalls, load balancers and handshake buffers accept the new sizes. Test with your own parameter set rather than relying on these figures alone.
What should we ask a vendor about ML-KEM support?
Ask which exact versions and build options implement ML-KEM, and which parameter set they use. Ask whether ML-KEM is offered alone or only as a hybrid with ECDHE, and which TLS 1.3 groups are enabled by default. Ask whether RSA is still used for key transport anywhere in the product, and whether RSA remains only for authentication. For OpenSSH, the sources note that mlkem768x25519-sha256 arrived in version 9.9 and became the default in OpenSSH 10.0 (April 2025), so ask which version you run. Ask for their test evidence and for the documentation that states the group names and identifiers they support.
Can we treat ML-KEM as a direct drop-in for RSA key transport?
Not without checking. ML-KEM is a key-encapsulation mechanism, so it does not replace RSA key transport one for one at the API or protocol level. Encapsulation and decapsulation work differently from encrypting a chosen key, and RFC 9794 points out that a KEM is defined by key generation, encapsulation and decapsulation. Protocols and libraries expose these functions differently, so application code that calls RSA encryption will need changes. NIST SP 800-227 gives recommendations for implementing and using KEMs securely, and it is the document to review with your developers before any substitution.
Is ML-KEM the only post-quantum KEM that NIST is standardizing?
No. NIST selected HQC on 11 March 2025 as a code-based KEM to be standardized. NIST's Dustin Moody said HQC is not intended to take the place of ML-KEM, which remains the recommended choice for general encryption. Your decision should therefore start with ML-KEM for general use, while noting that HQC is a separate design with its own standing. The sources do not describe how HQC's standardization schedule relates to your deployment, so check NIST's published status before planning around it.
RSA transport has the sender choose the key, ML-KEM has both sides derive it
The diagram starts with the sender in each flow. In RSA key transport, the sender picks a session key and encrypts it to the recipient's RSA public key, and the recipient decrypts it to recover the key. In ML-KEM, the sender runs encapsulation against the recipient's encapsulation key, which produces a ciphertext and a 32-byte shared secret, and the recipient runs decapsulation on the ciphertext to derive the same secret. Check that the key is chosen by the sender in one flow and derived by both parties in the other, and confirm the parameter set and sizes against FIPS 203 and draft-ietf-tls-mlkem-11 for your version.
RSA transport sends a chosen key, while ML-KEM derives a shared secret on both sides.
How DeployOpen works on this
DeployOpen approaches ML-KEM vs RSA key transport by first confirming which protocols and products in the client's environment use RSA key transport and which would move to ML-KEM encapsulation. The work is then scoped, built, documented and handed over as a fixed-scope engagement, with ongoing support available as a retainer.
How we scope
- We inventory where RSA key transport and static RSA key exchange appear in the client's systems and protocols.
- We identify which components would need ML-KEM encapsulation, hybrid groups, or RSA kept only for authentication.
- The written scope states which systems, protocols and deliverables are covered before any work starts.
How we build
- We configure self-hosted platforms and key exchange settings inside the client's own infrastructure, including cloud, data center or air-gapped networks.
- We test the resulting key establishment behavior, including fallback paths and cipher suite negotiation, against the configuration we agreed.
- Where a product's version does not support ML-KEM, we record that finding and the options the sources describe rather than assuming support.
How we hand over
- We document each key exchange setting, the version it applies to, and the component that owns it.
- We deliver a record of which connections use RSA key transport, which use ML-KEM, and which remain on classical methods.
- We confirm with the client which compatibility and interoperability checks their specific product versions still need to pass.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- We can re-run the key establishment review when the client upgrades a protocol, library or product version.
- Questions about standards changes, such as updates to NIST guidance, are handled against the written scope and the client's environment.

