---
title: Fujisaki–Okamoto Transformation in Cryptography
url: https://www.emergentmind.com/topics/fujisaki-okamoto-transformation
type: topic
---

# Fujisaki–Okamoto Transformation in Cryptography

The Fujisaki–Okamoto (FO) Transformation is a generic construction that lifts the security of public-key encryption (PKE) schemes to chosen-ciphertext attack (CCA) security in the random oracle model (ROM) and quantum random oracle model (QROM). Typically realized as a key encapsulation mechanism (KEM), the FO transformation derandomizes encryption and couples ciphertexts with hashed secret keys via random oracles, providing robust security guarantees when instantiated with suitable underlying primitives. The transformation is fundamental in post-quantum cryptography due to its tight security bounds and the ability to leverage generic quantum-proof simulation techniques in the QROM.

## 1. Formal Description and Variants

Let $\Pi = (\mathsf{KeyGen}, \mathsf{Enc}, \mathsf{Dec})$ denote a PKE scheme over message space $\mathcal{M}$, randomness space $\mathcal{R}$, and ciphertext space $\mathcal{C}$, with $\mathsf{Enc}_{pk}(m;r) \in \mathcal{C}$ and $\mathsf{Dec}_{sk}(c) \in \mathcal{M} \cup \{\bot\}$. The FO transform employs two random oracles:
- $G: \mathcal{M} \rightarrow \mathcal{R}$ (to derandomize encryption)
- $H: \mathcal{M} \rightarrow \mathcal{K}$ (to derive keys)

The transformation admits two principal decapsulation behaviors:
- **Explicit-Reject FO ($\mathrm{FO}^\perp$):** On decapsulation, if decryption or re-encryption fails, return $\bot$.
    - $\mathsf{Encaps}(pk)$:
        1. Sample $m \gets \mathcal{M}$ uniformly,
        2. $r \gets G(m)$,
        3. $c \gets \mathsf{Enc}_{pk}(m;r)$,
        4. $k \gets H(m)$,
        5. Output $(c, k)$.
    - $\mathsf{Decaps}(sk, c)$:
        1. $m' \gets \mathsf{Dec}_{sk}(c)$,
        2. If $m' = \bot$ or $\mathsf{Enc}_{pk}(m'; G(m')) \neq c$ return $\bot$,
        3. Otherwise, return $H(m')$.

- **Implicit-Reject FO ($\mathrm{FO}^\varnothing$):** On decapsulation failure, return $H(c)$, masking decryption errors.

Derandomization by $G$ replaces fresh random coins in the encryption algorithm, ensuring determinate encryption of $m$. The explicit-reject mechanism is favored for its natural fit with derandomized PKE and eliminates failure-based side-channel vulnerabilities [2203.10182].

## 2. Security Model in the Quantum Random Oracle Model

CCA security of FO-based KEMs is formalized via the IND-CCA game in the QROM, where an adversary has quantum access to $H$ and $G$ oracles and (classical) adaptive access to the decapsulation oracle—prohibited from querying the actual challenge ciphertext. The reduction constructs exhibit the following form for adversarial advantage:
\[
\mathrm{ADV}^{\mathrm{IND\text{-}CCA}}_{\mathrm{FO}}(\mathcal{A}) = \left|\Pr[b' = b] - \frac{1}{2}\right|
\]
where $b$ is the challenge bit and $(c^*, K^*_b)$ the challenge.

Security proofs must simulate decapsulation without knowledge of the secret key, particularly challenging in the QROM when decryption failure is possible. Classical reductions typically incur a Grover-style $O(q^2)$ term related to the query complexity and the underlying scheme's decryption-failure probability [2203.10182].

## 3. Proof Techniques and Hybrids

Contemporary QROM proofs (Don–Fehr–Majenz–Schaffner, Aubry–Hölzl–Unruh) employ a sequence of hybrid arguments and technical lemmas:

1. **Hybridization**: Random oracles $H$ and $G$ are merged to a single oracle $F$, and oracles are reprogrammed at challenge points. This step is statistically undetectable for the adversary [2103.03085].
2. **One-Way-to-Hiding (O2H) Lemma**: Used to relate CCA security to CPA/OW-security via a single query index and extraction of challenge messages, accounting for quantum superpositions in the QROM. The principal root-loss ($2q\sqrt{\cdot}$) in the tightness of the reduction arises from O2H and is irreducible [2103.03085].
3. **Extractable RO-Simulator**: The decapsulation process is simulated via Zhandry’s compressed-oracle unitary and extraction measurements; the almost commutator bound allows "inserting" extraction without perturbing the system, with error at most $8\sqrt{2\Gamma_R/2^n}$ in trace distance.
4. **Decryption Failure Handling**: Traditional QROM bounds handle decryption failures through artificial "implicit rejection," with security loss quadratic in the number of random oracle queries and proportional to the worst-case decryption error. New reductions introduce failure search games and explicit evaluation of failure-finding advantages, greatly tightening security bounds [2203.10182].

## 4. Explicit Security Bounds and Comparison

The QROM reductions provide nonasymptotic, composable, and instantiable security bounds for FO-KEMs. For instance, letting $q = q_H + q_G + 2 q_D$ (number of RO/decapsulation queries), $\delta$ the decryption error, and $\gamma$ the min-entropy ("spreadness") of the PKE:
\[
\mathrm{ADV}^{\mathrm{IND\text{-}CCA}}_{\mathrm{FO}}(\mathcal{A}) \leq 2q\sqrt{\mathrm{ADV}^{\mathrm{OW\text{-}CPA}}_{\mathrm{PKE}}(\mathcal{B})} + 24q^2\sqrt{\delta} + 24q\sqrt{q q_D} 2^{-\gamma/4}
\]
For FO with explicit rejection, [2203.10182] shows that instead of the prior
\[
\mathrm{Adv}_{\mathrm{FO}}(A) \le \mathrm{Adv}_{\mathrm{IND-CPA}}(B) + O(q_H^2)\,\delta_{\max}
\]
the additive overhead is reduced to
\[
O(q_{\text{dec}} \cdot (\mathrm{Adv}_{\mathrm{FFP}}^{\mathrm{NG}} + \mathrm{Adv}_{\mathrm{FFP}}^{\mathrm{NK}}) + q_{\text{dec}}^2 \cdot 2^{-\gamma/2})
\]
where $\mathrm{Adv}_{\mathrm{FFP}}^{\mathrm{NG}}$ and $\mathrm{Adv}_{\mathrm{FFP}}^{\mathrm{NK}}$ are new "failure search" game advantages for the public-key and keyless settings, respectively. These terms are typically negligible for practical parameter choices.

## 5. Key Technical Lemmas

Several core lemmas underlie the FO transformation’s QROM security:
- **Almost Commutator Bound**: For the compressed-oracle evolution $O$ and a relational “search” measurement $M$, the commutator norm is bounded by $8\,2^{-n/2}\sqrt{2\Gamma}$, where $\Gamma$ is the maximal number of colliding input candidates per output. This facilitates online extraction from the QROM without state disturbance [2103.03085].
- **Extractable Compressed Oracle Simulator (eCO)**: Maintains a classical database and provides quantum-accessible oracles with interfaces for both normal and extraction behavior. Ensures extraction and query operations "almost commute" with well-quantified error [2203.10182].
- **O2H Lemma in QROM**: Provides tight bounds connecting oracular reprogramming (as in FO challenge manipulation) to underlying cryptographic security, flagging adversary queries that may violate the reduction.
- **Quantum Search Lower Bounds**: Any adversary aiming to find (input, output) pairs in a rare relation relative to a QROM faces limits proportional to query squared over the output space, bounding the occurrence of attacks based on rare decryption failure events.

## 6. Implementation Choices and Side-Channel Considerations

Explicit-reject FO offers implementation and security advantages:
- **Transparent Failure Handling**: Explicit rejection returns $\bot$ on decryption or re-encapsulation mismatch, mirroring the underlying PKE. This avoids branching on oracle outputs (as in implicit-reject, which uses $H(c)$), which can introduce timing or power side-channels.
- **Instantiability and Flexibility**: Concrete security bounds in terms of all parameters $(q_H, q_G, q_D, \delta, \gamma)$ enable direct instantiation with lattice, code-based, or other candidate PKE schemes for post-quantum cryptography.

## 7. Significance and Generalizations

The FO transformation solidifies the pathway from basic OW-CPA/IND-CPA PKE to tightly-defined IND-CCA KEMs in both ROM and QROM, serving as a modular technique for designing post-quantum secure key exchange and encryption. The approach is generic with respect to improvements in compressed-oracle simulation, extraction, and quantum security reductions, enabling broader application in cryptographic transformations requiring random oracles. The explicit, nonasymptotic QROM security analysis [2103.03085][2203.10182] completes the theoretical foundations for robust real-world deployments of FO-based schemes in the presence of quantum adversaries.

Source: https://www.emergentmind.com/topics/fujisaki-okamoto-transformation