- Introduced by
- NIST PQC Standardization Project
- Year
- 2022
- Type
- post-quantum key encapsulation mechanism
- Family
- Quantum-resistant cryptography
What does it do?
Post-quantum cryptography refers to public-key algorithms designed to remain secure against attackers with quantum computers as well as classical ones.
CRYSTALS-Kyber is the pre-standard submission on which ML-KEM, NIST's key-encapsulation standard, is based. The two differ in parameters and details and are not interchangeable. ML-DSA, derived from CRYSTALS-Dilithium, is the related NIST standard for signatures. The main practical motivation is long-term confidentiality: an adversary may record encrypted traffic today and decrypt it once a quantum computer is available.
The intuition behind the method
Quantum computers threaten current cryptography by making factoring (RSA) and elliptic curve discrete logarithms (ECC) computationally easy through Shor's algorithm. Post-quantum cryptography relies on problems believed to remain hard for quantum computers, such as learning with errors (LWE), shortest vector problems (SVP), or code-based problems. These hardness assumptions are widely studied but unproven, and estimated security levels for specific parameter sets can change as cryptanalysis advances. Deploying post-quantum cryptography now helps organizations protect data against future quantum threats.
History
NIST began its post-quantum cryptography standardization process in 2016 with a call for proposals, in response to the long-term threat from quantum computers. After several evaluation rounds and public comment, NIST selected CRYSTALS-Kyber and CRYSTALS-Dilithium for standardization. The final standards, ML-KEM and ML-DSA, were published afterwards, and implementations should follow the final standards rather than the earlier submissions. The migration from current public-key cryptography to these algorithms is often estimated at a decade or more, which requires careful planning and gradual deployment.
When to use it
Choose ML-KEM (the NIST-standardized form of CRYSTALS-Kyber) when a system must establish shared secrets for key exchange and its confidentiality has to hold for longer than the expected arrival of quantum computers, for example for long-retained government, financial, or infrastructure records. During the transition, combine it with a classical key exchange so that security does not rest on the new scheme alone. Do not use it for digital signatures, where ML-DSA is the relevant NIST standard. If the data is short-lived and bandwidth is tightly constrained, weigh the larger keys and ciphertexts against the actual threat window.
Limitations and considerations
- Public keys and ciphertexts are substantially larger than elliptic-curve keys and ciphertexts, which matters for bandwidth-constrained links and small embedded devices
- Newer than RSA or ECC, so it has less operational experience in production systems
- Hybrid deployment during the transition adds protocol and implementation complexity
- Standards, libraries and protocol profiles are still maturing, so interoperability between implementations can vary
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Security rests on the module learning-with-errors problem, which is believed hard for quantum computers, so it does not share the factoring and discrete-logarithm weaknesses that Shor's algorithm exploits in RSA and ECC. This hardness is a widely studied but unproven assumption, and parameter security estimates can change with further cryptanalysis.
- Protects the confidentiality of data recorded today against later quantum decryption (harvest-now, decrypt-later); this is a different property from forward secrecy, which depends on ephemeral keys in the protocol
- Standardized by NIST as ML-KEM after a public evaluation process, so its design has been widely reviewed
- Practical implementations with reasonable performance are available
Applications
- Key exchange for long-retained confidential records where harvest-now, decrypt-later exposure is a concern
- Hybrid key exchange in protocols that run a classical algorithm alongside ML-KEM during the transition
- Systems that can accommodate key exchange messages of about a kilobyte, where the size overhead relative to classical keys is acceptable
- Government and critical-infrastructure systems whose required confidentiality period extends beyond the expected arrival of cryptographically relevant quantum computers
How it works
How it works
Key generation samples a secret vector of small-coefficient polynomials and a public matrix over a polynomial ring, then publishes a public key that encodes the secret as noisy linear equations. Recovering the secret from the public key is the module learning-with-errors problem, which is believed to be hard for quantum computers.
The sender picks a random message, derives the shared secret from that message together with a hash of the recipient's public key, and encrypts the message under the public key to form the ciphertext. The ciphertext is sent to the recipient, and the shared secret is kept on the sender's side.
The recipient uses the private secret vector to decrypt the ciphertext and recover the message. The scheme then re-encrypts that message and compares the result with the received ciphertext. If they match, the shared secret is derived from the message and returned. If they do not match, which indicates a malformed or altered ciphertext, the scheme returns a pseudorandom value instead. This value is derived from a secret seed and the ciphertext (implicit rejection), so the outcome of a failed check does not expose information about the secret.
The re-encryption comparison in decapsulation serves as the validation step: it ensures that a malformed or altered ciphertext does not reveal the secret. Implementations also check the lengths and encodings of received keys and ciphertexts before processing them.
Common pitfalls
- Delaying migration on the assumption that quantum computers are far off; harvest-now, decrypt-later means data sent today can be exposed later
- Implementing the pre-standard Round 3 Kyber specification, or any other pre-standard draft, instead of the final NIST ML-KEM standard; the parameters differ, so the two are not expected to interoperate
- Implementing decapsulation without the re-encryption comparison, or with branches that depend on secret data, which can leak information through timing side channels
- Relying on the post-quantum scheme alone during the transition, when a hybrid with a classical exchange would keep protection if one component is later found weak
Frequently asked questions
When will quantum computers break current cryptography?
Estimates vary and are uncertain, and no date has been settled. The concern does not depend on a precise date, because encrypted data recorded today can be decrypted later (harvest-now, decrypt-later attacks).
Should I deploy post-quantum cryptography now?
If your data must stay confidential for a long period, begin migration planning now. A hybrid approach that combines classical and post-quantum algorithms provides defense in depth during the transition.
What is harvest-now, decrypt-later?
An adversary records encrypted communications today and decrypts them once quantum computers are available. Post-quantum key encapsulation addresses this threat because it does not rely on the problems that known quantum algorithms solve efficiently.
Are NIST-standardized algorithms the only post-quantum options?
NIST standards are recommended for most deployments because they have been publicly reviewed. Other candidates exist but lack standardization support, so using them increases risk.
How much larger are post-quantum keys compared to classical?
ML-KEM public keys and ciphertexts are larger than elliptic-curve keys and ciphertexts, on the order of a kilobyte each, so the difference matters most in bandwidth-constrained settings. Compare the exact sizes for your parameter set against the classical algorithm you currently use.
Related methods
Sources
Avanzi, R., Bos, J., Ducas, L., & Kiltz, E. (2022). CRYSTALS-Kyber algorithm specification and supporting documentation. NIST Post-Quantum Cryptography Project.
Open publication referenceNational Institute of Standards and Technology (NIST). (2016). Post-Quantum Cryptography: Call for Proposals. NIST Special Publication 800-56C Rev. 1.
Open publication reference