What is Module-LWE (Module Learning With Errors)?

Module-LWE is the hard problem that the NIST standards ML-KEM and ML-DSA rely on for their security. This page explains where the term appears and what it means for a migration.

On this page

What is Module-LWE and why does it appear in post-quantum standards?

You most likely met Module-LWE, or MLWE, in a NIST standard, a vendor's post-quantum statement, a tender question or an audit request. Module-LWE is the computational problem that the security of ML-KEM (FIPS 203) and ML-DSA (FIPS 204) is related to. Both are NIST's module-lattice-based standards: FIPS 203 is the Module-Lattice-Based Key-Encapsulation Mechanism Standard, and FIPS 204 is the Module-Lattice-Based Digital Signature Standard. NIST published both as final standards on 13 August 2024, and the Federal Register notice of 14 August 2024 says they took effect that day. The term appears most often in the specifications themselves, in IETF documents that carry these algorithms into X.509 certificates and TLS, in library and product documentation, and in procurement or vendor-risk questions about which algorithm a product uses.

For a practitioner, the useful point is where the term sits in the chain of references. A product that claims ML-KEM support is relying on a scheme whose hardness basis is Module-LWE, and a product that claims ML-DSA support is relying on a scheme that IETF's RFC 9958 names as resting on Module LWE in its Section 10.2. The Internet-Draft draft-connolly-cfrg-ml-dsa-security-considerations-02, dated 19 March 2026, describes ML-DSA as based on structured lattices and reducing to the Module Learning with Errors problem. Module-LWE is therefore the shared root behind the two lattice standards, while FIPS 205 (SLH-DSA) comes from SPHINCS+ and is not a lattice scheme. Lattice-based is not the same claim as every lattice-based product being compatible with every other, so confirm the exact algorithm names and versions a vendor implements.

Which names and abbreviations refer to Module-LWE

This table lists the full name, abbreviation, citing standards and parameter-set names that practitioners meet when reading about Module-LWE. Use it to match a term in a specification or vendor answer to the underlying hardness problem. The main takeaway is that Module-LWE is the problem, while ML-KEM and ML-DSA are the standardized schemes built on it, and the Kyber and Dilithium names are earlier submission names.

Name or abbreviationWhat it refers toWhere it appears
Module Learning With Errors (Module-LWE)The computational problem that the security of ML-KEM and ML-DSA is related to, according to the sources on this page.NIST FIPS 203 and FIPS 204 documentation, and IETF documents on lattice schemes
MLWEAbbreviation for Module Learning With Errors, used in IETF documents.RFC 9958 (Section 10.2), where it is named as the hardness basis for ML-DSA
ML-KEMThe key-encapsulation scheme standardized in FIPS 203, whose security is related to Module-LWE.NIST FIPS 203, RFC 9935 and RFC 10024 for X.509 and TLS use
ML-DSAThe digital signature scheme standardized in FIPS 204, which the cited IETF documents say reduces to Module-LWE.NIST FIPS 204, RFC 9881, RFC 9958 and the ML-DSA security considerations draft
ML-KEM-512, ML-KEM-768, ML-KEM-1024The three parameter sets of ML-KEM defined in FIPS 203.NIST FIPS 203, and TLS named groups such as X25519MLKEM768 and SecP384r1MLKEM1024 in RFC 10024
ML-DSA-44, ML-DSA-65, ML-DSA-87The three parameter sets of ML-DSA defined in FIPS 204.NIST FIPS 204, and X.509 object identifiers in RFC 9881
Kyber (CRYSTALS-Kyber)An earlier submission name for the scheme standardized as ML-KEM. It is not a separate name for Module-LWE.CRYSTALS-Kyber project pages and the Federal Register notice tying FIPS 203 to the submission
Dilithium (CRYSTALS-Dilithium)An earlier submission name for the scheme standardized as ML-DSA. It is not a separate name for Module-LWE.The Federal Register notice tying FIPS 204 to the submission

Where practitioners meet Module-LWE in specifications and products

Module-LWE is the hardness problem named in several post-quantum specifications, so it shows up across standards, certificate profiles, protocol key shares and product defaults. The cards below list the places a reviewer is most likely to encounter it and what each source says about the term.

NIST FIPS 203 and FIPS 204

NIST's final standards name Module-LWE as the basis of their security. NIST says the security of ML-KEM (FIPS 203) relates to the computational difficulty of the Module Learning with Errors problem, and RFC 9958 names Module LWE as the hardness basis for ML-DSA (FIPS 204). FIPS 203 and FIPS 204 were both published as final standards on 13 August 2024. Check which parameter set a product uses, since FIPS 203 defines ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and FIPS 204 defines ML-DSA-44, ML-DSA-65 and ML-DSA-87.

FIPS 203 text

X.509 certificate profiles in RFC 9881 and RFC 9935

Certificate profiles carry Module-LWE schemes as algorithm identifiers. RFC 9881 defines ML-DSA in X.509 certificates and CRLs, and RFC 9935 defines X.509 conventions for ML-KEM. When reviewing a certificate, confirm the algorithm OID matches the parameter set you expect. RFC 9935 also says that if the keyUsage extension is present, keyEncipherment must be the only key usage set.

RFC 9881 text

TLS hybrid key shares in RFC 10024

Hybrid key shares combine an ML-KEM operation with a classical one. RFC 10024 defines X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 for TLS 1.3. Its X25519MLKEM768 client share is 1216 bytes, made up of a 1184-byte ML-KEM encapsulation key plus 32 bytes of X25519, so capacity planning for handshakes should account for the larger message size. Confirm which named groups your TLS stack negotiates.

RFC 10024 text

OpenSSH 10.0 and OpenSSL 3.5 defaults

Two widely deployed tools now ship Module-LWE-based key agreement by default. OpenSSH 10.0, released on 9 April 2025, made mlkem768x25519-sha256 the default key agreement algorithm. OpenSSL 3.5.0, dated 8 April 2025, changed its default TLS key shares to offer X25519MLKEM768 and X25519. Check your deployed versions, because a default change applies only when those versions are in use and the defaults have not been overridden in configuration.

OpenSSH release notes

Vendor and tender documents

Procurement and security questionnaires ask which parameter sets a product uses. Vendor documents and tender responses often name ML-KEM or ML-DSA without stating the parameter set or the module they rely on. Ask the vendor to state the exact algorithm, parameter set and implementing version, and whether the product is hybrid or uses the post-quantum algorithm alone. Compare their answer against the standards cited above rather than accepting the name alone.

FIPS 204 text

How Module-LWE is used in ML-KEM and ML-DSA

Module Learning With Errors (Module-LWE, or MLWE) is the hard problem that the two main NIST post-quantum standards are built on. The NIST page for FIPS 203 says the security of ML-KEM is related to the computational difficulty of the Module-LWE problem. ML-KEM is the key encapsulation mechanism that establishes shared keys, and it is the algorithm you will see in TLS key shares and SSH key exchange. The same hardness basis carries over to ML-DSA, the digital signature standard in FIPS 204, which RFC 9958 names as relying on MLWE in its Section 10.2. For a planning team, the practical point is that a single underlying problem supports both the key exchange and the signing side of the migration, so an assessment of one family of lattice schemes covers both roles.

The lineage matters when you read older documents. The CRYSTALS-Kyber project page says the CCA-secure Kyber KEM is built on a CPA-secure cryptosystem based on Module-LWE, and FIPS 203 traces ML-KEM back to the CRYSTALS-KYBER submission. Similarly, the Federal Register notice of 14 August 2024 states that FIPS 204 originates from CRYSTALS-Dilithium. When a vendor or tender says "Kyber" or "Dilithium," the question to ask is which final standard and parameter set is meant, since the submission names and the standardized names do not always match. The Kyber project page also recommends Kyber-768 with a hybrid mode alongside elliptic-curve Diffie-Hellman, which is a deployment choice, not a statement about MLWE itself.

What to confirm in a product review is which algorithm and parameter set the product actually uses and whether the hardness claim is stated for that exact configuration. Ask the vendor to name the ML-KEM or ML-DSA parameter set (for example, ML-KEM-768 or ML-DSA-65) and the version in which it was introduced. The sources on this page do not give a single security level for every MLWE-based configuration, so do not assume one. For a deeper look at the lattice problem family and its neighbors, see the related terms in this group, and check the parameter definitions directly in NIST FIPS 203 and NIST FIPS 204.

Is Module-LWE standardized and which bodies recommend it

Module-LWE is standardized indirectly, through the NIST standards built on it. NIST published FIPS 203, the Module-Lattice-Based Key-Encapsulation Mechanism Standard that specifies ML-KEM, and FIPS 204, the Module-Lattice-Based Digital Signature Standard that specifies ML-DSA, both as final standards on 13 August 2024. The Federal Register notice of 14 August 2024 records that the standards became effective on 14 August 2024. NIST's own pages say the security of ML-KEM relates to the computational difficulty of the Module Learning with Errors problem, and RFC 9958 names Module LWE as the hardness basis for ML-DSA. For a reader checking a specification, the practical point is that the name Module-LWE appears in the security rationale of these documents rather than as a separate algorithm you configure. FIPS 205 is a different family, based on hash functions, so it does not rest on Module-LWE.

The IETF has carried these algorithms into protocol and certificate documents. RFC 9881, published in October 2025 on the Standards Track, defines ML-DSA in X.509 certificates and CRLs. RFC 9935, published in March 2026, defines X.509 conventions for ML-KEM. RFC 10024, published in August 2026 on the Standards Track, defines hybrid ML-KEM groups for TLS 1.3, including X25519MLKEM768. For guidance on using key encapsulation mechanisms, NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, was published as final on 18 September 2025. Confirm the exact RFC and SP revision your vendor or auditor cites before relying on it, because draft and final status changes over time.

Where Module-LWE sits in the standards and protocol stack

Module-LWE is the hardness basis that ML-KEM (FIPS 203) and ML-DSA (FIPS 204) both rely on, according to NIST and RFC 9958. The diagram starts at Module-LWE and moves to the two NIST standards, then to the X.509 certificate profiles in RFC 9935 (ML-KEM) and RFC 9881 (ML-DSA), and to the TLS hybrid groups in RFC 10024. A classical algorithm appears alongside the ML-KEM path because RFC 9794 defines a PQ/T hybrid as combining at least one post-quantum and one traditional algorithm. Check that the specific document and version you deploy supports each step.

Module-LWE underpins ML-KEM and ML-DSA, which feed certificate profiles and TLS hybrid groups.

What Module-LWE means for a migration inventory and vendor review

This sequence turns the name Module-LWE into concrete checks: you find where ML-KEM and ML-DSA run, confirm how their certificates and TLS groups are set up, get vendor answers on parameter sets, and test each change before it reaches production. The output is an inventory and a set of vendor answers you can review against the standards that define these algorithms.

  1. Find systems that use ML-KEM or ML-DSA

    Search your inventory for the parameter set names that the standards define: ML-KEM-512, ML-KEM-768 and ML-KEM-1024 for key establishment, and ML-DSA-44, ML-DSA-65 and ML-DSA-87 for signatures. Include TLS libraries, SSH servers, certificate authorities, HSMs, VPN gateways and any application that calls them directly. Do not stop at the algorithm family name, because a system can say 'Kyber' or 'Dilithium' in its documentation while running an earlier submission variant. The step is done when every system is listed with the exact parameter set it runs, or marked as unknown for follow-up. FIPS 203 and FIPS 204 are the references for the final names.

  2. Check certificate profiles and key usage

    For each certificate that carries an ML-DSA or ML-KEM key, read the profile and confirm the object identifier matches the parameter set you expect. RFC 9881 assigns the ML-DSA object identifiers for ML-DSA-44, ML-DSA-65 and ML-DSA-87. RFC 9935 requires that when the keyUsage extension is present for ML-KEM, keyEncipherment must be the only key usage set. Record any certificate that sets other key usages, since your CA or issuing software will need to change before it can be used for ML-KEM. The step is done when each certificate profile is marked as conforming or as needing a change, with the reason noted.

  3. Confirm TLS hybrid group support

    For each TLS endpoint, confirm which hybrid key share groups it offers: X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. RFC 10024 defines these groups for TLS 1.3. Check this with a handshake test against the running service, and do not rely only on the vendor's feature list. Note which library version gives you each group, since defaults differ between releases. For example, OpenSSL 3.5.0 changed its default TLS key shares to include X25519MLKEM768. The step is done when each endpoint has a recorded list of supported groups, verified by a test handshake.

  4. Ask vendors which parameter sets they run

    Send each vendor a written question asking which ML-KEM and ML-DSA parameter sets their product uses by default and which it can be configured to use, and whether any hybrid construction is combined with a classical algorithm. Ask for the library and version that implements the algorithm, and whether a FIPS 203 or FIPS 204 implementation has been validated, with the module and issuer named. Do not accept a general statement of support as an answer. The step is done when each vendor response names the parameter set, the version and the configuration, and each answer is filed against the matching systems in your inventory.

  5. Test changes before rollout

    Before enabling any new group, certificate profile or parameter set in production, run the change in a staging environment that matches production as closely as you can. Test that clients and servers complete the handshake, that certificates chain and verify, and that the larger key and signature sizes do not break message limits or timeouts in your network path. RFC 10024 gives the client share as 1216 bytes and the server share as 1120 bytes for X25519MLKEM768, so check that intermediate devices handle these sizes. The step is done when the staging results are recorded, any failure has a fix or a rollback, and the change is approved for production.

Common confusions when reading tenders and vendor documents about Module-LWE

Module-LWE appears in tenders and vendor documents alongside close relatives, submission names and parameter sets that are easy to conflate. The cards below separate the lattice problem from its neighbors, the submission names from the final standards, and the lattice schemes from the hash-based one, so a reviewer can check each claim against the source it cites.

Module-LWE is not Ring-LWE or plain LWE

Learning With Errors (LWE), Ring-LWE and Module-LWE are related lattice problems, but they are different problems. The sources in this topic tie ML-KEM and ML-DSA to Module Learning with Errors, and RFC 9958 names module LWE (MLWE) as the hardness basis for ML-DSA. When a tender or vendor sheet says "LWE" or "Ring-LWE" where the standard says Module-LWE, ask the vendor to name the exact problem and the standard that defines the scheme. Do not assume the names are interchangeable.

FIPS 203 text

Kyber and Dilithium are submission names

CRYSTALS-Kyber and CRYSTALS-Dilithium are the names of the submissions from which the standards came. The Federal Register notice of 14 August 2024 says FIPS 203 originates from the CRYSTALS-KYBER submission and FIPS 204 from CRYSTALS-Dilithium. In practice the standardized algorithms are ML-KEM and ML-DSA, and a vendor may still label a product with the older name. Check that a "Kyber" or "Dilithium" claim maps to the final FIPS 203 or FIPS 204 behavior, and confirm the version the product actually ships.

Federal Register notice

Match parameter sets to their algorithm

Each standard defines its own parameter sets. FIPS 203 specifies ML-KEM-512, ML-KEM-768 and ML-KEM-1024, while FIPS 204 specifies ML-DSA-44, ML-DSA-65 and ML-DSA-87. A reader who sees ML-KEM-768 and ML-DSA-65 in the same bill of materials should treat them as two separate components with two separate sets of sizes. The security level and sizes differ by set, so a claim about one set does not transfer to another. Ask the vendor which set each function uses and where it is configured.

FIPS 204 text

FIPS 205 is hash-based, not lattice

FIPS 205 is the Stateless Hash-Based Digital Signature Standard and originates from SPHINCS+. It is not a lattice scheme, even though it appears next to FIPS 203 and FIPS 204 in the same NIST post-quantum set. A tender that groups all three as "lattice-based" is making an error that matters for risk, because the hash-based scheme rests on a different hardness basis. Classify each signature or key exchange function by its own standard, and record SLH-DSA as hash-based in any inventory.

Federal Register notice

Confirm which document defines the behavior

A vendor may cite a FIPS standard, an IETF RFC, an Internet-Draft or a library release note, and these do not carry equal weight. RFC 9881 and RFC 9935 define how ML-DSA and ML-KEM appear in X.509 certificates, and RFC 10024 defines TLS 1.3 groups such as X25519MLKEM768. The Internet-Draft draft-connolly-cfrg-ml-dsa-security-considerations-02 is an Informational work in progress, not a standard. When a claim matters, ask which document it comes from and check that the version and profile named match the product.

RFC 9881 text

Questions people search about Module-LWE and its standards status

What does MLWE stand for in post-quantum cryptography?

MLWE stands for Module Learning With Errors, the hard problem that several NIST post-quantum standards rely on for their security. RFC 9958 names Module LWE (MLWE) as the hardness basis for ML-DSA, and NIST's FIPS 203 page states that the security of ML-KEM is related to the computational difficulty of the Module Learning with Errors problem. The term is one of the lattice problems that RFC 9958 lists alongside shortest vector, closest vector, short integer solution (SIS), learning with errors (LWE) and learning with rounding. Read the term as a name for a problem, not for a product. Products, libraries and certificates implement algorithms such as ML-KEM and ML-DSA, which are built on it.

Is Module-LWE the same as Kyber or Dilithium?

No. Module-LWE is the underlying hard problem, while Kyber and Dilithium are schemes built on it. The Federal Register notice of 14 August 2024 says FIPS 203 originates from the CRYSTALS-KYBER submission and FIPS 204 originates from CRYSTALS-Dilithium. The CRYSTALS-Kyber project page says the CCA-secure Kyber KEM is built on a CPA-secure cryptosystem based on Module-LWE. In the final standards, the names are ML-KEM (FIPS 203) and ML-DSA (FIPS 204). Some documents still use the earlier names, so when a vendor says Kyber or Dilithium, check which standard version and parameter set it implements. Do not assume that a Kyber or Dilithium label means the same parameters, encodings or interoperability as the final standards.

Is Module-LWE standardized?

The problem itself is not a standard. The standards that rely on it are. NIST published FIPS 203 (ML-KEM) and FIPS 204 (ML-DSA) as final standards on 13 August 2024, and the Federal Register notice says they were effective on 14 August 2024. Both are based on Module-LWE. FIPS 205 is a separate post-quantum standard, SLH-DSA, which originates from SPHINCS+ and is not a lattice scheme. On the IETF side, RFC 9881 (October 2025, Standards Track) defines ML-DSA in X.509 certificates and CRLs, and RFC 9935 (March 2026) defines X.509 conventions for ML-KEM. Confirm the exact document and version your vendor claims to implement before accepting a standards statement.

Which products use Module-LWE-based algorithms by default, such as OpenSSH and OpenSSL?

Two widely used products make these algorithms their default in recent releases. OpenSSH 10.0, released on 9 April 2025, made mlkem768x25519-sha256 the default key agreement algorithm and described it as NIST-standardized. OpenSSL 3.5.0, dated 8 April 2025, changed the default TLS key shares to offer X25519MLKEM768 and X25519. X25519MLKEM768 is a hybrid that pairs ML-KEM-768 with X25519, and RFC 10024 defines it for TLS 1.3. Defaults can differ by build, distribution, and whether you have overridden the configuration. Check the effective configuration on your own hosts, for example by reviewing the algorithm list your servers and clients negotiate, rather than relying on the release version alone.

What changes for a migration when a system uses Module-LWE-based algorithms?

Three things change most often. Key and signature sizes grow. RFC 9881 gives ML-DSA public key and signature sizes of 1952 and 3309 bytes for ML-DSA-65, and RFC 10024 gives the X25519MLKEM768 client share as 1216 bytes. RFC 9958 states that lattice public keys are about 6 to 10 times larger than classical ones and lattice signatures about 10 to 100 times larger. Certificate formats and identifiers also change, since RFC 9881 assigns new object identifiers for ML-DSA. Finally, protocol negotiation changes, because hybrid groups like X25519MLKEM768 must be supported by both ends. Plan for larger handshakes, certificate chains and storage, and test each component that terminates these algorithms, such as load balancers, proxies and HSMs, because their support is version-specific.

What should I ask a vendor about Module-LWE support?

Ask which standard and document version each algorithm implements, such as FIPS 203 or FIPS 204 and the matching RFC, and whether the product uses the final names ML-KEM and ML-DSA or the earlier Kyber and Dilithium names. Ask for the exact parameter sets offered, for example ML-KEM-768 or ML-DSA-65, and whether hybrid modes such as X25519MLKEM768 are on by default and can be disabled. Ask which versions and builds are affected, and what the default configuration is in each. Ask for any validation or certificate, and name the module, version and issuer it covers, since a claim about one component does not cover the whole product. Ask how keys and certificates are handled, and for test evidence of interoperability with your own clients and peers. Do not accept a general statement that a product is post-quantum ready without these details.

Is there a hybrid option that combines Module-LWE with classical algorithms?

Yes. RFC 9794 defines a PQ/T hybrid scheme as a multi-algorithm scheme in which at least one component is a post-quantum algorithm and at least one is a traditional algorithm. The CRYSTALS-Kyber project page recommends Kyber-768 together with a hybrid mode with elliptic-curve Diffie-Hellman. In TLS, X25519MLKEM768 is the common example, combining ML-KEM-768 with X25519 and defined in RFC 10024. A hybrid keeps a classical algorithm in place alongside the post-quantum one, which affects both the size of the handshake and the amount of configuration that has to be checked. Confirm which mode your vendor uses and whether it is required or optional.

Where can I read the guidance on using Module-LWE-based KEMs securely?

Start with the standards themselves and then the guidance documents. FIPS 203 is the reference for ML-KEM, and FIPS 204 is the reference for ML-DSA, both at the NIST publications page. NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, was published as final on 18 September 2025 and gives guidance on implementing and using KEMs securely. For the protocol side, read the IETF RFCs listed above, such as RFC 9881 for certificates and RFC 10024 for TLS hybrids. Check the vendor's documentation for how it applies these recommendations in its own configuration, and confirm the details against the sources in your own environment before relying on them.

How DeployOpen works on this

DeployOpen approaches Module-LWE as a term to be mapped to the systems that depend on it, not as a topic to explain in the abstract. We start from the specific products and standards in a client's estate that rely on ML-KEM or ML-DSA, then plan and deliver the changes needed around them. Every step is scoped in writing before work begins.

How we scope

  • Identify which systems in your estate use ML-KEM or ML-DSA, since both rest on the Module-LWE problem.
  • Agree in writing which parameter sets, such as ML-KEM-768 or ML-DSA-65, are in scope for each system.
  • Define the deliverables, timeline and acceptance criteria for each component before work starts.

How we build

  • Configure TLS deployments to offer X25519MLKEM768 and confirm the key share sizes your network devices can handle.
  • Set up X.509 certificates and CRLs for ML-DSA using the OIDs and key usage rules defined in the RFCs.
  • Test hybrid key exchange in staging, checking handshake behavior against the TLS 1.3 codepoints your clients negotiate.

How we hand over

  • Document each configuration change, the standard it follows, and the version of each library or product involved.
  • Provide an inventory of where Module-LWE-based algorithms are used, so your security and audit teams can review it.
  • Deliver runbooks that explain what to confirm when upgrading libraries, since compatibility depends on the version you run.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement ends.
  • Retest systems when standards are revised or libraries change defaults, keeping your evidence current.
  • Review new vendor documentation referencing Module-LWE so your team knows what changes affect your deployment.

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.