What is a key encapsulation mechanism (KEM)?

A key encapsulation mechanism (KEM) lets two parties agree on a shared secret over a public channel. Here is what it is, where it appears in post-quantum planning, and what it changes for your migration.

On this page

What is a key encapsulation mechanism (KEM) and why does it matter for post-quantum planning?

A key encapsulation mechanism (KEM) is a method that lets two parties establish a shared secret over a public channel, and that shared secret can then support symmetric-key tasks such as encryption and authentication. NIST defines KEMs in SP 800-227, Recommendations for Key-Encapsulation Mechanisms, and RFC 9180 describes them through three operations: GenerateKeyPair produces a key pair, Encap takes the recipient's public key and returns a fixed-length shared secret along with an encapsulation of it, and Decap uses the recipient's private key to recover that shared secret from the encapsulation. If you have met the term in a vendor document, a standard, a tender or an audit request, it most likely refers to this key-establishment role rather than to a signature or a certificate.

You will usually meet the term in three places: vendor answers about which key exchange a product negotiates, standards and RFCs that name a KEM for a protocol, and the lists of algorithms that a library or appliance supports. The lattice-based key establishment family is central here. ML-KEM, standardized by NIST in FIPS 203, is the name most protocol documents use for it, and it sits beside related lattice KEMs that appear under other names in specifications and libraries. When a document names a KEM, confirm which parameter set and which standard it refers to, because the same family name can appear with different sizes and identifiers.

For migration planning, the practical question is where a KEM sits in a protocol and what changes when it is used. A KEM in a TLS or SSH handshake changes message sizes, and RFC 10024 and RFC 10042 document how hybrid key exchanges pair ML-KEM with a classical algorithm. Ask vendors which KEM and which hybrid group their product negotiates, whether the setting is on by default, and which version or edition introduced it. Confirm those answers against the standard or the vendor's own documentation, and against a test in your environment, before you record them in an inventory.

Which names and identifiers are used for KEMs in standards and libraries?

This table lists the standard names, document numbers and identifiers that practitioners meet for KEMs, showing which source defines each one. Names differ across libraries and vendor documents, so match the identifier in a specification against the one in your product's documentation before assuming two entries refer to the same thing.

Name or identifierWhere it appearsWhat it refers to
KEM (key encapsulation mechanism)NIST SP 800-227; RFC 9180A scheme where two parties establish a shared secret over a public channel using a key pair and an encapsulation step
FIPS 203NIST FIPS 203 pageThe NIST standard that specifies ML-KEM, published as final on 13 August 2024
ML-KEM-512, ML-KEM-768, ML-KEM-1024FIPS 203 parameter setsThe three ML-KEM parameter sets defined in FIPS 203, with public keys of 800, 1184 and 1568 octets in X.509 certificates per RFC 9935
CRYSTALS-KyberNIST 2022 selection and 2024 releaseThe earlier name of the algorithm that NIST renamed ML-KEM when it published FIPS 203
RFC 9180 KEM identifiers 0x0010 to 0x0021RFC 9180 registryDHKEM(P-256), DHKEM(P-384), DHKEM(P-521), DHKEM(X25519) and DHKEM(X448), with 0x0000 reserved
X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024RFC 10024 (TLS 1.3)Hybrid key agreement groups that pair ML-KEM with a classical component
mlkem768x25519-sha256 and related SSH methodsRFC 10042 (SSH)Key exchange methods that pair ML-KEM with X25519, P-256 or P-384 for SSH
IKEv2 transform IDs 35, 36, 37draft-ietf-ipsecme-ikev2-mlkemRequested identifiers for ML-KEM-512, ML-KEM-768 and ML-KEM-1024 in IKEv2, still a draft

Where do practitioners meet KEMs in protocols, products and tenders?

A key encapsulation mechanism rarely appears alone. It shows up as a named key exchange method in TLS, SSH and IPsec, as a key usage in certificates, as a function in cryptographic libraries, and as a line item in vendor documents and tender questions. Each place below asks a slightly different question of the same underlying idea.

TLS 1.3 hybrid key exchange

In TLS 1.3, a KEM is usually paired with a classical elliptic curve exchange under a single named group, such as X25519MLKEM768, SecP256r1MLKEM768 or SecP384r1MLKEM1024, defined in RFC 10024. The hybrid design means the connection stays protected if either component holds. Check which group a server negotiates, because the client and server shares are noticeably larger than a classical X25519 share, which can affect handshake sizes and middleboxes that inspect traffic.

Client share size
1216 bytes
RFC 10024 text

SSH key exchange methods

SSH negotiates the key exchange method by name, and RFC 10042 defines hybrid methods that pair ML-KEM with X25519, P-256 or P-384, including mlkem768x25519-sha256. OpenSSH 10.0 made the X25519 hybrid its default key agreement method. When reviewing an SSH server or client, confirm the negotiated method rather than the version alone, and check whether older clients in your estate can still connect without a classical fallback that you have accepted.

OpenSSH release notes

IKEv2 for IPsec

IPsec VPNs negotiate key exchange through IKEv2 transforms. The IETF draft draft-ietf-ipsecme-ikev2-mlkem requests transform IDs 35, 36 and 37 for ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Because this is still a draft, ask a VPN vendor which revision they implement and whether the transform is available in the edition you license. Gateways from different vendors may support different parameter sets, so test interoperability before relying on it.

Requested transform IDs
35, 36, 37
IKEv2 ML-KEM draft

X.509 certificates carrying KEM keys

RFC 9935 describes how an ML-KEM public key can sit in an X.509 certificate. If the certificate has a keyUsage extension, an ML-KEM key may carry only the keyEncipherment bit. The public key is 800, 1184 or 1568 octets depending on ML-KEM-512, 768 or 1024. When a PKI team or a vendor says it issues KEM certificates, check the key usage bits and the parameter set, since a certificate built for the wrong usage may be rejected by relying systems.

Public key octets
800 to 1568
RFC 9935 text

Cryptographic libraries such as liboqs

Libraries such as liboqs expose KEMs as named algorithms, including ML-KEM variants, FrodoKEM, NTRU and Streamlined NTRU Prime. A library listing a KEM does not mean a product built on it is validated or certified, and implementation quality varies. When a product team cites a library, ask which algorithm names and versions are compiled in, whether the build is the one the product ships, and what the team has tested beyond the library's own test suite.

liboqs ML-KEM docs

Vendor documents and tender questions

Vendor answers and tender questionnaires often ask whether a product supports ML-KEM, which parameter set it uses, and whether the key exchange is hybrid. Read those answers against the specific protocol and version in question, not the product name. Ask for the exact group or method names the product negotiates, the edition and release it applies to, and whether any certification claim covers the cryptographic module itself. Treat a bare statement of support as a starting point for testing.

FIPS 203 page

How does a KEM establish a shared key in a system?

A key encapsulation mechanism sets up a shared secret between two parties in three operations, as RFC 9180 defines them. A key generation step produces a key pair, and the recipient keeps the private key while publishing the public key. The sender then runs an encapsulation operation using that public key, which returns a fixed-length shared secret along with an encapsulation of it. The sender transmits the encapsulation to the recipient, who runs decapsulation with the private key to recover the same shared secret. Nothing secret crosses the channel in the clear, so the exchange can run over a public channel.

The shared secret is the starting point, not the end. NIST SP 800-227 describes the KEM output as supporting symmetric-key tasks such as encryption and authentication, so the secret is typically fed into a key derivation step and then used by symmetric algorithms in the protocol. For a migration review, the practical question is which component of the system performs each role, and whether the protocol above the KEM handles key derivation and authentication correctly. Confirm this against the specific protocol and its implementation, and against the guidance in SP 800-227 on secure use.

A KEM also changes the size of handshake messages, which matters for capacity planning and for systems with fixed message limits. RFC 10024 gives the X25519MLKEM768 client share as 1216 bytes (1184 for ML-KEM plus 32 for X25519) and the server share as 1120 bytes (1088 plus 32). Classical Diffie-Hellman based KEMs such as DHKEM(X25519, HKDF-SHA256) are much smaller, with a 32-byte public key and encapsulation, so the difference is significant. Before a rollout, measure the handshake sizes your own stack produces and check them against network devices, load balancers and any size limits in your environment.

What is the standardization status of KEMs and where are they required?

Key encapsulation mechanisms are now standardized at several levels, but the status differs by document, and reviewers should check each one rather than treating KEM support as a single yes or no. The core NIST publication is FIPS 203, the Module-Lattice-Based Key-Encapsulation Mechanism Standard, published as a final standard on 13 August 2024 after an initial public draft on 24 August 2023. NIST's accompanying recommendations, SP 800-227, Recommendations for Key-Encapsulation Mechanisms, were released as a final publication on 18 September 2025 after a public draft on 7 January 2025. NIST's 5 July 2022 announcement selected CRYSTALS-KYBER for key establishment, and NIST later renamed the algorithm ML-KEM. The NIST FIPS 203 page carries a planning note dated 17 November 2025 saying an issue has been identified and will be corrected in a future update or revision, with details in a separate errata spreadsheet. Before citing the standard in a design or audit answer, confirm the current revision and errata status on the NIST FIPS 203 page.

Protocol-level standardization is following the NIST work. RFC 10024, Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3, is a Proposed Standard dated August 2026 and defines X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. RFC 10042 defines SSH key exchange methods that pair ML-KEM with X25519, P-256 or P-384, and the IKEv2 draft draft-ietf-ipsecme-ikev2-mlkem (revision 09, dated 5 July 2026) requests transform IDs for ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Deployment is already happening in some products: the OpenSSH 10.0 release notes, dated 9 April 2025, say the hybrid mlkem768x25519-sha256 is now used by default for key agreement. Confirm which of these drafts or RFCs your products implement, because a product can support a method without the method being final.

Where a KEM is required is a separate question from where it is standardized. The NSA's advisory and the CNSA 2.0 suite apply to national security systems, and they do not bind commercial organizations by default. A commercial organization may use them as a reference, and may meet them through a contract with a federal customer when that contract says so, which means procurement teams should check the contract clause, not assume the requirement. No existing commercial compliance regime should be assumed to require a KEM unless the governing document says so, so ask your assessor and your federal customers which obligations apply to your systems and in what form.

What should you check in your environment to find where KEMs are used?

This sequence moves from the protocols that carry key exchange, through the software and certificates that negotiate it, to the vendor answers and live tests that confirm where KEMs are actually in use. The output is a dated record of which systems negotiate KEM-based key exchange and which still need follow-up.

  1. Inventory handshakes and key exchanges in TLS, SSH and IPsec

    List every service in your environment that establishes an encrypted session over TLS, SSH or IPsec, including load balancers, VPN gateways, bastion hosts and internal APIs. For each one, record the protocol version and the key exchange groups or methods it is configured to offer. The output is an inventory table with one row per endpoint, which becomes the baseline for every later step. Platform or network teams usually own this step, and it is done when every endpoint that terminates these protocols has a row.

  2. Identify library versions and product releases

    For each entry in the inventory, determine which TLS library, SSH implementation or IPsec daemon version runs on the endpoint, and check whether that release negotiates KEM-based key exchange. Use the vendor's release notes and documentation rather than assumptions about what a version name implies. For example, the OpenSSH 10.0 release notes dated 2025-04-09 state that the hybrid method mlkem768x25519-sha256 is used by default for key agreement, so an OpenSSH 10.0 or later host should be recorded differently from an older one. The step is done when every row carries a version and a documented answer on KEM support.

  3. Check certificate profiles for KEM public keys

    Review the certificate profiles issued in your environment to see whether any carry a KEM public key. Under RFC 9935, an ML-KEM key in an X.509 certificate may carry only the keyEncipherment key usage bit when a keyUsage extension is present, and the key is 800, 1184 or 1568 octets for ML-KEM-512, 768 or 1024. Confirm with your certificate authority or PKI team which profiles are in use and whether any are issued for KEM keys. The step is done when you have a list of certificate profiles with a note on whether each one carries a KEM key.

  4. Ask vendors about KEM identifiers and hybrid defaults

    Send each product vendor a written question asking which KEM identifiers and parameter sets their product supports, and whether hybrid modes are enabled by default or must be turned on. Ask for the specific identifiers, such as the IKEv2 transform IDs or SSH method names, rather than a general statement of support. Record the vendor's written answer, its date and the product version it applies to. The step is done when every product in the inventory has a dated written answer, and any gap or unanswered question is flagged for follow-up.

  5. Confirm KEM use by testing negotiated algorithms

    Test each endpoint to see which key exchange algorithm is actually negotiated, rather than relying only on configuration files. Use a client that offers a known set of groups or methods, capture the handshake, and record the algorithm the server selects. Compare the negotiated result with what the configuration says, and investigate any mismatch before recording the endpoint as KEM-capable. The output is a test log with the endpoint, date, client, and negotiated algorithm for each entry, and this log is the evidence that the inventory reflects live behavior.

Which KEM terms and claims are most often confused in vendor documents?

Vendor documents often blur a few closely related terms. The four points below separate the names, the component types and the claims that a KEM mention alone cannot support, so you can check what a product actually does.

CRYSTALS-Kyber and ML-KEM are one algorithm

Kyber and ML-KEM refer to the same underlying algorithm family. NIST's 13 August 2024 release says FIPS 203 is based on CRYSTALS-Kyber, which NIST renamed ML-KEM, with the name standing for Module-Lattice-Based Key-Encapsulation Mechanism. Older documents, libraries and test outputs may still say Kyber, so check whether a version refers to the pre-standard algorithm or to the final FIPS 203 parameter sets (ML-KEM-512, ML-KEM-768 and ML-KEM-1024).

FIPS 203 page

A KEM is not a signature scheme

A KEM establishes a shared secret, while a signature scheme such as ML-DSA authenticates data. NIST SP 800-227 describes KEMs as letting two parties agree on a shared secret over a public channel. ML-DSA is a separate FIPS standard for digital signatures, so a document that lists ML-DSA is not thereby describing key establishment. When reviewing a product, ask which component uses the KEM and which uses the signature, because certificates and key exchange often rely on each differently.

SP 800-227

A hybrid combines a KEM with a classical algorithm

A hybrid is a combination of a post-quantum KEM and a traditional component, not a KEM on its own. RFC 10024 defines hybrid in TLS 1.3 so that security holds if at least one component remains secure. Named groups such as X25519MLKEM768 combine ML-KEM with X25519, and the shared secret concatenation order differs by group. A product that says it supports ML-KEM may still be using a classical-only group in some connections, so check which named group is negotiated.

RFC 10024

One KEM mention does not make a product quantum safe

A single KEM mention does not support a claim that a product is quantum safe. A product listing one post-quantum KEM may apply it only to one protocol, one interface or one component, while other key exchange, certificate or stored-data paths remain classical. Terms such as quantum safe and quantum resistant are used loosely in marketing, so ask which protocols, versions and configurations use the KEM, what the default is, and what is still negotiated with classical algorithms.

What do people search for about KEMs?

What does KEM stand for?

KEM stands for key encapsulation mechanism. It is a way for two parties to establish a shared secret over a public channel, and that shared secret can then support symmetric-key tasks such as encryption and authentication. NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, defines the term and covers KEM properties, applications and guidance on secure implementation and use. RFC 9180 describes a KEM through three operations: GenerateKeyPair produces a key pair, Encap takes the recipient public key and returns a fixed-length shared secret plus an encapsulation of it, and Decap uses the recipient private key to recover that shared secret from the encapsulation. Confirm the exact definitions in the standard itself before quoting them in a vendor review.

Is ML-KEM the same as Kyber?

ML-KEM is closely related to Kyber but is not the same specification. NIST's 2024 release says FIPS 203 is based on the CRYSTALS-Kyber algorithm, which NIST renamed ML-KEM, and that the name stands for Module-Lattice-Based Key-Encapsulation Mechanism. FIPS 203 is the final standard, published on 13 August 2024, and it defines three parameter sets named ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Vendor documents and older code may still say Kyber, so check which name and parameter set a product implements. The NIST FIPS 203 page also carries a planning note dated 17 November 2025 saying an issue has been identified and will be corrected in a future update, with details in a separate errata spreadsheet.

Is a KEM standardized?

Yes, at least one KEM is standardized. NIST published FIPS 203 as a final standard on 13 August 2024, specifying ML-KEM as a key-encapsulation mechanism. NIST SP 800-227 was released as a final publication on 18 September 2025 and sits alongside FIPS 203 as a related publication. On the protocol side, IETF documents such as RFC 10024 for TLS 1.3 and RFC 10042 for SSH define how ML-KEM is used in key exchange. Other KEM families, including FrodoKEM, NTRU and Streamlined NTRU Prime, appear in libraries and research, but the sources listed here do not show them as NIST final standards. Check each algorithm's status against the NIST and IETF publications before relying on it in a procurement answer.

Do my products use KEMs?

Whether your products use a KEM depends on which protocols they negotiate. A KEM typically appears in key exchange during the start of a secure connection, such as TLS 1.3, SSH or IKEv2 VPNs. Look for the names in configuration and documentation: for example, the hybrid groups X25519MLKEM768 in TLS, mlkem768x25519-sha256 in SSH, and the IKEv2 transform IDs 35, 36 and 37 for ML-KEM-512, ML-KEM-768 and ML-KEM-1024 in the IETF draft ipsecme-ikev2-mlkem, revision 09. Remember that many products will not expose these settings directly, so ask the vendor which version and edition supports which KEM. The OpenSSH 10.0 release notes, dated 9 April 2025, state that the hybrid algorithm mlkem768x25519-sha256 is now the default for key agreement.

What changes for my handshakes and certificates?

A KEM changes the size of handshake messages and what certificates must carry. In TLS 1.3, RFC 10024 gives X25519MLKEM768 a client share of 1216 bytes (1184 for ML-KEM plus 32 for X25519) and a server share of 1120 bytes (1088 for ML-KEM plus 32 for X25519), so handshakes grow compared with classical-only key exchange. In X.509 certificates, RFC 9935 says an ML-KEM key may carry only the keyEncipherment key usage bit when a keyUsage extension is present, and the public key is 800, 1184 or 1568 octets for ML-KEM-512, 768 or 1024. Check your load balancers, firewalls and logging for message-size limits before enabling a hybrid group, and confirm certificate profiles with your CA.

What should I ask a vendor about KEM support?

Ask which KEMs the product supports, which parameter sets and hybrid groups it negotiates, and which version or edition that applies to. Request the exact identifiers the product uses, such as X25519MLKEM768, SecP256r1MLKEM768, mlkem768x25519-sha256 or IKEv2 transform IDs, and ask whether they are enabled by default. Ask how the product handles certificates carrying ML-KEM keys under RFC 9935, and what message-size changes you should plan for. Request a list of the standards the implementation follows, such as FIPS 203 or RFC 10024, and whether any certification or validation covers the specific module and version. Vendors should answer with dated, versioned documentation rather than general statements.

How DeployOpen works on this

DeployOpen helps teams plan KEM adoption by first inventorying where key establishment happens in their own environment, then building and testing the configuration in their own infrastructure. Each engagement is scoped in writing before work starts, and the output is documentation your security and compliance teams can review.

How we scope

  • Identify which protocols and services in your estate perform key establishment, such as TLS, SSH and IPsec endpoints.
  • Record which KEM variants and parameter sets each component supports, based on the vendor and library versions you run.
  • Agree the scope, deliverables and timeline in writing before any configuration or testing begins, since engagements are fixed-scope.

How we build

  • Configure KEM-based key exchange in your chosen components, such as ML-KEM hybrid groups in TLS 1.3 or SSH key exchange methods.
  • Test handshakes for compatibility and message size changes, since hybrid KEM key shares are larger than classical ones.
  • Keep all work inside your own cloud accounts, data centers or air-gapped networks, with no dependency on DeployOpen-hosted services.

How we hand over

  • Document each KEM configuration, including the algorithm names, versions and identifiers as your components report them.
  • Provide evidence your auditors can check, such as configuration files, test results and a record of the scope that was agreed.
  • Walk your engineering and security teams through the setup so they can operate and review it without us.

How we support

  • Offer ongoing support as a retainer for upgrades when libraries and standards change, such as updates to a KEM's specification.
  • Run continuous testing on your key-establishment configuration so regressions are caught after each component update.
  • Confirm with your vendors and the relevant standards documents which KEM versions remain current before each upgrade cycle.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.