← Back to section · Post-Quantum Cryptography

The Fujisaki–Okamoto Transform: How ML-KEM Defeats Chosen-Ciphertext Attacks

Starting from Bleichenbacher-style active attacks: how the FO transform uses deterministic re-encryption and implicit rejection to upgrade a scheme that only resists passive eavesdropping into a key-encapsulation mechanism secure against chosen-ciphertext attacks.

Published 22 November 2026 · 5 min read · PQ Frontier

The Fujisaki–Okamoto Transform: How ML-KEM Defeats Chosen-Ciphertext Attacks
AI-generated site artwork
Video explainer · ML-KEM: one complete key exchange

Why “secure against eavesdropping” is nowhere near enough

A scheme that only achieves IND-CPA (security against passive eavesdropping) assumes the attacker can only watch. In real systems attackers are active: they can knock on your server with arbitrary forged ciphertexts and observe the responses, the timing, whether the connection continues. RSA PKCS#1 v1.5 fell to exactly this — the Bleichenbacher attack used a “was the padding correct” error oracle to grind out plaintexts bit by bit. For a key-encapsulation mechanism the security yardstick is therefore IND-CCA: even with a decapsulation oracle (ask anything except the challenge ciphertext itself), the attacker gains no advantage.

ML-KEM’s inner K-PKE has only CPA security on its own. The tool that lifts it to CCA is the Fujisaki–Okamoto (FO) transform — a generic construction proposed in 1999 and later systematised by Hofheinz, Hövelmanns and Kiltz, among others. Kyber/ML-KEM uses its implicit-rejection variant (often written FO⊥).

The core idea of FO: make encryption deterministic

Probabilistic encryption has an awkward property: encrypting the same message twice gives different results, so a verifier cannot tell whether a ciphertext “was produced by the rules”. FO’s remedy is radical — make the encryption randomness a deterministic, hash-derived function of the message itself. Encryption then goes from “given the public key and message, the outcome is uncertain” to “given the public key and message, the outcome is unique”: anyone (the public key suffices) can replay the encryption and check whether a ciphertext is legitimate.

In ML-KEM this step is performed by (K, r) = G(m ‖ H(ek)): r is the encryption randomness, determined jointly by the message m and the public-key hash. To forge a ciphertext that passes verification, an attacker must know some m and honestly run K-PKE encryption on it — but knowing m means knowing the shared secret derived from m, so they cannot forge any ciphertext whose secret they do not already know. That is the security intuition of FO: the set of valid ciphertexts is exactly the set that people who know the corresponding secret can produce.

Decapsulation’s three moves: decrypt, re-encrypt, compare

With deterministic encryption, decapsulation becomes clean: decrypt to get m′ → derive r′ from m′ and re-encrypt to get c′ → compare c′ against the received c in constant time. A match certifies that the ciphertext was indeed produced by the rules by someone who knew m, and the output is the K′ derived from m′; a mismatch is a forgery, full stop.

This check compresses the attacker’s room to zero: any ciphertext they submit is either one they generated themselves from a known m (whose secret they already know — asking gains nothing), or it fails the comparison. The decapsulation oracle is thereby defanged — the pivotal step in FO proofs, whose formal versions reduce CCA security, in the random-oracle model (and its stronger quantum variant), to the CPA security of the inner scheme and the hardness of the lattice problem.

Implicit rejection: why failure must not raise an error

What should happen after a failed comparison? The worst option is returning an error — the error itself is an oracle, the lifeblood of the Bleichenbacher attack. The second-worst is returning fresh randomness: it leaks nothing, but the protocol layer may mistake the “random secret” for a successful negotiation, and its subsequent behaviour can still expose the difference. ML-KEM chooses implicit rejection: output J(z ‖ c), where z is a secret random value embedded in the private key at generation time and c is the (forged) ciphertext received. This output is distributionally indistinguishable from a genuine shared secret, so the attacker cannot tell whether they hold a real secret or a fake one; and since it is uniquely determined by z and c, the protocol layer sees no anomalous branch. Combined with constant-time comparison and selection logic throughout, decapsulation behaves externally like a black box that always works.

Note that “decapsulation failure” in ML-KEM names two unrelated concepts that are often conflated: an honest ciphertext decrypting incorrectly because of excess noise (probability around 2^-139, suppressed by the parameters), and a forged ciphertext being rejected (an FO mechanism). The first is a correctness matter; the second is a security mechanism — confusing them is a frequent misreading in implementations and audits.

Provenance: from the 1999 construction to quantum proofs

The FO transform takes its name from Fujisaki and Okamoto’s 1999 work, originally a generic method for turning one-way trapdoor-permutation-style schemes into CCA-secure public-key encryption. In the early 2000s Dent and others generalised it to broader classes of encryption schemes; in 2017 the modular analysis by Hofheinz, Hövelmanns and Kiltz (known in the literature as HHK) decomposed the transform into composable building blocks — first a “derandomise and check by re-encryption” step yielding a weak form of chosen-ciphertext security, then strengthening steps such as implicit rejection — with tight security reductions, and Kyber’s design documentation organises its security argument along exactly the HHK framework. The post-quantum era added one more gate for the proofs to pass: a quantum attacker can query the hash function in superposition, so classical random-oracle arguments no longer suffice and proof techniques in the quantum random-oracle model (QROM) are required — which is why the proofs for lattice KEMs were re-polished by several groups of researchers around 2018. For engineering readers, the point of this history is that FO is not a patch Kyber improvised: it is a standard component with over two decades of analysis behind it, validated in both the classical and quantum models — and that is the ground on which standardisation bodies dared to rest the CCA security of an entire KEM.

Summary

The FO transform is ML-KEM’s bridge from “mathematically hard” to “usable in a protocol”: deterministic derivation of the randomness makes ciphertexts publicly verifiable, re-encryption and comparison neutralise the decapsulation oracle, and implicit rejection makes failure leave no trace. Once you see these three moves, you also see why an ML-KEM private key carries an extra copy of the public key and that unassuming value z — both exist to serve this transform.

References

  1. NIST, FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, 2024. https://doi.org/10.6028/NIST.FIPS.203
  2. Hofheinz, D., Hövelmanns, K., Kiltz, E., A Modular Analysis of the Fujisaki–Okamoto Transformation, TCC 2017. https://eprint.iacr.org/2017/604

Tags: ML-KEMFujisaki-OkamotoIND-CCAImplicit Rejection