Classic McEliece key and ciphertext sizes by parameter set

Classic McEliece public keys run from 261,120 to 1,357,824 bytes, with ciphertexts of 96 to 240 bytes, depending on the parameter set. This page lists each set's figures and their sources.

On this page

Classic McEliece public keys range from 261,120 to 1,357,824 bytes

If you are deciding whether a Classic McEliece public key fits your storage, memory or protocol limits, the first number to check is the public key, which ranges from 261,120 bytes to 1,357,824 bytes across the parameter sets listed in the liboqs documentation. The ciphertext is much smaller, between 96 and 240 bytes depending on the set and variant. The liboqs Classic McEliece page gives these figures for each parameter set, and the IETF draft-josefsson-mceliece-05 gives matching sizes for the mceliece6688128, mceliece6960119 and mceliece8192128 families, with the pc variants adding 32 bytes to the ciphertext.

This table is for teams sizing buffers and deciding whether large keys are workable for them. Start with the parameter set you plan to use, then compare its public key length against the largest message your protocol, certificate store or key storage will carry. The smallest set, 348864, has a public key of 261,120 bytes and a ciphertext of 96 bytes, while the largest, 8192128, has a public key of 1,357,824 bytes and a ciphertext of 208 bytes. Keep in mind that the liboqs page says the sets at NIST level 5 are the largest, so the public key is the figure most likely to set the limit for your design.

Before committing to a set, confirm the exact lengths against the version of your library or specification, since the liboqs page and the IETF draft are the sources for these numbers and may change between releases. The liboqs page also warns that the implementation may not be constant-time and uses large stack space that can cause failures in threads or constrained environments, so check your memory limits and test under your real thread configuration. The IETF draft states that it is not endorsed by the IETF and is a transcribed version of an ISO draft, so confirm which document your compliance or procurement team expects you to follow.

Classic McEliece public key, private key and ciphertext sizes in bytes

This table lists the public key, private key and ciphertext length in bytes for each Classic McEliece parameter set, with its NIST security level, so you can compare the large key sizes against the other key encapsulation options you are considering. Read each row across the three size columns, and note the pc variants, which keep the same key sizes but add 32 bytes to the ciphertext. Every shared secret in these sets is 32 bytes, so the ciphertext and key columns are the figures that drive buffer and bandwidth planning.

Parameter setNIST levelPublic key (bytes)Private key (bytes)Ciphertext (bytes)
348864 (and 348864f)Level 1261,1206,49296
460896 (and 460896f)Level 3524,16013,608156
6688128 (and 6688128f)Level 51,044,99213,932208
6688128pc (and 6688128pcf)Level 51,044,99213,932240
6960119 (and 6960119f)Level 51,047,31913,948194
6960119pc (and 6960119pcf)Level 51,047,31913,948226
8192128 (and 8192128f)Level 51,357,82414,120208
8192128pc (and 8192128pcf)Level 51,357,82414,120240

How to read the Classic McEliece size columns

Each row in this table is one Classic McEliece parameter set, and the columns give the sizes an implementation has to allocate for it. The public key column is the length in bytes of the key a peer receives and stores, and it is by far the largest value in every row, ranging from 261,120 bytes for set 348864 to 1,357,824 bytes for set 8192128. The secret key column is the length of the private key the holder keeps, and the ciphertext column is the length of the encapsulated value sent from one party to the other. The last column, the shared secret, is the 32-byte value both sides derive, and the liboqs documentation states that every Classic McEliece shared secret is 32 bytes. Because the key sizes are fixed per parameter set, a buffer sized from one row will not hold a key from another row, so read the row that matches the exact set your configuration names.

The liboqs figures are grouped by NIST security level: sets 348864 and 460896 are listed at levels 1 and 3, and the 6688128, 6960119 and 8192128 sets are listed at level 5. The f and pc suffixes are variants, and the sources name them that way without further explanation here, so confirm in the source document what a given suffix changes before you select it. The IETF figures come from draft-josefsson-mceliece-05, which its abstract describes as a transcribed version of the proposed ISO Classic McEliece draft, the draft that ISO standardized in June 2026 under ISO/IEC 18033-2:2006/Amd 2. The same draft states that it is not endorsed by the IETF, so treat its values as a transcription of the ISO text rather than an IETF standard. Where the IETF draft and liboqs list the same set, compare the values in both before relying on one.

The pc variants in the IETF draft keep the same public and private key sizes as their base sets but add 32 bytes to the ciphertext, giving 240, 226 and 240 bytes for the three sets. Before you size a ciphertext buffer, check which variant your peer uses, since the same key pair can produce a different ciphertext length. The liboqs page also warns that its Classic McEliece implementation may not be constant-time and that its large stack usage can cause failures in threads or constrained environments. Confirm both points against your own environment and the library version you deploy.

Where a 1,357,824-byte public key stops fitting

Classic McEliece public keys range from 261,120 to 1,357,824 bytes, which is far larger than the keys most protocols and devices were built to carry. The cards below cover the places where that size changes a design decision: storage and distribution, constrained devices, key exchange messages, and the limits in protocols and libraries that you must check before you commit.

Public key distribution and storage

The public key for parameter set 8192128 is 1,357,824 bytes, roughly 1.36 MB, and each of the other sets is at least 261,120 bytes. A key of this size cannot be pasted into a configuration file, sent in an email, or cached alongside other keys without deliberate planning. Decide where each recipient's public key will live, how it is distributed out of band, and how many copies your key stores and backups will hold. Multiply the key size by the number of recipients to estimate storage before rollout.

liboqs Classic McEliece page

Constrained devices and stack use

The liboqs documentation flags large stack usage for the Classic McEliece implementation, which may cause failures in threads or constrained environments. Key generation and decapsulation therefore need to be tested with the stack size your firmware or runtime actually allocates, not the desktop default. Also note that the same page warns the implementation may not be constant-time, so a device that handles secret keys in a hostile setting needs review beyond memory measurement. Confirm both points against the version you run.

liboqs Classic McEliece page

Ciphertext size in key exchange

The ciphertext is much smaller than the public key, between 96 and 240 bytes depending on the set and variant. That makes the encapsulation message the part of Classic McEliece that most resembles conventional key exchange. The large public key still has to reach the party that encapsulates, so the handshake design must account for where that key is held. Check how your protocol frames a key encapsulation message before assuming the small ciphertext keeps the exchange light.

Ciphertext, set 8192128
208 bytes
IETF draft-josefsson-mceliece-05

Protocol and buffer limits

Every protocol message, file format and API field that will carry a Classic McEliece key needs a maximum length, and many defaults are well below one megabyte. Check record size limits, request body caps, message buffers and any fixed-width fields in your stack before you attempt to send a key through them. Test with the largest set you plan to support, not the smallest, because a limit that passes for 261,120 bytes can still fail for 1,357,824. Record the limits you find so that the constraint is visible to the next team.

IETF draft-josefsson-mceliece-05

Parameter sets 348864, 460896, 6688128, 6960119 and 8192128

Parameter set 348864 sits at NIST level 1 and is the smallest of the five sets listed here. The liboqs documentation gives its public key as 261,120 bytes, its secret key as 6,492 bytes and its ciphertext as 96 bytes. The set is listed in liboqs as 348864 and 348864f, so an f variant exists for this set. The liboqs page also states that all Classic McEliece shared secrets are 32 bytes.

  • NIST level: level 1, as recorded by liboqs.
  • Public key: 261,120 bytes (liboqs).
  • Secret key: 6,492 bytes (liboqs).
  • Ciphertext: 96 bytes (liboqs).
  • Variants: 348864 and 348864f are both listed in liboqs. The sources here do not give a pc variant for this set.

Before you size buffers, check the byte counts against the draft or standard your implementation follows, since these figures come from liboqs.

Steps to confirm the Classic McEliece size you need

This sequence turns the published Classic McEliece figures into a verified size for your system. It pins down the exact parameter set and variant, checks the key and ciphertext against your buffers and message limits, and confirms that the large keys work on your target hardware. The result is a size you can defend to your security, platform and procurement teams.

  1. Identify the exact parameter set and variant

    Start by naming the precise Classic McEliece parameter set in use, such as 348864, 460896, 6688128, 6960119 or 8192128, and whether it is the standard form or the f variant. The sizes differ between sets and between the pc variants of the 6688128, 6960119 and 8192128 sets, so a general label is not enough. Record the identifier as it appears in your library or specification. The step is complete when the identifier, the NIST level it targets and the variant are written in your configuration record.

  2. Look up the published sizes for that set

    Using the identifier from the previous step, pull the public key, private key and ciphertext lengths from the tables on this page. Note that the shared secret is 32 bytes for every Classic McEliece set according to the liboqs documentation. Check the figure against the IETF draft and the liboqs page, since the two sources can differ on details such as ciphertext length for the pc variants. The step is complete when each length is written down with the source it came from.

  3. Check public key size against buffer limits

    Compare the public key length for your chosen set with every buffer that will hold it, including fixed-size fields in protocol messages, storage slots, certificate or token fields and memory allocated on constrained devices. Public keys for these sets are large, running from about 261 KB to about 1.36 MB by the published figures, so a buffer sized for a classical key will fail. Confirm the limit in each component and record any component that cannot hold the key. The step is complete when every buffer on the path is either confirmed large enough or flagged for change.

  4. Check ciphertext and message size limits

    Compare the ciphertext length for your set against the message limits in your protocol, gateway, load balancer, proxy and any packet size rules on the network path. The ciphertexts here are short compared with the public key, but a pc variant adds 32 bytes, so the figure should be checked for each variant you use. Confirm the largest message your system carries that includes the ciphertext, and check it against the limit of each device it crosses. The step is complete when a written note records the largest message size and the limit it was checked against.

  5. Test large key handling on target hardware

    Run a key generation, encapsulation and decapsulation test on the same hardware and runtime your product uses. The liboqs documentation warns that the implementation may not be constant-time and that its large stack usage can cause failures in threads or constrained environments, so include threaded workloads and any low-memory device in the test. Record the outcome of each operation, any stack or memory errors, and how the results change when the test runs in parallel. The step is complete when the test log shows that every operation succeeded on each target.

  6. Ask the library or vendor which document their figures follow

    Ask the library maintainer or vendor which specification their sizes are taken from, and whether that specification is the IETF draft, the ISO text or another document. The IETF draft states that it is not endorsed by the IETF and that it transcribes a proposed ISO draft, so the source of each figure matters. Ask also whether the figures apply to the exact build and version you run, and whether the pc variants are covered. Get the answer in writing. The step is complete when the source document, version and build are recorded against your figures.

What these Classic McEliece figures do not tell you

The byte counts on this page describe sizes only. The sources listed here give public key, private key and ciphertext lengths for each parameter set, and a 32-byte shared secret, but they do not give speed, cycle counts, memory use or latency. A key that is 1,044,992 bytes or larger can have a very different cost in key generation, encapsulation and decapsulation than a smaller key, and those costs are not stated here. Before you size a server, a device or a handshake budget, check speed and memory figures in a separate source, such as the performance pillar of this section or the implementation's own benchmark output on your hardware.

The liboqs page carries a warning that matters for deployment. It states that the Classic McEliece implementation may not be constant-time, and it flags large stack usage that may cause failures in threads or constrained environments. A constant-time property is a security property, not a size property, so a size table cannot tell you whether a given build leaks timing information. Ask the library maintainers, or the vendor shipping your build, whether the version you run has been checked for constant-time behavior, and test stack depth in the threads and embedded targets you actually use.

The IETF draft, draft-josefsson-mceliece-05, is a transcribed version of the proposed ISO Classic McEliece draft, and the draft itself states that it is not endorsed by the IETF. The figures on this page for the 6688128, 6960119 and 8192128 sets are consistent with that draft's sizes, but consistency between sources does not make either one an IETF standard. Encoding, library version and measurement conditions can also change what a reader sees, including whether a length is reported with or without a header, and which variant (plain or the f form, or a pc variant) is being measured. Confirm the exact sizes against the version you deploy, and check the standard text, the library release notes and your own test output for anything these sources do not state.

Classic McEliece sizes: common questions answered

How large is the Classic McEliece public key?

The public key is the largest element of Classic McEliece, and it depends on the parameter set. The liboqs documentation lists 261,120 bytes for 348864 (NIST level 1), 524,160 bytes for 460896 (NIST level 3), and between 1,044,992 and 1,357,824 bytes for the level 5 sets 6688128, 6960119 and 8192128. The 348864 set has the smallest public key, but it is still roughly a quarter of a megabyte. Buffers, storage and any protocol message that carries the key need to be sized for that length. Confirm the figures against the parameter set and edition you run, since the f variants share the same listed sizes.

How big is a Classic McEliece ciphertext?

The ciphertext is far smaller than the public key. The liboqs documentation lists 96 bytes for 348864, 156 bytes for 460896, 208 bytes for 6688128, 194 bytes for 6960119 and 208 bytes for 8192128. The draft IETF specification also lists pc variants (6688128pc, 6960119pc and 8192128pc) that add 32 bytes to the ciphertext, giving 240, 226 and 240 bytes respectively. Because the public key dominates the exchange, the ciphertext is usually not the constraint. Check which variant your library exposes before you fix a length in a message format.

What is the shared secret length for Classic McEliece?

The liboqs documentation states that every Classic McEliece shared secret is 32 bytes, regardless of parameter set. The IETF draft gives the same 32-byte shared secret for mceliece6688128 and its variants. A fixed 32-byte output means that key derivation code can use one length across all sets. The shared secret is what the two parties derive after decapsulation, and it is separate from the public key and ciphertext sizes covered elsewhere on this page. Confirm the output length in your library's API before you rely on it.

Are Classic McEliece key and ciphertext sizes standardized?

The sizes are published in several places, but the status of each source differs. The liboqs documentation lists the sizes for each parameter set. The IETF draft mceliece-05 (dated 23 June 2026) transcribes the proposed ISO Classic McEliece draft and gives matching public key, private key and ciphertext lengths. That draft states that the ISO standard is ISO/IEC 18033-2:2006/Amd 2, published in June 2026, and that the IETF does not endorse the draft. Treat the draft as a reference that tracks ISO, and confirm the current text of the ISO amendment and the sizes your library implements before you commit to them.

How does the 348864 set compare with the larger Classic McEliece sets?

The 348864 set is the smallest in this family and sits at NIST level 1. The liboqs documentation lists its public key at 261,120 bytes, against 524,160 bytes for 460896 (level 3) and about 1.0 to 1.4 million bytes for the level 5 sets. Its ciphertext is also the shortest, at 96 bytes. The larger sets offer higher NIST security levels in exchange for larger keys. Choose the set based on the security level your policy requires and the storage and bandwidth your environment can carry, and verify the trade-off against your own requirements.

Does the large Classic McEliece key cause operational problems?

The liboqs documentation warns that its Classic McEliece implementation may not be constant-time and that it uses a large amount of stack, which may cause failures in threads or constrained environments. The main operational risk is therefore not only the size of the key but also whether the stack and runtime fit your target. Test the chosen set in the environment where it will run, including threads, embedded devices and any sandbox with a fixed stack limit. Ask your implementation provider whether they have checked constant-time behavior for your build.

Can we size Classic McEliece buffers from these figures alone?

Yes, for the public key, private key, ciphertext and shared secret lengths, the listed figures give the byte counts you need for buffers. Size each buffer against the largest value for the parameter set you choose, and confirm the figures against the library version you ship, because different editions and variants can differ. The figures do not cover stack use or runtime memory, which the liboqs documentation flags separately. Include those in your sizing review before you finalize buffer and thread limits.

Where a Classic McEliece public key travels

The diagram follows a Classic McEliece key pair from generation on the key holder's side, through publication of the public key to a client, to the client's encapsulation step, which returns a ciphertext of 96 to 240 bytes to the key holder for decapsulation. The public key is the large item, between about 261 KB and 1.36 MB depending on parameter set, so it is the part that most affects storage, distribution and buffer planning. The ciphertext is small by comparison. Check the public key size against the parameter set you deploy, and confirm the ciphertext length for any pc variant you use, since the sources list those separately.

Illustrative flow of the Classic McEliece public key, private key and ciphertext between parties.

How DeployOpen works on this

DeployOpen treats the public key, private key and ciphertext lengths on this page as a planning input before any deployment decision. We scope the work against the sizes in the sources listed here, then build, document and hand over the configuration for the parameter set your environment can support.

How we scope

  • We record which Classic McEliece parameter sets your systems would use and where their public keys would be stored or transmitted.
  • We map buffer, memory and packet limits in your environment against the public key sizes listed here, so constraints are known before build starts.
  • Scope, deliverables and timelines are agreed in writing before work begins, and each size used in the plan is tied to its source document.

How we build

  • We configure the chosen parameter set in a test environment and check that buffers and stacks handle the stated key and ciphertext lengths.
  • We test for the stack-usage and thread failure risks flagged by the liboqs documentation, using load and constrained-environment runs.
  • We confirm that the implementation you select matches the version and variant you name, since the sources list separate f and pc forms with different ciphertext lengths.

How we hand over

  • We deliver a configuration record listing each parameter set in use, with its public key, private key and ciphertext lengths and the source for each figure.
  • We document the constant-time caveat from the liboqs documentation and record where your team should review side-channel exposure.
  • We hand over test results and buffer settings so your engineers can reproduce the sizing decisions without DeployOpen present.

How we support

  • Ongoing support and upgrades are available as a retainer, including re-checking sizes when a referenced draft or standard changes.
  • We re-test the configuration when the implementation, parameter set or runtime environment is updated in your systems.
  • Ask any quote to state which parameter sets, implementation versions and test scope it covers, so the sizing work can be checked line by line.

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.