The PQC Algorithms: How They Work and How to Choose
The standardised post-quantum algorithms read from their documents: ML-KEM and ML-DSA in full, hash-based signatures in brief, what named bodies say about choosing, and a workshop that runs ML-KEM and ML-DSA in the browser.
Why this matters: Each new algorithm is defined in one document and used under others. This lesson shows each statement with the document, edition and place it comes from, so that a choice of algorithm can be traced to its source.
Start here: Open ML-KEM Round Trip, generate a key pair, encapsulate and decapsulate, then change one byte of the ciphertext and decapsulate again.
This section introduces the core cryptographic jobs covered in this lesson and how they fit together in a system.
Key establishment and key derivation
NIST SP 800-227 explains that after a KEM establishes a shared secret key, an application may use key derivation to produce multiple symmetric keys from that initial key.
Source: Recommendations for Key-Encapsulation Mechanisms, 2025-09, Section 4.1 How to Establish a Key With a KEM, PDF page 25
NIST SP 800-227 states that when an application needs a different amount of keying material than a KEM outputs, the shared secret key may be supplied to an approved key-derivation method from SP 800-108 or SP 800-56C.
Source: Recommendations for Key-Encapsulation Mechanisms, 2025-09, Section 4.3 Post Processing of the Shared Secret Key, PDF page 27
NIST SP 800-56C Rev. 2 requires that derived keying material be computed in full before output and used only as secret keying material, such as symmetric keys for data encryption or message integrity.
Source: Recommendation for Key-Derivation Methods in Key-Establishment Schemes, 2020-08, Section 1 Introduction, PDF page 9
Authentication and digital signatures
Next, we look at the separate role of authentication and digital signatures.
NIST SP 800-227 states that most applications require authentication and cryptographic integrity checking, for example to prevent machine-in-the-middle attacks, typically using additional elements such as digital signatures and certificates.
Source: Recommendations for Key-Encapsulation Mechanisms, 2025-09, Section 4.1 How to Establish a Key With a KEM, PDF page 25
NIST SP 800-227 requires that an encapsulating party obtaining another party's static encapsulation key have assurance of the other party's ownership before or during key establishment, such as from a trusted party like a certificate authority or from proof of possession combined with verification of real-world identity.
Source: Recommendations for Key-Encapsulation Mechanisms, 2025-09, Section 4.2 Conditions for Using KEMs Securely, PDF page 26
According to FIPS 204, digital signatures detect unauthorized modifications to data, authenticate the signatory's identity, and provide non-repudiation by giving recipients evidence for a third party that the claimed signatory generated the signature.
Source: Module-Lattice-Based Digital Signature Standard (ML-DSA), 2024-08, Abstract, PDF page 3
Symmetric algorithms in the transition
Alongside public-key tools, this block looks at what published guidance says about symmetric cryptography.
NIST IR 8547 states that existing symmetric-cryptography standards, including hash functions, are significantly less vulnerable to known quantum attacks than public-key standards; NIST does not expect to need to transition away from them as part of the PQC migration, although applications should move away from 112-bit symmetric standards.
Source: Transition to Post-Quantum Cryptography Standards, 2026-10, Section 2.1.3 Symmetric Cryptography, page 12; Section 4.1.3 Symmetric Cryptography, page 25
The NSA CNSA 2.0 FAQ specifies the Advanced Encryption Standard (AES) with 256-bit keys and Secure Hash Algorithm (SHA) SHA-384 or SHA-512 for all classification levels.
Source: CNSA 2.0 Frequently Asked Questions, 2026-10, Background, Table: Commercial National Security Algorithm Suite 2.0, pp. 7-8
Go deeper: PQC 101, Quantum Threats, TLS Basics
Check off all sections and mark this reading done.
Related modules
Next step
Continue to PQC Candidates & LifecyclePQC Candidates & Lifecycle is where this module hands off the history of how the standardised algorithms were selected.
Production Tool Capabilities & Verification ChecklistSecurity Architects, Cryptographic Developers & Validation Engineers
Capabilities to require in your production tools:
- Require FIPS 203 ML-KEM implementations to verify encapsulation-key byte length and valid integer range before ML-KEM.Encaps, check the decapsulation key and check the ciphertext on every ML-KEM.Decaps execution, and destroy the implicit-reject comparison flag before terminating without returning it.
- Use FIPS 204's default hedged signing variant with fresh and precomputed randomness, accept context strings of 255 or fewer bytes for signing and verification, and recognize HashML-DSA as a domain-separated pre-hash variant while pure ML-DSA is generally preferred.
- Use final FIPS 203 ML-KEM and FIPS 204 ML-DSA rather than non-adherent CRYSTALS-Kyber or CRYSTALS-Dilithium, which differ in input-output behavior and direct-versus-pre-hash domain separation and are not CNSA 2.0 compliant per the NSA CNSA 2.0 FAQ.
How to evaluate in your environment
Test ML-KEM by submitting encapsulation keys with invalid byte lengths or out-of-range integers to ML-KEM.Encaps and ciphertexts to ML-KEM.Decaps to confirm required checking and that no comparison flag is returned. Test ML-DSA by checking that default signing uses hedged randomness, that signing and verification accept context strings of 255 or fewer bytes, and that HashML-DSA signs a digest with domain-separation information.
Production evidence to collect
Versioned library, HSM or service inventory with the exact FIPS 203 and FIPS 204 parameter sets in use, the ML-KEM input-check test results, and the ML-DSA hedged-signing and context-string test results.
Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.
Record evidence for your environment
Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.
Evidence missing. 0 of 3 requirements have a reference or scope rationale.
Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.