ML-KEM key and ciphertext sizes by parameter set

ML-KEM public key, secret key, ciphertext and shared secret sizes in bytes for each parameter set, with the documents they come from and where the sizes matter for buffers and TLS messages.

On this page

ML-KEM key and ciphertext sizes for buffer and message planning

If you are sizing buffers or handshake messages, the figures you will use most are for ML-KEM-768: a public key (encapsulation key) of 1184 bytes and a ciphertext of 1088 bytes. Across the three parameter sets, public keys range from 800 bytes (ML-KEM-512) to 1568 bytes (ML-KEM-1024), and ciphertexts range from 768 bytes to 1568 bytes. The liboqs ML-KEM page lists these values for each set, and the IETF TLS ML-KEM draft gives the same encapsulation key and ciphertext lengths alongside the NamedGroup codepoints that TLS uses to identify each set (draft-ietf-tls-mlkem-11 assigns 0x0200, 0x0201 and 0x0202 to ML-KEM-512, ML-KEM-768 and ML-KEM-1024 respectively).

This table is for engineers allocating receive and send buffers and estimating bandwidth, and for reviewers checking those figures against the sources. It covers only key and ciphertext sizes: the public key and ciphertext lengths that appear on the wire, plus the private key and shared secret lengths as the liboqs page reports them. For ML-KEM-768 the liboqs page lists a secret key of 2400 bytes and a shared secret of 32 bytes. The secret key is never sent on the wire, so it matters for storage planning, not for message sizing. Confirm the lengths against your library version before fixing buffer sizes, because the TLS draft is an Internet-Draft still in progress and may change.

Two points to check when you move from these figures to a deployment. First, a TLS key share carries the public key or ciphertext plus any group-specific framing, so the total message growth is not identical to the raw key length; the hybrid key share page covers that arithmetic. Second, the FIPS 203 standard is the reference for the parameter sets themselves, and NIST's page for it records the final version dated 13 August 2024. Read the standard directly, and use the liboqs and IETF figures as the byte counts for implementation.

ML-KEM public key, secret key, ciphertext and shared secret sizes in bytes

This table lists the public key, secret key, ciphertext and shared secret lengths for each ML-KEM parameter set, with the claimed NIST security level, as the liboqs project documents them. Read each row as a fixed set of lengths: a buffer sized for one set will not hold another set's keys or ciphertexts. The main takeaway is that the shared secret stays at 32 bytes across all three sets, while the public key, secret key and ciphertext grow with the security level.

Parameter setClaimed NIST levelPublic key (bytes)Secret key (bytes)Ciphertext (bytes)Shared secret (bytes)
ML-KEM-5121800163276832
ML-KEM-768311842400108832
ML-KEM-1024515683168156832

How to read the ML-KEM size figures and their sources

The size figures in the table below are lengths in bytes for three values that ML-KEM produces. The public key (the encapsulation key) and the ciphertext are the two values that travel between the parties: the sender of the key sends the public key, and the party that encapsulates a secret sends back the ciphertext. Their sizes therefore matter for handshake messages, packet limits and bandwidth. The secret key (the decapsulation key) never leaves the party that generated it, so its size matters for storage and memory on the device that holds it, not for the wire. The shared secret is the output length of a successful encapsulation and decapsulation, and it is the value that feeds the symmetric keys derived afterwards. For each parameter set, these lengths are fixed, so a buffer sized from the table will hold any valid value of that set.

Two sources support the figures in this table, and they play different roles. The liboqs ML-KEM page lists the byte lengths for ML-KEM-512, ML-KEM-768 and ML-KEM-1024, gives the claimed NIST level for each set, and names FIPS 203 as its only specification reference. The claimed level is the project's own statement, so read it as the project's claim rather than as an independent determination. The byte lengths are also given in the IETF draft for TLS, which lists the encapsulation key and ciphertext for each set. Because that draft is an Internet-Draft still in progress, treat it as a working reference, not a final standard.

The governing document is FIPS 203, which NIST published as a final standard on 13 August 2024. It defines the three parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024 and describes them as offering increasing security strength with decreasing performance. The NIST page also records an earlier draft dated 24 August 2023 and a planning note dated 17 November 2025 that points to a separate errata spreadsheet, so confirm the current text and any errata against the NIST page before you size production buffers. Check the lengths in your own library version against FIPS 203 as well, since the figures here come from the sources listed and do not replace a check of the code you run.

ML-KEM-512, ML-KEM-768 and ML-KEM-1024 figures and where each is named

ML-KEM-512 is the smallest of the three ML-KEM parameter sets. The liboqs project documentation lists it with claimed NIST level 1 and gives a public key of 800 bytes, a secret key of 1632 bytes, a ciphertext of 768 bytes and a shared secret of 32 bytes. In the TLS ML-KEM draft, its encapsulation key is 800 bytes and its ciphertext is 768 bytes, and it uses NamedGroup codepoint 0x0200.

  • Public key: 800 bytes, as listed by liboqs and in the TLS draft.
  • Secret key: 1632 bytes, as listed by liboqs. The TLS draft does not give a secret key length.
  • Ciphertext: 768 bytes, as listed by liboqs and in the TLS draft.
  • Shared secret: 32 bytes, as listed by liboqs.
  • Where it is named: FIPS 203 defines this set, and the TLS draft assigns it codepoint 0x0200.

Before you size a buffer from these values, confirm the lengths against FIPS 203 and the release of your TLS library, because the liboqs page is a project document and not the standard itself.

Where ML-KEM ciphertext and key sizes affect buffers and handshakes

ML-KEM sizes are fixed per parameter set, so the same byte counts recur wherever a key or ciphertext is carried, stored or buffered. The cards below cover the places where those lengths change message sizes, memory budgets and key derivation inputs, and what to confirm in each.

TLS key share messages

In TLS, the encapsulation key travels in the client's key share and the ciphertext travels back in the server's key share. The draft gives 800 and 768 bytes for ML-KEM-512, 1184 and 1088 bytes for ML-KEM-768, and 1568 and 1568 bytes for ML-KEM-1024, under NamedGroup codepoints 0x0200, 0x0201 and 0x0202. A larger ClientHello can push the handshake past a packet or middlebox limit, so confirm the parameter set and group your endpoints negotiate before sizing record buffers.

TLS ML-KEM draft

Receive buffers on constrained devices

Embedded firmware often allocates fixed buffers sized to the largest message it expects. The secret key is the largest of the three values for every set, so a device that holds a decapsulation key needs room for it in addition to the ciphertext and public key. Check the secret key length for the set you deploy, because the liboqs page lists 1632, 2400 and 3168 bytes. Confirm the figures against the FIPS 203 text before fixing buffer constants in code.

Secret key storage

Secret keys are the largest object in ML-KEM, reaching 3168 bytes for ML-KEM-1024. Storage design, including hardware security modules, key vaults, file permissions and backups, must hold a key of that size without truncation. Ask each platform whether it imposes a size limit on stored secrets, and test a full round trip of store, load and decapsulate on the target system.

Shared secret for key derivation

The shared secret is 32 bytes for all three parameter sets, regardless of which set is used. FIPS 203 says the secret can support symmetric encryption and authentication, so downstream key derivation functions receive a fixed-length input. Confirm that your key schedule expects 32 bytes from ML-KEM, and that hybrid constructions combine it with the classical secret in the order your protocol specifies.

Choosing a parameter set by size

The FIPS 203 page says the three sets offer increasing security strength with decreasing performance. Larger sets cost more bytes in every message and every stored key, so the size difference across the three sets is a planning input as well as a security choice. Record the parameter set in configuration so that buffer sizes and certificates can be checked against it during review.

FIPS 203 page

Checking sizes against the standard

The sizes above come from the liboqs documentation and the TLS draft, which may change between revisions. The draft is an Internet-Draft with intended status Informational and an expiry date of 21 March 2027, and the FIPS 203 page records an errata spreadsheet. Before release, compare your constants with the current FIPS 203 text and the draft revision you implement, and retest after any update.

liboqs ML-KEM page

What the ML-KEM size figures do not tell you

The figures on this page are the lengths that the cited sources give for each ML-KEM parameter set: the public key (encapsulation key), private key (decapsulation key), ciphertext and shared secret, in bytes. The liboqs documentation lists these lengths for ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and the TLS draft gives matching encapsulation key and ciphertext lengths for the same sets. They are the values to size fixed buffers against. They are not the number of bytes that leave a host on the wire. Before you size a message, you need the full encoding and framing around it, and the sources listed on this page do not quantify those overheads. Check the lengths your own library returns at runtime, and check the encoding rules in the protocol that carries the key, since a length prefix, a group identifier or a surrounding extension can add bytes that these tables leave out.

The TLS figures carry an additional caveat. The ML-KEM TLS document cited here is draft-ietf-tls-mlkem-11, an active Internet-Draft with intended status Informational, published on 17 September 2026 and set to expire on 21 March 2027. It is not a final specification, and its codepoints and encodings can change before publication. The NamedGroup codepoints it lists (0x0200, 0x0201 and 0x0202) should be confirmed against the version your TLS stack implements, not copied from this page. Readers planning a deployment should confirm which draft revision their TLS library tracks and whether that library's release notes name a specific draft number.

Finally, a figure in a table is not a statement about any product. The FIPS 203 standard defines the parameter sets, but whether a library, device or appliance implements them, in which version, and with which encodings, is a question for that vendor's or project's documentation. The sources listed on this page do not give performance comparisons between the parameter sets, so none are offered here; the FIPS 203 page says only that the sets trade increasing security strength for decreasing performance. Before you commit a buffer size to a release, confirm the lengths against that release's documentation, and use your own measurements for speed and memory.

Questions about ML-KEM key and ciphertext sizes

How big is an ML-KEM-768 public key in bytes?

An ML-KEM-768 public key is 1184 bytes. The liboqs project documentation lists this value for ML-KEM-768, which it gives a claimed NIST level 3. The IETF TLS ML-KEM draft gives the same 1184-byte encapsulation key for ML-KEM-768. Engineers sizing a buffer for this key should allocate at least 1184 bytes, then confirm the figure against the version of liboqs or the TLS library they run, since sizes can change between releases. The FIPS 203 standard is the normative reference for the parameter set, and the liboqs page names it as the only specification reference.

How big is an ML-KEM-768 ciphertext in bytes?

An ML-KEM-768 ciphertext is 1088 bytes. The liboqs project documentation lists this value, and the IETF TLS ML-KEM draft gives the same 1088-byte ciphertext for ML-KEM-768 under NamedGroup codepoint 0x0201. Because the ciphertext is sent by the encapsulating party, this length affects the size of the message that carries it. Confirm the figure against your library version before setting message limits or buffer sizes, and check the FIPS 203 standard for the normative definition.

Which ML-KEM parameter set has the largest secret key?

ML-KEM-1024 has the largest secret key, at 3168 bytes. The liboqs project documentation lists secret key lengths of 1632 bytes for ML-KEM-512, 2400 bytes for ML-KEM-768 and 3168 bytes for ML-KEM-1024. The FIPS 203 page states that the three parameter sets offer increasing security strength with decreasing performance, so the larger key size is one part of that trade-off. Confirm these lengths against the version of the library you deploy.

What is the ML-KEM shared secret length in bytes?

The shared secret is 32 bytes for each of the three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The liboqs project documentation lists this value for all three. FIPS 203 describes ML-KEM as a key-encapsulation mechanism that two parties can use to establish a shared secret over a public channel, and that secret can then support symmetric encryption and authentication. Confirm the 32-byte length against your library version and the FIPS 203 standard before relying on it in a protocol design.

Does the TLS ML-KEM draft give the same sizes as liboqs?

For the three public key and ciphertext lengths that the sources list, the IETF TLS ML-KEM draft and the liboqs documentation agree. The draft gives an encapsulation key of 800 bytes and a ciphertext of 768 bytes for ML-KEM-512, 1184 and 1088 bytes for ML-KEM-768, and 1568 and 1568 bytes for ML-KEM-1024. The draft is draft-ietf-tls-mlkem-11, published on 17 September 2026 as an Internet-Draft with intended status Informational, and it expires on 21 March 2027, so it is not a final specification. Confirm the sizes against the draft revision and the liboqs version your deployment uses, since both can change.

Which document defines the ML-KEM parameter sets?

NIST's FIPS 203 defines ML-KEM and its three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024. NIST published it as a final standard on 13 August 2024, and the FIPS 203 page records an earlier draft dated 24 August 2023. The FIPS 203 page also carries a planning note dated 17 November 2025 that points to a separate errata spreadsheet, so check that spreadsheet before relying on any figure. The liboqs documentation names FIPS 203 as the only specification reference for these parameter sets.

Which ML-KEM sizes should I confirm before I deploy?

Confirm the public key, secret key, ciphertext and shared secret lengths for the exact parameter set you use, against the version of each library in your stack. The sources listed on this page give these lengths for liboqs and the TLS draft, but the sources do not establish that every library, version or build produces these values. Check your library's own documentation, run a test that prints the lengths it returns, and compare the results with FIPS 203 and the draft revision you are targeting. Record the version and the date of each check, because the TLS draft is still an active Internet-Draft.

How to use these sizes before you size a buffer

This sequence takes the three ML-KEM parameter sets from the reference tables to a checked buffer and message-size plan for your own product. Each step ends with an output you can verify, so the lengths you size against come from the standard and your implementation rather than from memory.

  1. Confirm the parameter set your product uses

    Find out which ML-KEM variant your product negotiates or configures: ML-KEM-512, ML-KEM-768 or ML-KEM-1024. The choice usually comes from your security requirements, your product's configuration, or a named group in a protocol such as TLS. Ask the team that owns the component to point you to the exact string or identifier it uses. The step is done when you can write down one parameter set name for each place where a key or ciphertext crosses a boundary in your system.

  2. Look up the public key, secret key and ciphertext lengths

    For the parameter set you confirmed, read the public key, secret key, ciphertext and shared secret lengths in bytes from FIPS 203, which NIST published as a final standard on 13 August 2024. The liboqs ML-KEM page lists the same parameter sets with their byte lengths and names FIPS 203 as the specification reference, so you can use it as a cross-check. Record each length in a table with its source. The step is done when every length you need has a source attached.

  3. Check the lengths against the protocol drafts

    If your product sends these values inside TLS, compare the encapsulation key and ciphertext lengths with the TLS ML-KEM draft, draft-ietf-tls-mlkem-11, which lists each parameter set with its NamedGroup codepoint. The draft is an active Internet-Draft with intended status Informational, so treat it as a moving reference and confirm the revision your peers implement. The step is done when your table matches the draft for the parameter sets you use, or when you have noted each mismatch for follow-up.

  4. Size buffers and message limits from those numbers

    Use the recorded byte lengths to size receive buffers, send buffers and any fixed-length fields in your message formats. Add the encapsulation key length and the ciphertext length for each handshake message you build, and keep the secret key length separate because it is stored locally and not sent. Where a parser or framing layer enforces a maximum message size, confirm your limits leave room for these fields. The step is done when each buffer and limit in your design cites a specific length in bytes from the previous steps.

  5. Test the sizes against your implementation

    Run your build with the chosen parameter set and capture the key and ciphertext lengths your implementation actually produces and accepts. Compare them with the values in your table and investigate any difference before going further. Test the edge of your buffers too, including a handshake that carries the largest message your design allows. The step is done when the measured lengths match your table for every parameter set in use, and any deviation has a recorded explanation.

  6. Ask the vendor which version and encoding they follow

    Send your vendor or library maintainer a written question asking which version of FIPS 203 or which draft revision their ML-KEM implementation follows, and how it encodes keys and ciphertexts on the wire. Ask for the exact release identifier and for the parameter set names it supports. Compare the answer with the lengths in your table, and confirm compatibility with the versions your peers run, since sizes that match on paper can still differ between revisions. The step is done when you have a written answer from the vendor that matches your recorded lengths.

How DeployOpen works on this

DeployOpen works from the sizes each ML-KEM parameter set fixes in bytes, then checks those figures against the buffers, packet paths and key stores in your own environment. The written scope records which parameter set each system uses, where its keys and ciphertexts are handled, and which limits must be confirmed before any change is made.

How we scope

  • We list every system that will carry ML-KEM public keys, ciphertexts or private keys, and the parameter set each one uses.
  • We record the byte lengths each parameter set fixes, from the sources listed on this page, for the buffers and fields in scope.
  • Engagements are fixed-scope, and the written scope names the systems, deliverables and timelines agreed before work starts.

How we build

  • We size receive buffers, message fields and key storage against the public key, private key and ciphertext lengths in your environment.
  • We confirm which ML-KEM encapsulation key and ciphertext lengths your TLS stack and libraries use, including the draft version they follow.
  • We test the configured components with real key and ciphertext sizes to find truncation, parsing errors and buffer overruns before go-live.

How we hand over

  • We deliver a sizing record that lists each system, parameter set, byte length and the component that enforces it.
  • We document the configuration changes made, the test results and any open items that the owning team must confirm.
  • We agree handover of the documentation and sizing record so your own engineers can maintain the figures after the engagement.

How we support

  • Ongoing support and upgrades are available as a retainer, for teams that need sizing checked again after library or protocol updates.
  • We can rerun the size tests when a parameter set, library version or TLS draft changes, and record the new figures.
  • Continuous testing is available under the same retainer, so buffer and packet checks keep pace with your deployments.

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.