Provable security notes / VIII

Fujisaki-Okamoto and KEMs

Fujisaki-Okamoto transforms derive encryption coins from secret message material and verify ciphertexts by re-encryption, giving reductions a way to simulate decapsulation.

The Fujisaki-Okamoto transform addresses a recurring problem: a reduction facing a decryption or decapsulation query may not know the secret key, but it still has to answer consistently. The transform arranges that honestly generated ciphertexts can be recognized by recomputation.

Basic idea

Start with randomized public-key encryption

\[E_{pk}(m;r).\]

In an FO-style KEM, encapsulation first samples hidden message material \(\mu\) uniformly from the base encryption scheme’s message space. The hash interface \(H\) derives encryption coins and \(G\) derives the encapsulated key. The proof models these interfaces as independent random oracles. Distinct input labels separate their uses when an implementation employs a common hash primitive. A representative construction has the form

\[r=H(\mu), \qquad c=E_{pk}(\mu;r), \qquad K=G(\mu,c).\]

Decapsulation decrypts to a candidate \(\mu'\), recomputes \(E_{pk}(\mu';H(\mu'))\), and returns \(G(\mu',c)\) when the ciphertext is consistent. A failed decryption or failed comparison follows the transform’s rejection rule. The transform theorem specifies the base-encryption security, ciphertext-distribution, and correctness hypotheses under which this construction is IND-CCA secure.

The entropy of \(\mu\) is essential: if it were a user message drawn from a short dictionary, an adversary could evaluate \(E_{pk}(\mu;H(\mu))\) for every candidate and compare it with \(c\). Arbitrary payloads are instead encrypted under the encapsulated key, as in Part 09.

Why the check matters

The comparison accepts only ciphertexts consistent with the recovered message and its hash-derived coins. A classical reduction can enumerate the message candidates in its hash-query table, re-encrypt them, and recognize matching ciphertexts without the secret key. The proof bounds the chance that a relevant candidate is absent from that table, together with the effect of decryption failures.

KEM view

A key encapsulation mechanism has

\[\mathsf{KeyGen},\quad \mathsf{Encaps},\quad \mathsf{Decaps}.\]

Decapsulation in this series is deterministic for a fixed secret key and fixed oracle functions. For \((pk,sk)\leftarrow\mathsf{KeyGen}\) and \((c,K)\leftarrow\mathsf{Encaps}_{pk}()\), correctness requires \(\mathsf{Decaps}_{sk}(c)=K\) except with the stated failure probability. Write

\[\delta_{\mathsf{KEM}}=\Pr[\mathsf{Decaps}_{sk}(c)\ne K],\]

where the probability includes key generation, encapsulation, and oracle randomness in a random-oracle analysis. Perfect correctness gives \(\delta_{\mathsf{KEM}}=0\).

The IND-CCA security game asks whether the challenge key is the real encapsulated key or an independent uniform key, with decapsulation-oracle access excluding the challenge ciphertext after it is issued.

IND-CCA KEM game

  1. \(\mathcal C\) runs \((pk,sk)\leftarrow\mathsf{KeyGen}(1^\lambda)\) and sends \(pk\) to \(\mathcal A\).
  2. \(\mathcal A\) may query a decapsulation oracle \(O_{\mathsf{Decaps}}(c)=\mathsf{Decaps}_{sk}(c)\).
  3. \(\mathcal C\) computes \((c^*,K_0)\leftarrow\mathsf{Encaps}_{pk}()\) and samples \(K_1\) independently and uniformly from the KEM key space.
  4. \(\mathcal C\) samples \(b\leftarrow\{0,1\}\) and sends \((c^*,K_b)\) to \(\mathcal A\).
  5. \(\mathcal A\) continues to query \(O_{\mathsf{Decaps}}\), except it may not query \(c^*\).
  6. \(\mathcal A\) outputs \(b'\) and wins if \(b'=b\). Here \(b=0\) denotes the real encapsulated key and \(b=1\) denotes the random-key branch; some texts reverse these labels.

The reduction must reproduce the decapsulation result for every permitted query, including malformed ciphertexts and repeated queries.

Challenger \(\mathcal C\)
Adversary \(\mathcal A\)
\((pk,sk)\leftarrow\mathsf{KeyGen}(1^\lambda),\quad \mathcal O_{\mathsf{Decaps}}(c):=\mathsf{Decaps}_{sk}(c)\)
\((pk,\mathcal O_{\mathsf{Decaps}})\)
\(c_i\leftarrow\mathcal A_1^{\mathcal O_{\mathsf{Decaps}}}(pk,\mathsf T_{i-1})\)
\(c_i\)
\(L_i:=\mathcal O_{\mathsf{Decaps}}(c_i),\quad \mathsf T_i:=\mathsf T_{i-1}\,\|\,((c_i,L_i))\)
\(L_i\)
\((c^*,K_0)\leftarrow\mathsf{Encaps}_{pk}(),\ K_1\leftarrow\mathcal K,\ b\leftarrow\{0,1\}\)
\((c^*,K_b)\)
\(c_j\leftarrow\mathcal A_2^{\mathcal O_{\mathsf{Decaps}}}(\mathsf T,c^*,K_b),\quad c_j\ne c^*\)
\(c_j\ne c^*\)
\(L_j:=\mathcal O_{\mathsf{Decaps}}(c_j)\)
\(L_j\)
\(b^{\prime}\leftarrow\mathcal A_3(\mathsf T,c^*,K_b)\)
\(b^{\prime}\)
\(\mathsf{IND\text{-}CCA}^{\mathcal A}_{\mathsf{KEM}}(1^\lambda):=\mathbf 1[b^{\prime}=b]\)

In FO-style KEMs, decapsulation follows this structure:

  1. recover candidate secret material;
  2. rederive coins and keys by hashing;
  3. recompute the ciphertext or a verification value;
  4. output the real derived key if consistent;
  5. otherwise return \(\bot\) for explicit rejection, or derive a fallback key from secret rejection material and the ciphertext for implicit rejection.

The fallback in implicit rejection is reproducible for the same ciphertext and secret key. It is not a newly sampled independent key on every call.

Proof terms

The loss terms in an FO theorem can be organized schematically as

\[\operatorname{Adv}^{\mathsf{cca}}_{\mathsf{KEM}}(A) \le \varepsilon_{\mathsf{red}}(B) +\varepsilon_{\mathsf{fail}}(A) +\varepsilon_{\mathsf{sim}}(q_H,q_D).\]

Here \(\varepsilon_{\mathsf{red}}\) includes the underlying hardness bound and reduction loss; \(\varepsilon_{\mathsf{fail}}\) bounds the adversarial failure event defined by the theorem; and \(\varepsilon_{\mathsf{sim}}\) accounts for the remaining simulation error at hash-query budget \(q_H\) and decapsulation-query budget \(q_D\). An honest-ciphertext failure probability alone does not bound an adversary’s ability to find failures. The theorem connects those quantities under its stated correctness assumptions and query limits. The modular analysis of Hofheinz, Hövelmanns, and Kiltz gives explicit bounds for distinct transforms and oracle models.

Post-quantum relevance

Lattice KEMs combine a base encryption scheme with an FO-style transform to obtain chosen-ciphertext security while accounting for decryption failures. For example, ML-KEM re-encrypts the recovered message and uses implicit rejection when the comparison fails. Its concrete algorithms fix the hash inputs and key derivation; the representative formula above illustrates the mechanism.

A post-quantum argument must also cover quantum adversaries. In the quantum random oracle model, hash queries can be superpositions, so the classical table-enumeration simulation requires a different analysis. The resulting query and failure terms are those of the quantum theorem.

Realizing the decapsulation interface

The implementation preserves the proved interface by performing the specified re-encryption check and rejection-key selection without exposing secret-dependent timing, memory access, or diagnostic output. These observations belong in the attack model whenever the environment exposes them.