What does Learning With Errors (LWE) mean in a post-quantum specification?
Learning With Errors (LWE) is a hard problem on lattices, and in post-quantum specifications it serves as the security basis for named schemes rather than as an algorithm you deploy on its own. The sources listed on this page tie LWE to the CRYSTALS-Kyber project, whose key encapsulation mechanism rests on the hardness of LWE over module lattices and traces back to Regev's LWE encryption scheme. The same family appears in NIST's standards: the NIST page for FIPS 203 says the security of ML-KEM relates to the computational difficulty of the Module Learning with Errors problem, and FIPS 203 originates from the CRYSTALS-KYBER submission. You are most likely to meet the term when reading a vendor document, a standard, or a tender answer that asks what a key exchange or signature scheme is built on.
Engineers and reviewers usually encounter LWE in one of two forms. The first is a plain statement that a scheme's security rests on LWE, Ring-LWE or Module-LWE. The second, more common in specifications, is the name of the base problem appearing beside a scheme name such as ML-KEM or FrodoKEM. RFC 9958 lists learning with errors and module learning with errors as separate entries among lattice problems, and it names Module LWE as the hardness basis for ML-DSA. It also describes FrodoKEM as based on LWE over algebraically unstructured lattices, which separates it from the module-lattice design of ML-KEM. Read the base problem as a description of the family, then check the scheme name and parameter set to confirm what your product actually runs.
For planning, the useful question is which scheme and which parameter set a vendor implements, not whether LWE appears in the text. The sources listed here give ML-KEM public key sizes of 800, 1184 and 1568 octets for its three parameter sets, and RFC 9958 notes that lattice public keys are roughly 6 to 10 times larger than classical ones. Ask vendors to name the exact scheme and parameter set, and confirm the versions in your environment, since a shared base problem does not make two schemes interchangeable. The sources listed here do not say how any given product maps onto these parameter sets, so check the vendor's documentation for that.
Which names and variants of LWE will I see in standards and libraries?
This table lists the names for learning with errors that appear in specifications, libraries and vendor documents, with the standard or document that uses each one. Read the first column for the name you have found, then check the second and third columns for the variant it refers to and the document that defines it. The main takeaway is that ML-KEM and ML-DSA are the standardized names, while Kyber, Dilithium and FrodoKEM appear in other sources and need to be matched to their current standards.
| Name you will see | What it refers to | Where it appears |
|---|---|---|
| Learning with errors (LWE) | The base hard problem over unstructured lattices, with Regev's encryption scheme as the origin of the approach | RFC 9958 lists it as a separate lattice problem |
| Ring-LWE | The variant of LWE that works over polynomial rings instead of plain vectors | Named in the CRYSTALS-Kyber project page as a variant from which Kyber's approach traces |
| Module-LWE (MLWE) | The variant that uses module lattices, sitting between LWE and Ring-LWE | RFC 9958 lists it separately and names it as the hardness basis for ML-DSA; NIST FIPS 203 names it for ML-KEM |
| ML-KEM (FIPS 203) | The standardized key encapsulation mechanism whose security relates to Module-LWE | NIST FIPS 203, final standard published 13 August 2024, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024 |
| ML-DSA (FIPS 204) | The standardized digital signature scheme built on module lattices | NIST FIPS 204, final standard published 13 August 2024, with parameter sets ML-DSA-44, ML-DSA-65 and ML-DSA-87 |
| CRYSTALS-Kyber | The submission name for the scheme that FIPS 203 standardizes as ML-KEM | Federal Register notice of 14 August 2024 states that FIPS 203 originates from the CRYSTALS-KYBER submission |
| CRYSTALS-Dilithium | The submission name for the scheme that FIPS 204 standardizes as ML-DSA | Federal Register notice of 14 August 2024 states that FIPS 204 originates from CRYSTALS-Dilithium |
| FrodoKEM | A key encapsulation scheme based on LWE over algebraically unstructured lattices, not the module-lattice approach used by ML-KEM | RFC 9958 describes it this way; NIST IR 8309 (July 2020) lists it as one of eight alternate candidates in the second round |
Where do LWE-based schemes show up in protocols, products and tenders?
LWE rarely appears on its own. It sits underneath named schemes that show up in standards, protocol defaults, library documentation and procurement questions. The cards below cover the places a practitioner is most likely to meet the term and what to confirm in each.
Named in NIST FIPS 203 and 204
FIPS 203 says the security of ML-KEM is related to the computational difficulty of the Module Learning with Errors problem, and FIPS 204 specifies ML-DSA, a signature scheme built on lattice problems. These two standards are the primary reference when a document asks whether a scheme is standardized. Check which parameter set (ML-KEM-512, ML-KEM-768 or ML-KEM-1024; ML-DSA-44, ML-DSA-65 or ML-DSA-87) a product claims to implement. The NIST page for FIPS 203 also records a planning note dated 17 November 2025 that an identified issue will be corrected in a future update, so confirm which revision a vendor is built against.
- Final standard date
- 13 August 2024
Classified in RFC 9958
RFC 9958 is an Informational IETF document that lists learning with errors and module learning with errors as separate entries among lattice problems. It is useful when a reviewer needs a neutral reference that groups LWE with related problems such as the Short Integer Solution problem. The same document says FrodoKEM is based on LWE over algebraically unstructured lattices, which distinguishes it from the module-lattice design of ML-KEM. Use it to confirm that a vendor's description of its scheme matches the problem family it names.
RFC 9958 textML-KEM hybrids in OpenSSH and OpenSSL
OpenSSH 10.0, released on 2025-04-09, made the hybrid algorithm mlkem768x25519-sha256 the default for key agreement. OpenSSL 3.5.0, dated 8 April 2025, added ML-KEM support and changed the default TLS key shares to offer X25519MLKEM768 alongside X25519. In both cases the ML-KEM component is combined with a classical algorithm, so a default does not mean the connection relies on LWE alone. Check the exact release on each host, because older versions and forked or packaged builds may differ.
OpenSSH release notesScheme names in vendor and library documents
Vendor datasheets, product security pages and library documentation often name the scheme in use, such as ML-KEM, ML-DSA, Kyber or Dilithium. Kyber and Dilithium are the earlier submission names that FIPS 203 and FIPS 204 originate from, so a document may use either name for the same design family. Ask the vendor which standard revision and parameter set its build implements, and whether the implementation is validated by a testing program. Do not assume that two names, or two products naming the same scheme, are interchangeable.
CRYSTALS-Kyber projectUnderlying problem in tender and audit questions
Some tenders and audit requests ask which underlying hard problem a scheme relies on, and whether that problem is the one named in a standard. A precise answer names the problem (LWE, Module-LWE or Ring-LWE) and the standard or specification that defines the scheme. Ask the vendor to point to the clause or document that supports the claim, rather than accepting a general statement. The answer should also say which algorithms in the product use this problem and which do not, such as the hash-based signature standard FIPS 205, which is not a lattice scheme.
FIPS 204 textProducts outside these examples
The sources listed on this page do not show every product that uses LWE-based schemes, and a product's absence from this list is not evidence that it lacks them. Inventory is the reliable method: list the products and protocols your organization runs, then ask each vendor which named schemes they use and in which versions. Treat the vendor's answer as the basis for your review, and confirm compatibility for the specific versions you deploy.
RFC 9794 textHow LWE-based schemes are used in a system, without the mathematics
In a deployed system, LWE is not something you configure. It is the hardness basis behind two functions you will see named in standards and product documents: key encapsulation, used to establish a shared key during a handshake, and digital signatures, used to authenticate data and certificates. The Kyber project page describes ML-KEM's security as resting on LWE over module lattices, and NIST's FIPS 203 ties ML-KEM's security to the difficulty of the Module Learning with Errors problem. For signatures, RFC 9958 names Module LWE as the hardness basis for ML-DSA, the signature standard in FIPS 204. When a vendor says a product uses ML-KEM or ML-DSA, the LWE family is the underlying assumption, and that is the part a security lead should ask about when reviewing which algorithm a product actually negotiates.
In practice, the place where LWE shows up is the key agreement step of a protocol and the certificate or signing step of a trust chain, not a standalone component. OpenSSL 3.5.0 added ML-KEM and ML-DSA support, and its default TLS key shares offer the hybrid X25519MLKEM768 alongside X25519. OpenSSH 10.0 made the hybrid mlkem768x25519-sha256 its default key agreement. The practical check is to confirm, in the actual handshake or configuration of your own environment, which key exchange and signature algorithms are negotiated, and whether a hybrid is in use. RFC 9794 defines a PQ/T hybrid as combining at least one post-quantum and one traditional algorithm, so a hybrid key exchange still relies on the classical component as well.
Is LWE standardized, and which schemes are final?
LWE itself is not a standard, but schemes built on it are. On 13 August 2024, 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. The Federal Register notice of 14 August 2024 records that FIPS 203 originates from the CRYSTALS-KYBER submission and FIPS 204 from CRYSTALS-Dilithium, and that the standards took effect on 14 August 2024. ML-KEM relies on the Module Learning With Errors problem, and ML-DSA relies on Module LWE as its hardness basis. Each standard defines three parameter sets, ML-KEM-512, ML-KEM-768 and ML-KEM-1024 for FIPS 203, and ML-DSA-44, ML-DSA-65 and ML-DSA-87 for FIPS 204. When a specification names one of these, confirm which parameter set the product uses.
Not every LWE-based scheme is final. FrodoKEM, which RFC 9958 describes as based on LWE over algebraically unstructured lattices, advanced as an alternate candidate in the second round of the NIST post-quantum process, as listed in NIST IR 8309 dated July 2020. An alternate candidate is not a published standard, so a document that cites FrodoKEM should be checked for the status it actually claims. FIPS 205, the Stateless Hash-Based Digital Signature Standard that originates from SPHINCS+, is also final, but it is not a lattice scheme and does not rely on LWE. Keep it separate when building an inventory of lattice-based components. The NIST page for FIPS 203 carries a planning note dated 17 November 2025 saying an identified issue will be corrected in a future update or revision. Check the current version of FIPS 203 before citing it in a vendor answer or audit response.
The sources listed here do not establish that any government body requires LWE-based schemes for commercial systems. The NIST and Federal Register material describes the standards themselves and their status, not a mandate on private organizations. If a tender or auditor asks for LWE-based schemes specifically, ask for the regulation or contract clause behind the request, and confirm which standard and parameter set the requirement names.
What does LWE mean for my migration inventory and vendor review?
This sequence turns the LWE family of hardness problems into concrete checks you can run against your configurations, product documents and vendor answers. It produces a dated inventory of which schemes appear where, which parameter sets and underlying problems each vendor relies on, and the capacity and hybrid-default checks that close the review.
Find where lattice schemes are named
Search your configurations, library manifests, TLS and SSH settings, product documentation and procurement records for ML-KEM, ML-DSA, FrodoKEM and their earlier submission names, CRYSTALS-Kyber and CRYSTALS-Dilithium. Record the system, the file or document, and the owner for each hit. Done means every occurrence is listed in one inventory, including the ones that appear only in vendor documents and not in your own configuration. Scheme names alone do not show whether a system is in use, so a hit is a lead to confirm in the next step, not a finding.
Check the parameter set in use
For each hit, confirm which parameter set is configured. For ML-KEM that is ML-KEM-512, ML-KEM-768 or ML-KEM-1024, as defined in FIPS 203. For ML-DSA it is ML-DSA-44, ML-DSA-65 or ML-DSA-87, as defined in FIPS 204. Read the value from the running configuration or the library's reported algorithm name where you can, not from a template or a default you assume. Record the parameter set beside each inventory entry. Done means no entry is left with an unknown parameter set, and any entry that names only a family without a set is flagged for the vendor question in the next step.
Ask vendors which problem they rely on
Send each vendor a written question asking which underlying hard problem their scheme relies on, such as Module-LWE for ML-KEM and ML-DSA or LWE over unstructured lattices for FrodoKEM, and which version of the scheme and library they run. Ask them to name the standard and the version of that standard they implement. Keep the answers in the vendor file. Done means each vendor has answered in writing, and any answer that names a different problem, a different parameter set or no version is logged as an open point rather than accepted.
Check capacity against larger key and ciphertext sizes
Lattice schemes use larger keys and messages than most classical algorithms they may replace. RFC 9935 gives ML-KEM public key sizes of 800 octets for ML-KEM-512, 1184 octets for ML-KEM-768 and 1568 octets for ML-KEM-1024, without ASN.1 wrapping. RFC 9958 gives ML-KEM private key sizes of 1632, 2400 and 3168 bytes for the three sets, and ciphertexts of 768 bytes for ML-KEM-512 and 1088 bytes for ML-KEM-768. RFC 9958 also states that lattice public keys are about 6 to 10 times larger than classical ones and lattice signatures about 10 to 100 times larger. Compare these figures with the limits of your handshake buffers, certificate chains, message formats and storage, and log any component that might exceed them. Done means each affected component has a recorded size check, with the ASN.1 wrapping and the chain length in your own environment taken into account.
Confirm hybrid defaults in the running system
Where a hybrid group is offered, confirm which one is negotiated in the system as it actually runs, not as the documentation describes it. OpenSSH 10.0, released on 9 April 2025, made mlkem768x25519-sha256 the default for key agreement. OpenSSL 3.5.0, dated 8 April 2025, changed the default TLS key shares to offer X25519MLKEM768 and X25519. Check the negotiated group on a test connection, and check the configuration of each product that runs its own copy of the library. Done means the group negotiated in each system is recorded with the version that produced it, and any system that falls back to a classical group only is marked for follow-up.
Record the vendor answers in the review file
Gather the inventory, the parameter set checks, the vendor written answers, the capacity checks and the negotiated group results into one review file, one row per system. Add the date of each check and the name of the person who ran it. Note where a vendor answer and an observed value disagree and resolve the disagreement before closing the row. Done means every row has a source for each field, and the file can be handed to an auditor or a procurement reviewer without further explanation from the author.
Which mix-ups between LWE, Kyber, Dilithium and parameter sets should I watch for?
Post-quantum specifications use several overlapping names for lattice schemes, and a tender or vendor answer can use them loosely. The four points below cover the confusions that most often cause misreadings of which algorithm, problem or security level is actually meant, and each one points to what the sources state so you can confirm it in your own review.
Kyber and ML-KEM are the same lineage
ML-KEM is the standardized name, and it originates from the CRYSTALS-KYBER submission. The Federal Register notice of 14 August 2024 says FIPS 203 originates from that submission, and the CRYSTALS-Kyber project describes Kyber as a key encapsulation mechanism whose security rests on the hardness of LWE over module lattices. When a vendor says Kyber, ask whether it means the pre-standard submission or the final FIPS 203 ML-KEM, because the two are not guaranteed to match byte for byte. Confirm the exact version and parameter set in the product documentation before accepting the claim.
Federal Register noticeLWE is a problem, not a product
Learning With Errors names a computational problem that schemes are built on, not a library or a standard you can install. RFC 9958 lists learning with errors and module learning with errors as separate entries among lattice problems, and it names Module LWE as the hardness basis for ML-DSA. A procurement line that asks for LWE support is therefore asking which scheme is built on it, not whether a component called LWE is present. Ask the vendor to name the standard and the parameter set they implement, such as ML-KEM-768 or FrodoKEM, rather than accepting the problem name alone.
RFC 9958FIPS 205 is hash-based, not lattice
FIPS 205 specifies SLH-DSA, a stateless hash-based signature standard that originates from SPHINCS+, so it is not a lattice scheme. The Federal Register notice of 14 August 2024 lists it alongside FIPS 203 (ML-KEM) and FIPS 204 (ML-DSA), and the three are easy to mix up in an inventory or a checklist. ML-DSA and ML-KEM rely on lattice problems, while SLH-DSA relies on hash functions. When a review asks whether all post-quantum signatures share the same hardness assumptions, the answer is no, and each standard should be recorded separately with its own dependency.
Parameter set names are not interchangeable
A tender that asks for a security level without naming a parameter set leaves the reader to guess which one is meant. 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. These sets differ in key and ciphertext sizes, and RFC 9935 and RFC 9958 give different octet counts for each. Ask the bidder to state the exact set, and check the public key, private key and ciphertext sizes against the figures in the RFCs so that a 768 deployment is not accepted as a 1024 deployment or the reverse.
FIPS 204 textWhat do people search about LWE, and what should I check?
What does LWE stand for?
LWE stands for Learning With Errors. It is a hard mathematical problem that lattice-based schemes rely on for their security. The name comes from the idea of recovering a hidden secret from a set of equations where small random errors have been added, so the errors make the problem hard without a trapdoor. You do not need the underlying mathematics to plan a migration. What matters for your work is that LWE is the problem named in the specifications, and that the standards and vendor documents you read refer to it directly or through variants such as Ring-LWE and Module-LWE. The CRYSTALS-Kyber project page traces its security to LWE, which it attributes to Regev's LWE encryption scheme, and to the Ring-LWE and Module-LWE variants. Check the exact problem named in each specification you rely on.
Are LWE and Kyber the same thing?
No. LWE is a hard problem, and Kyber is a key encapsulation mechanism whose security rests on the hardness of LWE over module lattices. The CRYSTALS-Kyber project page describes Kyber as an IND-CCA2-secure key encapsulation mechanism built on that foundation. The standardized form of Kyber is FIPS 203, which specifies ML-KEM. The NIST page for FIPS 203 says ML-KEM's security is related to the computational difficulty of the Module Learning with Errors problem. Treat LWE as the underlying problem and ML-KEM as the algorithm you deploy, and confirm which name and version your products use, since a product may expose Kyber, ML-KEM or a hybrid combination.
Is LWE standardized?
LWE as a problem is not itself a standard. The standard is the algorithm built on it. NIST published FIPS 203, which specifies ML-KEM, as a final standard on 13 August 2024, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. ML-KEM relies on the Module Learning with Errors problem, a variant of LWE. The Federal Register notice of 14 August 2024 says FIPS 203 originates from the CRYSTALS-KYBER submission and that the standard was effective on that date. The NIST page for FIPS 203 also records a planning note dated 17 November 2025 saying an identified issue will be corrected in a future update or revision. Check the current version of FIPS 203 and any revision notes before you cite it in an audit or tender response.
Do my products use LWE?
You cannot answer this from the term alone. Products do not usually say LWE in their interface. They say ML-KEM, Kyber, X25519MLKEM768, mlkem768x25519-sha256 or similar names. The sources list several examples. OpenSSH 10.0, released on 9 April 2025, made the hybrid algorithm mlkem768x25519-sha256 the default for key agreement. OpenSSL 3.5.0, dated 8 April 2025, added support for ML-KEM and changed the default TLS key shares to offer X25519MLKEM768 and X25519. FrodoKEM is described as based on LWE over algebraically unstructured lattices, which differs from the module-lattice ML-KEM. Inventory each service, check the algorithm names it negotiates, and confirm with the vendor which version and configuration apply to your deployment.
Is LWE secure against quantum computers according to NIST?
The NIST page for FIPS 203 says ML-KEM is believed to be secure even against adversaries who possess a quantum computer. That is a statement about the algorithm's believed security, not a guarantee, and it does not make any product quantum safe. The sources do not settle the question beyond that wording. Avoid repeating the phrase quantum-proof or stating that a product is compliant on the strength of it. When you describe your position, quote the NIST wording as written, state the exact algorithm and version you run, and check NIST's current guidance and any revisions before relying on it.
What changes for my migration if my systems use LWE-based algorithms?
The main change is that the algorithm's key and ciphertext sizes differ from classical ones, which affects protocols, storage and bandwidth. RFC 9958 states that lattice public keys are about 6 to 10 times larger than classical ones and lattice signatures are about 10 to 100 times larger. For ML-KEM, RFC 9935 gives public key sizes of 800 octets for ML-KEM-512, 1184 octets for ML-KEM-768 and 1568 octets for ML-KEM-1024, without ASN.1 wrapping. RFC 9958 also notes that lattice schemes can have a small decryption failure probability that the parameters make negligible, and that such failures can be handled as a fatal transport error by running a fresh KEM operation. Plan for larger handshake messages, test your protocols and buffers, and check how your libraries handle that failure case.
What should I ask a vendor about LWE-based algorithms?
Ask which algorithm names, parameter sets and versions the product negotiates, for example ML-KEM-768 or a hybrid such as X25519MLKEM768, and whether that is the default or an option you must enable. Ask whether the product follows FIPS 203 and which revision it implements, given the planning note on the NIST page dated 17 November 2025. Ask whether the vendor has published any validation, certification or independent test result for the module and version you run, and name the issuer and version in the answer. Ask how the product handles decryption failure, and how it is kept up to date when standards are revised. Request the answers in writing and tie them to the version you will deploy.
Where do the sources not settle the point?
The sources listed here do not give a cost or timeline for moving a system from classical algorithms to LWE-based ones, and they do not say how long a particular product will take to update. The sources also do not say whether a given vendor product has been validated. Confirm these points with the vendor's documentation, the current NIST pages, and your own environment. Where a figure is not supplied here, ask the vendor or your assessor for it in writing rather than assuming a value.
How DeployOpen works on this
DeployOpen approaches LWE-based schemes as part of a migration inventory rather than as a standalone topic. We scope the work around the specific products and standards your environment uses, such as ML-KEM under FIPS 203, then build, document and hand over the configuration with evidence you can review.
How we scope
- We confirm which LWE-based schemes appear in your environment, such as ML-KEM and ML-DSA, and which standards they map to.
- We identify the specific parameter sets (for example ML-KEM-768) and versions your products and libraries actually support.
- We write the scope and deliverables in advance, so you know which systems and documents are covered before work starts.
How we build
- We configure and test the components that negotiate or carry LWE-based key establishment, checking the behavior against your stated requirements.
- We verify the key and ciphertext sizes your systems handle, since these differ between parameter sets and affect protocol and storage design.
- We confirm which algorithms are used in hybrid configurations and which are used alone, so the setup matches what your documentation claims.
How we hand over
- We document the configuration, versions, parameter sets and test results so your security and compliance teams can review them directly.
- We record open points, such as any issues flagged in the standards or library release notes, with the date and source they came from.
- We walk your engineers through the setup and provide the evidence needed for internal or external review.
How we support
- Engagements are fixed-scope, with the scope and deliverables agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer if your library or standard versions change.
- Before relying on any version or parameter set, confirm its current status against the standard or vendor documentation for your release.

