ML-KEM-512 vs ML-KEM-768: which parameter set to choose

ML-KEM-512 and ML-KEM-768 are two parameter sets of the same key encapsulation standard, FIPS 203, that differ in key and ciphertext size and NIST security category. The sources listed on this page show where each is named and which hybrid groups use ML-KEM-768.

On this page

How ML-KEM-512 and ML-KEM-768 differ and who meets the choice

You will meet one of these two names when a vendor document, a TLS setting, a certificate profile or a tender asks which parameter set of ML-KEM to use. ML-KEM-512 and ML-KEM-768 are both parameter sets of the ML-KEM standard, FIPS 203, which NIST published as a final standard on 13 August 2024 for establishing a shared secret key over a public channel. The distinction that matters most is size and security category: ML-KEM-768 has larger encapsulation key and ciphertext sizes than ML-KEM-512 and sits at the higher NIST security category, level 3 against level 1 in the liboqs listing. FIPS 203 defines the three sets as offering increasing security strength and decreasing performance, so the choice is a trade between those two properties.

The choice usually comes up in three places. In TLS, the group name is the first sign: RFC 10024 defines hybrid groups only around ML-KEM-768 and ML-KEM-1024, with X25519MLKEM768 marked Recommended, while draft-ietf-tls-mlkem-11 gives standalone ML-KEM-512 (0x0200) and ML-KEM-768 (0x0201) groups that the IETF marks "N" for suitability. In X.509 profiles, RFC 9935 assigns separate algorithm OIDs to each set, so a certificate profile names one of them explicitly. In software, OpenSSL 3.5 selects each set by its EVP algorithm name, and Go 1.24's crypto/mlkem covers ML-KEM-768 and ML-KEM-1024 without ML-KEM-512. Confirm which sets your product and version support before writing the choice into a requirement.

ML-KEM-512 and ML-KEM-768 side by side on size, category and defining document

This table sets ML-KEM-512 against ML-KEM-768 on the byte sizes, NIST security category and defining documents that engineers see in standards, TLS drafts and library documentation. Read each row as a fact the sources give for that parameter set, and confirm the exact values against the version your stack implements. The main takeaway is that ML-KEM-768 is larger on the wire and in storage, and it is the set that the hybrid TLS groups in RFC 10024 are built around.

AttributeML-KEM-512ML-KEM-768
Defining standardFIPS 203 (final, 13 August 2024), RFC 9935 for X.509 encodingFIPS 203 (final, 13 August 2024), RFC 9935 for X.509 encoding
Encapsulation key size800 bytes (RFC 9935)1184 bytes (RFC 9935)
Decapsulation key size1632 bytes (draft-ietf-tls-mlkem-11)2400 bytes (draft-ietf-tls-mlkem-11)
Ciphertext size768 bytes (RFC 9935)1088 bytes (RFC 9935)
Shared secret size32 bytes (draft-ietf-tls-mlkem-11)32 bytes (draft-ietf-tls-mlkem-11)
NIST security categoryCategory 1 (liboqs ML-KEM)Category 3 (liboqs ML-KEM)
X.509 algorithm OID2.16.840.1.101.3.4.4.1 (RFC 9935)2.16.840.1.101.3.4.4.2 (RFC 9935)
TLS named groupMLKEM512, 0x0200, marked N in draft-ietf-tls-mlkem-11MLKEM768, 0x0201, marked N in draft-ietf-tls-mlkem-11; used in hybrid X25519MLKEM768 (0x11EC) in RFC 10024
Library supportOpenSSL 3.5 EVP_KEM-ML-KEM-512 variant; not listed in Go 1.24 crypto/mlkemOpenSSL 3.5 EVP_KEM-ML-KEM-768 variant; Go 1.24 crypto/mlkem; OpenSSL 3.5.0 default TLS hybrid key share

What ML-KEM-512 and ML-KEM-768 are and where practitioners meet them

ML-KEM-512 is one of the three parameter sets that FIPS 203, NIST's Module-Lattice-Based Key-Encapsulation Mechanism Standard, defines for establishing a shared secret key over a public channel. NIST's abstract describes the three sets as offering increasing security strength and decreasing performance, and the liboqs project lists ML-KEM-512 at NIST security level 1. Its encapsulation key is 800 bytes, its decapsulation key is 1632 bytes and its ciphertext is 768 bytes, according to RFC 9935.

  • Standard definition: FIPS 203 defines the algorithm and its parameter set. The encodings for certificates are set out in RFC 9935, which assigns the X.509 algorithm OID 2.16.840.1.101.3.4.4.1 to id-alg-ml-kem-512, with the AlgorithmIdentifier parameters absent.
  • TLS encoding: draft-ietf-tls-mlkem-11 gives MLKEM512 the NamedGroup value 0x0200. Its client key share is 800 bytes and its server key share is 768 bytes. The draft is in the RFC Editor queue, is dated 17 September 2026 and is intended as Informational.
  • TLS recommendation status: that draft marks the standalone MLKEM512 group with "N" in the Recommended column, which means the IETF makes no statement about its suitability.
  • No hybrid group: RFC 10024 defines hybrid groups only around ML-KEM-768 and ML-KEM-1024. No hybrid group uses ML-KEM-512, so a TLS stack that negotiates hybrid key exchange will not offer it.
  • Library selection: in OpenSSL 3.5 and later, the set is selected by the name EVP_KEM-ML-KEM-512. Go's crypto/mlkem, added in Go 1.24, implements ML-KEM-768 and ML-KEM-1024 and does not list ML-KEM-512.

Before you choose ML-KEM-512, confirm that the library, product or TLS peer you depend on exposes this name, and check whether your protocol configuration can negotiate it at all.

Six differences between ML-KEM-512 and ML-KEM-768 that change configuration

ML-KEM-512 and ML-KEM-768 share the same key exchange design but differ in key and ciphertext sizes, NIST category, and where they appear in protocol and library support. The cards below cover the differences that affect handshake size, certificate handling, hybrid group selection and library configuration, so you can check each one against your own environment before choosing a parameter set.

Key and ciphertext sizes grow

The encapsulation key is 800 bytes at ML-KEM-512 and 1184 bytes at ML-KEM-768, and the ciphertext is 768 bytes and 1088 bytes respectively. In a TLS handshake, the client key share and server key share grow by the same amounts, so a larger parameter set adds bytes to every connection that negotiates it. Check the handshake size limits of load balancers, proxies and middleboxes in your path before you choose, because larger messages can be dropped or fragmented by devices tuned for smaller handshakes.

TLS ML-KEM draft

Different NIST security categories

ML-KEM-512 maps to NIST category 1 and ML-KEM-768 maps to category 3, according to the liboqs project's listing. NIST defines category 1 as attack cost comparable to key search on a 128-bit-key block cipher and category 3 as comparable to a 192-bit-key cipher. Record which category your policy or contract names before you choose, since the category is the value most often requested in vendor questionnaires and audit responses.

NIST security criteria

Hybrid groups use ML-KEM-768 only

RFC 10024 defines hybrid groups around ML-KEM-768 and ML-KEM-1024, and none around ML-KEM-512. The X25519MLKEM768 group, which is marked Recommended in the RFC, therefore has no ML-KEM-512 counterpart. If your TLS configuration needs a hybrid key exchange, ML-KEM-768 is the only ML-KEM parameter set that RFC 10024 provides for it, and a standalone ML-KEM-512 group has to be configured separately and checked against your client population.

RFC 10024 text

Recommended marks on standalone groups

The TLS ML-KEM draft marks MLKEM512 and MLKEM768 as N in the Recommended column, which means the IETF has made no statement about their suitability as standalone groups. Only the hybrid groups carry a Recommended Y mark in RFC 10024. Do not describe either standalone group as recommended by the IETF in your documentation or customer responses; confirm the status in the current draft before a review.

TLS ML-KEM draft

Library support differs by set

The Go 1.24 crypto/mlkem package implements ML-KEM-768 and ML-KEM-1024 and does not list ML-KEM-512, so a Go-based service cannot select the smallest parameter set through that package. OpenSSL names each parameter set as a separate algorithm, including EVP_KEM-ML-KEM-512 and EVP_KEM-ML-KEM-768, added in OpenSSL 3.5. Before you commit to ML-KEM-512, confirm that every component in your stack, including language runtimes, TLS libraries and HSM or key management services, exposes that parameter set.

Go 1.24 release notes

Shared secret length stays the same

Both parameter sets produce a 32-byte shared secret, and the decapsulation key can be generated from a 64-byte seed in each case. The differences in key and ciphertext sizes therefore do not change the length of the key material your application derives from the exchange. Confirm the secret length your key derivation function expects, and check that the seed storage in your key management process is sized for the decapsulation key of whichever set you select.

FIPS 203 page

Where ML-KEM-512 and ML-KEM-768 show up in protocols, certificates and libraries

The two parameter sets are configured in different places, and the sources do not show that either one is a default everywhere. In TLS, the IETF draft draft-ietf-tls-mlkem-11, dated 17 September 2026 and in the RFC Editor queue, assigns NamedGroup 0x0200 to MLKEM512 and 0x0201 to MLKEM768. In that draft the client key share is 800 bytes for MLKEM512 and 1184 bytes for MLKEM768, and the server key share is 768 bytes and 1088 bytes respectively. The same draft marks all three standalone ML-KEM groups as "N" in the Recommended column, so the IETF has made no statement about their suitability. Before choosing a group, check whether your peers and load balancers accept 0x0200 or 0x0201 at all, since the draft is not yet published as an RFC.

Hybrid groups behave differently. RFC 10024, a Proposed Standard from August 2026, defines hybrid groups only around ML-KEM-768 and ML-KEM-1024, with none around ML-KEM-512. X25519MLKEM768 (0x11EC, Recommended Y) and SecP256r1MLKEM768 (0x11EB, N) are the two hybrids that use ML-KEM-768. Anyone who wants a hybrid TLS deployment is therefore working with ML-KEM-768 by specification, and should confirm which hybrid code points their TLS stack offers.

For certificates, RFC 9935 assigns the X.509 algorithm OIDs 2.16.840.1.101.3.4.4.1 to id-alg-ml-kem-512 and 2.16.840.1.101.3.4.4.2 to id-alg-ml-kem-768, with the AlgorithmIdentifier parameters absent. In libraries, OpenSSL 3.5, released on 8 April 2025, selects the set by algorithm name, with EVP_KEM-ML-KEM-512 and EVP_KEM-ML-KEM-768 as separate variants. OpenSSL 3.5.0 uses X25519MLKEM768 and X25519 as its default TLS key shares, so ML-KEM-512 is not a default there. Go 1.24 provides a crypto/mlkem package for ML-KEM-768 and ML-KEM-1024 and does not list ML-KEM-512, and it enables X25519MLKEM768 by default when Config.CurvePreferences is nil. Confirm the OID, name and default your own versions use before you rely on any of these.

How the two parameter sets sit in a TLS key exchange and certificate

The diagram starts with the client sending its key share in the ClientHello, which carries an 800-byte encapsulation key for MLKEM512 or a 1184-byte key for MLKEM768. The server returns its key share in the ServerHello, which is 768 bytes for MLKEM512 or 1088 bytes for MLKEM768, and both sides derive the 32-byte shared secret. The hybrid X25519MLKEM768 group from RFC 10024 is shown as the ML-KEM-768 path, because RFC 10024 defines no hybrid group around ML-KEM-512. Check the group your TLS library actually negotiates, since defaults differ between implementations.

TLS key shares for each ML-KEM parameter set, with the hybrid ML-KEM-768 path.

Whether ML-KEM-512 and ML-KEM-768 are used together or replace each other

ML-KEM-512 and ML-KEM-768 are alternative parameter sets of the same standard, FIPS 203, which defines three of them: ML-KEM-512, ML-KEM-768 and ML-KEM-1024. A given key exchange uses one parameter set, selected by name in the software or by the group negotiated in the protocol. The two are not normally deployed side by side in a single configuration, so the question for most teams is which one to select, not how to combine them. The sources also show that the parameter sets are offered as separate variants (in OpenSSL, as separate EVP_KEM-ML-KEM names), which is how a deployment picks exactly one.

The sources treat the hybrid groups unevenly. RFC 10024 defines hybrid groups only around ML-KEM-768 and ML-KEM-1024, with none around ML-KEM-512. In draft-ietf-tls-mlkem-11, the standalone MLKEM512 and MLKEM768 groups are both marked "N" in the Recommended column, which means the IETF has made no statement about their suitability. If your protocol stack or vendor relies on hybrid key exchange, confirm which parameter set it negotiates before assuming ML-KEM-512 is available in that mode. Check the group list your TLS library or appliance actually advertises rather than inferring it from the standard.

The sources do not describe a migration sequence from ML-KEM-512 to ML-KEM-768, or the reverse. They also do not say whether one should be retired in favor of the other. Before planning any change, confirm with the vendor or library documentation which parameter sets your version supports (Go 1.24's crypto/mlkem, for example, lists ML-KEM-768 and ML-KEM-1024 but not ML-KEM-512), and record the choice and its reason as part of your key exchange inventory.

How to work out which parameter set applies to your system

This sequence establishes which ML-KEM parameter set your systems use or are required to use, by checking the governing requirement, the places ML-KEM appears, vendor support, live TLS configuration and library behavior. Each step produces a written record you can take into a review, audit or vendor conversation.

  1. Find the requirement or contract that names a set

    Start with any policy, customer contract, procurement specification or federal program document that names a parameter set, such as ML-KEM-768 or ML-KEM-1024. Record the exact name, the clause or section that states it, and the date of the document. If no document names a set, record that finding, since the choice then rests on your own design decisions and the vendor options available to you. Done when you have a list of every requirement that mentions ML-KEM, along with the parameter set each one names or the note that none does.

  2. Build the inventory of ML-KEM use

    Using your cryptographic inventory, list every system, service, library and protocol where ML-KEM is or will be used, including load balancers, VPN gateways, internal service meshes, SSH endpoints and application code. For each entry, record the owning team, the component and version, and whether the parameter set is fixed in configuration, chosen by a library default or left unspecified. Done when every entry has a parameter set recorded or is marked as unknown, and the unknowns are assigned to an owner for follow-up.

  3. Check vendor documentation for supported parameter sets

    For each product in the inventory, read the vendor's documentation to confirm which ML-KEM parameter sets it supports and which named groups it advertises during key exchange. Note whether the documentation distinguishes standalone ML-KEM groups from hybrid groups, because the two can use different parameter sets. Where documentation is silent, ask the vendor in writing which sets are implemented and which are enabled by default. Done when you have a written answer from the vendor documentation or vendor response for each product, with the document version or date noted.

  4. Review the TLS and certificate configuration

    On each endpoint, inspect the TLS configuration to see which key exchange groups are enabled, in what order, and which ones the server accepts from clients. Confirm which group name appears in the handshake using a test client or the server's logs, and check whether any certificate in use carries an ML-KEM algorithm identifier. Compare the observed group names with the names listed in the governing requirement. Done when you have captured the negotiated group for each endpoint and recorded any mismatch against the requirement.

  5. Confirm the library selects the expected variant

    For each library or runtime that performs ML-KEM operations, run a small test that generates a key pair and performs an encapsulation, then check the key sizes against the expected values for the parameter set you intend to use. Confirm that the library's documented algorithm name, such as the OpenSSL KEM name for the intended variant, resolves to that variant after the version you deploy is installed. Record the library name, version and the test result. Done when every library in use has a passing test that shows the expected variant is selected, and any library that cannot select the required set is flagged for remediation.

  6. Reconcile findings and record the decision

    Compare the requirement, the inventory, the vendor documentation, the observed TLS groups and the library test results side by side. Where they agree, record the parameter set as confirmed. Where they disagree, record the conflict and assign it to an owner with a named decision maker, such as the security architect or the system owner. Do not treat any one source as overriding the others without a documented reason. Done when every system in the inventory has a confirmed, conflicting or unknown status, and the decision record is stored where your audit evidence is kept.

Common mix-ups between ML-KEM-512, ML-KEM-768 and other names

Most confusion in ML-KEM work comes from names that look alike, from hybrid group names that carry a parameter set number, and from key sizes that differ between the two halves of a key exchange. Each card below names one mix-up and what to check in your own configuration.

Kyber768 is not ML-KEM-768 by name alone

Kyber768 is the earlier name used before ML-KEM was standardized, and the two names are often used loosely as if they were interchangeable. Do not assume a system that says Kyber768 produces the same encapsulation key, ciphertext or wire encoding as ML-KEM-768. Check which name, standard version and draft number the product implements, and confirm compatibility with the version you run before you depend on it.

FIPS 203 page

A hybrid group name does not mean ML-KEM-512

A hybrid key exchange group such as X25519MLKEM768 carries the ML-KEM-768 parameter set in its name, and the published hybrid groups are built around ML-KEM-768 and ML-KEM-1024. Seeing a hybrid group in a configuration or vendor document does not tell you that ML-KEM-512 is in use. Read the group name exactly and confirm which ML-KEM component it contains.

RFC 10024

The 768 in X25519MLKEM768 is not the only size on the wire

The 768 in the group name identifies the parameter set, but the handshake carries more than one size. The client key share and the server key share differ in length, and the X25519 component adds its own bytes alongside the ML-KEM part. Do not size buffers, packet budgets or parsers from the group name alone. Check the key share lengths in the protocol draft for the exact group you deploy.

TLS ML-KEM draft

Encapsulation key and decapsulation key differ in size

The encapsulation key is the public value a peer uses to create a shared secret and a ciphertext, while the decapsulation key is the private value that recovers the secret from the ciphertext. The two are different lengths at each parameter set, and the decapsulation key is larger. Do not write a size check or a storage rule that treats them as one value. Confirm which key your component handles before you configure its storage.

RFC 9935

Support claims need the parameter set named

A statement that a product supports ML-KEM does not say whether it implements ML-KEM-512, ML-KEM-768, ML-KEM-1024 or all three. Libraries also differ in which sets they expose, and some expose only two. When a vendor or tender document makes a support claim, ask which parameter sets are included, which name the code uses, and which version delivers them.

Go 1.24 release notes

Questions people ask about ML-KEM-512 and ML-KEM-768

Are ML-KEM-512 and ML-KEM-768 the same thing?

No. They are two of the three parameter sets defined for the ML-KEM key encapsulation mechanism in FIPS 203, published by NIST as a final standard on 13 August 2024. ML-KEM-512, ML-KEM-768 and ML-KEM-1024 share the same algorithm design but use different sizes and security strengths. The differences show up on the wire and in the keys you store. ML-KEM-512 uses an 800-byte encapsulation key, a 1632-byte decapsulation key and a 768-byte ciphertext. ML-KEM-768 uses a 1184-byte encapsulation key, a 2400-byte decapsulation key and a 1088-byte ciphertext. Both produce a 32-byte shared secret, and the decapsulation key can be generated from a 64-byte seed. Because the sizes differ, a system configured for one set cannot assume it will accept the other without checking. Confirm which set each peer and library uses before you test interoperability.

Which is larger, and which is higher in NIST category?

ML-KEM-768 is the larger of the two in every size listed for it, and ML-KEM-768 is also the higher NIST security category. The liboqs project lists ML-KEM-512 at NIST level 1 and ML-KEM-768 at NIST level 3. NIST's evaluation criteria define category 1 as requiring attack cost comparable to or greater than key search on a 128-bit-key block cipher such as AES128, and category 3 as the same for a 192-bit-key cipher such as AES-192. FIPS 203 describes the three parameter sets as offering increasing security strength and decreasing performance, which is the ordering that applies here. The size growth is concrete: the encapsulation key is 384 bytes larger at ML-KEM-768, and the ciphertext is 320 bytes larger. Larger messages can matter on constrained links, in handshake packet sizes, or where message length limits apply. Check your protocol's size limits before you pick the larger set.

Does a standard or customer require ML-KEM-512 or ML-KEM-768 by name?

The sources listed on this page do not show a standard or customer requirement that names either parameter set in general terms. FIPS 203 defines all three sets as part of one standard. For national security systems, the NSA's CNSA 2.0 suite is a separate reference and is not a commercial obligation, so do not read it as requiring one set for your organization. Some profiles narrow the choice in practice. For example, the IETF's hybrid TLS group RFC 10024 defines hybrid groups only around ML-KEM-768 and ML-KEM-1024, with none around ML-KEM-512. The TLS draft draft-ietf-tls-mlkem-11 marks the standalone groups for ML-KEM-512 and ML-KEM-768 as N in its Recommended column, which means the IETF has made no statement about their suitability. Ask each customer or auditor which named set they expect and in which protocol, and get the answer in writing.

Do both parameter sets need to be deployed?

Usually not. A deployment normally selects one ML-KEM parameter set per protocol and per key, and the choice is made by the configuration of the peers rather than by the operating system. Running both can be useful during testing or where two groups of peers need different settings, but it adds configuration, key management and inventory work. Each set has its own TLS named group: MLKEM512 is 0x0200 and MLKEM768 is 0x0201 in draft-ietf-tls-mlkem-11, and the client and server key share sizes differ accordingly. If you offer both, a server must still select one per handshake, so record which group each service accepts. For a migration inventory, list every endpoint with its advertised group, so you can see whether one set or both are in use before you retire the older configuration.

Which libraries let me choose each parameter set by name?

The sources listed on this page show that OpenSSL and Go select the sets differently, and that support depends on version. In OpenSSL, the parameter sets are selected by algorithm name: EVP_KEM-ML-KEM-512, EVP_KEM-ML-KEM-768 and EVP_KEM-ML-KEM-1024 are documented as separate variants, added in OpenSSL 3.5. OpenSSL 3.5.0 was released on 8 April 2025, and its default TLS key shares are X25519MLKEM768 and X25519. Go 1.24 added a crypto/mlkem package that implements ML-KEM-768 and ML-KEM-1024 and does not list ML-KEM-512, so a Go service cannot select ML-KEM-512 through that package. Go 1.24 also enables the hybrid X25519MLKEM768 key exchange by default when Config.CurvePreferences is nil, and GODEBUG tlsmlkem=0 reverts that default. Check the exact library version you ship, because names and defaults change between releases.

What should I ask a vendor about ML-KEM-512 and ML-KEM-768?

Ask which parameter sets the product offers, which it enables by default, and which ones it can disable. Ask for the exact version and build, because support for ML-KEM names and defaults differs between releases. Ask whether the product uses ML-KEM-512, ML-KEM-768 or both in TLS, SSH or other protocols, and which named groups or algorithm identifiers it advertises. Ask how a customer can see and change the selected set in configuration, and whether a change requires a restart or a re-key. Ask whether any set appears in a product's certificate or validation listing, and for which module and version. Ask how the vendor tests interoperability with peers that use the other set. Written answers to these questions give you a checklist for the vendor review and for the inventory of your own endpoints. Confirm each answer against the version you intend to run.

How DeployOpen works on this

DeployOpen helps teams decide between ML-KEM-512 and ML-KEM-768 by scoping the choice against their own systems, then building and documenting the configuration in their infrastructure. Each step produces written material the security, platform and compliance teams can review.

How we scope

  • We list the systems and protocols in your environment that would carry an ML-KEM parameter set.
  • We record which key sizes and ciphertext sizes each candidate parameter set would add to your handshakes and stored keys.
  • Engagements are fixed-scope, and the scope, deliverables and timeline are agreed in writing before work starts.

How we build

  • We configure the chosen parameter set in the libraries and TLS stacks you run, such as OpenSSL or Go, and check the version supports it.
  • We set up test handshakes that confirm which named group is negotiated between your clients and servers.
  • We confirm the parameter set with each vendor component, since some advertise only ML-KEM-768 hybrid groups.

How we hand over

  • We document the parameter set chosen, the reasons recorded during scoping, and the configuration keys used.
  • We deliver test results showing the negotiated groups and key sizes observed in your environment.
  • We list open questions, such as standards status or vendor support, that your team should confirm before rollout.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • We retest the configuration when libraries or vendor components are upgraded to confirm the parameter set still applies.
  • We review new standards or vendor notices that affect your chosen parameter set and report what changes for your setup.

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.