Audit checklist
Scope for a review of a post-quantum implementation or integration.
Specification conformance
- Implements the final FIPS 203/204/205 (2024-08-13) or SP 800-208, not a pre-standard round submission
- Passes the NIST ACVP / CAVP known-answer tests for every parameter set shipped
- Domain-separation bytes, context strings, and pre-hash variants match the standard exactly
- FN-DSA and HQC have no final standard yet: the exact specification version targeted is pinned and documented
Input validation
- ML-KEM: modulus check on encapsulation keys, hash check on decapsulation keys, length checks on ciphertexts
- ML-KEM, HQC, FrodoKEM: the re-encryption check compares the entire ciphertext and every value the specification binds; a partial comparison is a key-recovery bug
- ML-DSA / SLH-DSA: bounds checks on all decoded signature components; reject malformed encodings before any secret operation
- Stateful signatures: verifier validates parameter identifiers and index ranges
- Hybrids: reject degenerate classical inputs (for example an all-zero X25519 result) so one component cannot be nulled
Side channels
- No secret-dependent branches, memory accesses, or variable-time arithmetic (division, modular reduction, floating point)
- Rejection-sampling loops do not leak secret-correlated information
- Verified with tooling (for example ctgrind, dudect, or formal methods), not by inspection alone
- Constant-time behaviour is checked in the compiled binary for each supported compiler and optimization level; compilers have turned constant-time source into secret-dependent branches in ML-KEM, HQC and FrodoKEM code
Randomness and hedging
- Fresh seeds from an approved DRBG for every key generation and encapsulation
- ML-DSA and SLH-DSA use hedged signing unless there is a documented reason for deterministic mode
- Fault-attack countermeasures for signing on devices an attacker can reach physically or co-locate with: hedging alone does not stop fault attacks on ML-DSA, and hash-based signing is exposed to Rowhammer and glitching
Protocol integration
- Hybrid combiners bind both shared secrets and both ciphertexts (RFC 10024, SP 800-227)
- Key-share encoding order matches the named group definition
- Downgrade and negotiation paths cannot silently drop the post-quantum component
- Stateful signature state is persisted atomically, never cloned, and survives crash and restore; a failed lock or write must abort signing
Crypto-agility and operations
- Algorithm identifiers are negotiated or versioned so a future switch (for example to HQC or FN-DSA) does not require a protocol redesign
- Key and signature sizes are accounted for in storage, MTU, and DoS budgets
- Documented migration plan aligned to the NIST IR 8547, CNSA 2.0, EU, or UK NCSC timeline that applies
Algorithm-specific checks are listed on each algorithm page. The incidents behind these items are recorded in the feed.
zkSecurity audits post-quantum cryptography: implementations, protocol integrations and migrations.
Request an audit →