Verifiable Decapsulation: Recognizing Faulty Implementations of Post-Quantum KEMs
Modifies the Fujisaki-Okamoto transform so skipped re-encryption checks in KEM decapsulation cause visible correctness-test failures, demonstrated on ML-KEM and HQC.
Schemes: ML-KEM, HQC, Fujisaki-Okamoto transform, Fischlin-Günther verifiable verification
Findings (quotes checked against the source text)
-
A modified FO transform binds re-encryption to functionality so a faulty decapsulation that skips re-encryption is exposed by basic correctness tests.
In this work, we develop a modified FO transform that binds re-encryption to functionality, ensuring that a faulty implementation which skips re-encryption will be exposed through basic correctness tests.
-
The approach exports an unpredictable PKE confirmation code and embeds it into the KDF to confirm that most of the re-encryption step was performed.
by exporting an unpredictable confirmation code from the public key encryption and embedding it into the key derivation function, we can confirm that (most of) the re-encryption step was indeed performed during decapsulation.
-
The method is applied to ML-KEM and HQC with negligible overhead by leveraging entropy lost through ciphertext compression or truncation.
We show how to apply this technique to ML-KEM and HQC, both with negligible overhead, by leveraging the entropy lost through ciphertext compression or truncation.
-
Experiments show the known implementation flaw in HQC's reference implementation makes basic test cases fail under the approach.
Our experiments show that the implementation flaw in HQC's reference implementation indeed makes basic test cases fail when following our approach.
Numbers (as extracted, not quote-checked)
- Time before a re-encryption flaw in HQC's reference implementation was noticed: 19 months
For builders
Any PQ KEM implementation built on FO should adopt the confirmation-code binding or equivalent correctness tests so a skipped re-encryption check cannot pass unnoticed.
Limits
Abstract-only source here; full text not read. Proofs and overhead claims are unverified by me. Relevance is to KEM implementation safety, not blockchain design directly.