The symmetric-cipher leg of hybrid CCA security #
This intermediate experiment uses the symmetric cipher's actual key distribution. Its
distinguished encapsulation component is redirected to that key before and after the challenge.
Its security is the DEM hop of [BS23], Exercise 12.5(a): a step toward that exercise,
not the exercise itself. Cslib.Crypto.Encryption.hybrid_indcca2On adds the two KEM hops. On the
DEM side, SymmetricCipher.ctSpace models the ciphertext space C and OneTimeINDCCA answers
decryption queries outside C with the rejection [] (decrypt_eq_none_of_ctSpace_eq_false), so
on an efficiently recognizable C it matches Attack Game 9.2 (Definition 9.6, printed pp. 362–363).
On the KEM side, ctSpace models the KEM ciphertext space C_kem, while the full exercise stays
open because the KEM games give pk to the distinguisher (#5293).
Main definitions #
Cslib.Crypto.Encryption.hybridDEMGame: the existing two-phase CCA game with a hidden DEM key.Cslib.Crypto.Encryption.hybridDEMHandler: canonical parsing and bounded oracle forwarding.Cslib.Crypto.Encryption.hybridToOneTimeCCAAdversary: the one-time symmetric CCA reduction.
Main results #
Cslib.Crypto.Encryption.eval_hybridDEMGame: exact equality with the symmetric experiment.Cslib.Crypto.Encryption.isOraclePPT_hybridToOneTimeCCAAdversary: native reduction certificate.Cslib.Crypto.Encryption.isPPTOn_hybridDEMGame: native certificate for the closed game.Cslib.Crypto.SymmetricCipher.OneTimeINDCCA.indistinguishable_hybridDEMGame: the loss-one DEM hop, a step toward Exercise 12.5(a).
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Exercise 12.5(a), printed p. 513.
The DEM intermediate game. Original KEM keys and encapsulation retain their joint law;
the independently sampled DEM key is used for the distinguished component in both phases when
that component lies in ctSpace. The source symmetric experiment admits n-bit challenge
messages.
Forward only canonical ciphertexts whose KEM component lies in ctSpace and equals the
distinguished KEM component. All other in-space canonical ciphertexts use local decapsulation and
decryption. A bounded raw reply preserves the distinction between rejection ([]) and a
successful empty message ([true]).
Both CCA phases for fixed original KEM keys and encapsulation. The hidden symmetric key is owned by the external oracle and is never an argument to this continuation.
Simulate both public-key CCA phases, making exactly one valid symmetric encryption query
when the selected messages have length n. In particular, an empty encryption reply is a
legitimate ciphertext, not a rejection marker. The original encapsulated key is not exposed.
Before the challenge, the distinguished component uses the hidden DEM key when in ctSpace,
including queries made before the adversary has selected its messages.
After the challenge, symmetric challenge rejection agrees with exact hybrid-word
rejection. Canonical framing and ctSpace membership are checked before reaching the symmetric
oracle.
Exact, loss-one DEM game identity. Bounds apply only to keys in the actual symmetric key
sampler's support and to valid n-bit encryption inputs. Neither uniform encoded keys nor KEM
correctness is assumed for this intermediate-game identity.
Native bounded-read implementation of the canonical forwarding handler.
Native implementation of both phases with a captured KEM environment. External replies are read only up to the supplied unary-computable limits.
The complete reduction is uniform strict oracle PPT. Key generation, encapsulation, ciphertext-space recognition, local decapsulation/decryption, both adaptive phases, and bounded external reads are charged.
The intermediate game itself has a uniform strict-PPT realization, including the hidden symmetric key sampler and every adaptive decryption reply.
One-time symmetric CCA security of E makes the two DEM intermediate games hybridDEMGame
indistinguishable with loss one: the DEM hop toward [BS23], Exercise 12.5(a), not the
cited result, which also needs the two KEM hops (#5293).
Cslib.Crypto.Encryption.hybrid_indcca2On composes this hop with the two KEM hops. On the KEM
side, ctSpace represents C_kem, and hybridDEMGame rejects ciphertexts whose KEM component
fails ctSpace. On the DEM side, the source's 1CCA security (Definition 9.6, printed p. 363) rests
on Attack Game 9.2, whose decryption queries lie in the ciphertext space C (printed p. 362);
here SymmetricCipher.ctSpace represents C, and decrypt_eq_none_of_ctSpace_eq_false forces
rejection ([] = encOption encBits none) on words outside C. When E.ctSpace is efficiently
recognizable, an adversary can simulate those rejections itself, so OneTimeINDCCA matches the
source's 1CCA game on C (ctSpace defaults to fun _ _ => true unless specialized).