Provable security notes / IX

KEM-DEM hybrid encryption

Hybrid encryption combines KEM key indistinguishability with symmetric payload protection through an explicit composition theorem.

Public-key encryption is rarely used directly for long messages. A hybrid construction uses a KEM to establish a symmetric key and a DEM to encrypt the payload.

A KEM produces

\[(c_K,K)\leftarrow\mathsf{Encaps}_{pk}().\]

A DEM encrypts the message:

\[c_M\leftarrow\mathsf{Enc}^{\mathsf{DEM}}_K(M).\]

The final ciphertext is \((c_K,c_M)\).

Composition theorem shape

For perfectly correct components, deterministic decapsulation, and one encapsulation per payload, a CCA-secure KEM and a one-time CCA-secure DEM yield CCA-secure hybrid encryption, with matching key spaces and unambiguous ciphertext parsing. The DEM game provides one challenge encryption followed by decryption access on other ciphertexts under the same key. This single-encryption requirement is sufficient because each payload uses a new encapsulation. Shoup’s KEM-DEM formulation, Sections 3–5, states these interfaces.

Before the challenge, the KEM reduction answers decryption queries through its decapsulation oracle and the local DEM algorithm. After the challenge, the supplied key encrypts the challenge payload and decrypts permitted queries whose encapsulation component equals \(c_K^*\). Other encapsulation components still go to the decapsulation oracle. Perfect KEM correctness makes this simulation exact in the real-key branch. Replacing the supplied key by an independent uniform key produces the DEM experiment. In the success-bias convention used here, the two steps give a bound of the form

\[\operatorname{Adv}^{\mathsf{ind\text{-}cca}}_{\mathsf{hyb}}(A) \le 2\,\operatorname{Adv}^{\mathsf{ind\text{-}cca}}_{\mathsf{KEM}}(B) +\operatorname{Adv}^{\mathsf{ot\text{-}cca}}_{\mathsf{DEM}}(C).\]

The factor \(2\) converts the KEM distinguishing bias into the difference between the real-key and random-key game probabilities. The DEM reduction generates its own KEM key pair and uses the secret key for pre-challenge queries. After the challenge, queries using \(c_K^*\) go to the DEM decryption oracle; other queries continue to use that KEM secret key. The reductions also specify their running times and query counts.

If the KEM has correctness error \(\delta_{\mathsf{KEM}}\) as defined in Part 08, the real-key simulation changes only post-challenge replies with encapsulation component \(c_K^*\). Those replies agree unless \(\mathsf{Decaps}_{sk}(c_K^*)\ne K^*\). Coupling the executions adds at most \(\delta_{\mathsf{KEM}}\) to the displayed bound, as also noted in Shoup’s Section 5. Additional key derivation, nonce generation, or protocol state requires the corresponding component analysis.

What the DEM must provide

CCA composition requires the DEM to remain confidential under decryption queries. Even though the exact challenge pair \((c_K^*,c_M^*)\) is forbidden, a query \((c_K^*,c_M')\) with \(c_M'\ne c_M^*\) is allowed. The KEM cannot reject that query solely because its first component is the challenge encapsulation. An authenticated-encryption DEM combines privacy under the uniform key with an integrity check that limits the usefulness of altered payload queries. Thus the reduction can protect confidentiality even when the adversary retains the challenge encapsulation.

Requirement Reason
KEM key indistinguishability The challenge key is indistinguishable from uniform despite allowed decapsulation queries.
DEM privacy and integrity Privacy hides the challenge payload; integrity bounds acceptance of altered payloads under its key.
Context binding Authenticated associated data or key derivation binds protocol identifiers and transcript data.
Domain separation Separate derivation labels distinguish encryption, authentication, and export-key uses.
Uniform errors KEM and DEM failures should not create a distinguishing channel.

The KEM and DEM rows describe the component security needed for the composition theorem. Context binding and domain separation express additional protocol requirements; error behavior determines whether the implementation exposes the theorem’s decryption interface.

Example: what can break composition

Separate error messages

Suppose a receiver reports “KEM failure” for invalid encapsulations and “DEM failure” for invalid payload tags. A proof that models decryption as returning only \(\bot\) may not apply. The adversary now sees a richer behavioral channel: not only reject or accept, but which layer caused rejection.

Missing context binding

If the same KEM-derived key can be used across protocol modes, an attacker may move a ciphertext from one context to another. The KEM and DEM can each satisfy their local theorem while the protocol violates the intended binding property.

Reading hybrid claims

The composition argument assigns a role to each component: the KEM establishes an indistinguishable key, the DEM protects the payload, and the protocol binds the intended context. A complete protocol claim then accounts for every observable response, including rejection behavior.