Hybrid reduction from single-challenge 1CCA to batch multi-challenge CCA #
This module proves the hybrid equivalence between single-challenge chosen-ciphertext security
(INDCCA2On, Definition 12.2) and the two-phase batch-challenge multi-challenge chosen-ciphertext
experiment (INDCCA2MultiOn, in which all challenge pairs are submitted in a single list between
Phase 1 and Phase 2 decryption queries), a batch-challenge step toward Boneh and Shoup, Section
12.1, Theorem 12.1, printed p. 468. It also provides the stateless Phase 2
challenge-rejection filter handler multiPhase2FilterHandler shared with the fully adaptive
interleaved-query reduction in CslibFrontier.Crypto.Computational.Encryption.CCA.Interleaved.
Splitting this hybrid reduction out of CslibFrontier.Crypto.Computational.Encryption.CCA keeps the
core 1CCA and batch multi-challenge definitions free of hybrid-game, dyadic-sampling, and decryption
length-bound dependencies for 1CCA-only clients.
Main definitions #
Cslib.Crypto.Encryption.multiPhase2FilterHandler: stateless Phase 2 oracle handler rejecting decryption queries in a forbidden challenge-ciphertext listctswith[]and forwarding other queries with a bounded reply-length prefix.Cslib.Crypto.Encryption.cca2MultiHybridGameOn:split-hybrid batch multi-challenge CCA experiment encrypting the firstsplitpairs with the right message and the remaining pairs with the left message.Cslib.Crypto.Encryption.cca2MultiToSingleAt,Cslib.Crypto.Encryption.cca2MultiToSingle: single-challengeCCA2AdversaryOf Msgreductions at a fixed hybrid indexsplitand at a uniformly sampled dyadic indexFin (dyadicSize (Q n)).
Main results #
Cslib.Crypto.Encryption.isQueryBounded_multiPhase2FilterHandler,Cslib.Crypto.Encryption.isOraclePPTOn_run_multiPhase2FilterHandler,Cslib.Crypto.Encryption.eval_run_multiPhase2FilterHandler,Cslib.Crypto.Encryption.eval_run_multiPhase2FilterHandler_phase1: query bound, uniform strict oracle PPT certificate, and Phase 2 / Phase 1 distributional simulation identities formultiPhase2FilterHandler.Cslib.Crypto.Encryption.isPPT_cca2MultiToSingleAt,Cslib.Crypto.Encryption.isPPT_cca2MultiToSingle,Cslib.Crypto.Encryption.isQueryBounded_cca2MultiToSingleAt,Cslib.Crypto.Encryption.isQueryBounded_cca2MultiToSingle: strict oracle PPT and query-bound preservation for the batch multi-to-single reductions.Cslib.Crypto.Encryption.cca2MultiHybridGameOn_step_gap,Cslib.Crypto.Encryption.cca2MultiGameOn_gap,Cslib.Crypto.Encryption.advantage_cca2MultiGameOn: exact single-step anddyadicSize (Q n)hybrid advantage identities.
Steps toward Theorem 12.1 #
[BS23], Theorem 12.1 (printed p. 468) concerns Attack Game 12.1 (p. 467), in which
encryption and decryption queries are adaptively interleaved. It is
Cslib.Crypto.Encryption.INDCCA2On.indcca2InterleavedOn and
Cslib.Crypto.Encryption.indcca2InterleavedOn_iff_indcca2On in
CslibFrontier/Crypto/Computational/Encryption/CCA/Interleaved.lean. The theorems below are its
restriction to adversaries that submit all challenge pairs in one batch between the two phases of
decryption queries; Interleaved.lean uses them to relate the two notions
(indcca2InterleavedOn_iff_indcca2MultiOn).
Cslib.Crypto.Encryption.INDCCA2On.indcca2MultiOn,Cslib.Crypto.Encryption.indcca2MultiOn_iff_indcca2On,Cslib.Crypto.Encryption.INDCCA2Of.indcca2MultiOf,Cslib.Crypto.Encryption.indcca2MultiOf_iff_indcca2Of,Cslib.Crypto.Encryption.INDCCA2.indcca2Multi,Cslib.Crypto.Encryption.indcca2Multi_iff_indcca2,Cslib.Crypto.Encryption.WordINDCCA2.wordINDCCA2Multi,Cslib.Crypto.Encryption.wordINDCCA2Multi_iff_wordINDCCA2: single-challenge 1CCA implies batch-challenge multi-challenge CCA, and the two are equivalent.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 12.1 (Attack Game 12.1, Definitions 12.1–12.2, and Theorem 12.1, printed pp. 467–469).
Shared Phase 2 challenge-rejection filter handler #
Stateless Phase 2 filter handler for multi-to-single CCA reductions: reject any decryption
query request.2 ∈ cts with [], and forward all other queries request.2 ∉ cts to the external
single-challenge decryption oracle (truncating the reply to decBound request.2 bits for strict
oracle PPT certification).
Each call to multiPhase2FilterHandler makes at most 1 external decryption query.
Running a strict oracle PPT program through multiPhase2FilterHandler is uniformly strict
oracle PPT whenever the reply-length cap and forbidden ciphertext list are computable in polynomial
time from the caller's input.
Interpreting multiPhase2FilterHandler against cca2Phase2Oracle on ct ∈ cts has the exact
same output distribution as running directly against cca2MultiPhase2Oracle on cts, whenever
decBound upper-bounds every encoded decryption output length.
Interpreting multiPhase2FilterHandler against cca2Phase1Oracle has the exact same output
distribution as running directly against cca2MultiPhase2Oracle on cts, whenever decBound
upper-bounds every encoded decryption output length.
Single-challenge 1CCA implies batch-challenge CCA (step toward Theorem 12.1) #
Hybrid multi-challenge CCA experiment at index split : ℕ ([BS23], Section 12.1,
Theorem 12.1, printed p. 468): encrypt the first split challenge pairs (choice.1.take split)
using the right (true) message p.2 and the remaining challenge pairs (choice.1.drop split)
using the left (false) message p.1.
At split = 0, cca2MultiHybridGameOn coincides with cca2MultiGameOn ... false.
Whenever every supported Phase 1 run chooses at most split challenge pairs,
cca2MultiHybridGameOn at split has the same output distribution as
cca2MultiGameOn ... true.
Single-challenge CCA2AdversaryOf Msg reduction at fixed hybrid index split : ℕ
(batch-challenge specialization of [BS23], Section 12.1, Theorem 12.1, printed
p. 468).
Single-challenge CCA2AdversaryOf Msg reduction that samples a uniform dyadic hybrid index
split ← ProbOracleComp.sample (sampleDyadicIndex (Q n)) in Phase 1 and runs
cca2MultiToSingleAt valid encrypt decBound adversary split (batch-challenge specialization of
[BS23], Section 12.1, Theorem 12.1, printed p. 468).
cca2MultiToSingleAt preserves strict oracle PPT admissibility (CCA2AdversaryOf.IsPPT).
cca2MultiToSingle preserves strict oracle PPT admissibility (CCA2AdversaryOf.IsPPT).
cca2MultiToSingleAt preserves both Phase 1 (Q₁ n) and Phase 2 (Q₂ n) decryption query
bounds ([BS23], Theorem 12.1, printed p. 468).
cca2MultiToSingle preserves both Phase 1 (Q₁ n) and Phase 2 (Q₂ n) decryption query
bounds ([BS23], Theorem 12.1, printed p. 468).
Running cca2MultiToSingle in cca2GameOn averages cca2MultiToSingleAt uniformly over
Fin (dyadicSize (Q n)).
Single-step hybrid identity for multi-challenge CCA ([BS23], Theorem 12.1,
printed p. 468): at any hybrid index split : ℕ, the signed success-probability gap between
cca2MultiHybridGameOn ... split and cca2MultiHybridGameOn ... (split + 1) equals the signed
1CCA gap of cca2MultiToSingleAt ... split.
Signed hybrid gap for batch-challenge multi-challenge CCA, a step toward [BS23],
Theorem 12.1 (printed p. 468) for batch challenges only: when every supported Phase 1 challenge
list has length at most Q n, the batch-challenge multi-challenge signed success-probability gap
equals dyadicSize (Q n) times the single-challenge 1CCA gap of cca2MultiToSingle.
Hybrid advantage identity for batch-challenge multi-challenge CCA, a step toward
[BS23], Theorem 12.1 (printed p. 468) for batch challenges only: when every supported
Phase 1 challenge list has length at most Q n, the batch-challenge multi-challenge CCA advantage
equals dyadicSize (Q n) times the single-challenge 1CCA advantage of cca2MultiToSingle.
Batch-challenge step toward [BS23], Theorem 12.1 (printed p. 468), not the cited
result: single-challenge 1CCA security implies batch-challenge multi-challenge CCA security, in
which all encryption queries come in one batch between Phase 1 and Phase 2 decryption queries,
whenever valid, keyGen, encrypt, and decrypt are polynomial-time / strict PPT. Attack
Game 12.1 (p. 467) lets the adversary interleave encryption and decryption queries adaptively;
Theorem 12.1 for that game is INDCCA2On.indcca2InterleavedOn
(CslibFrontier/Crypto/Computational/Encryption/CCA/Interleaved.lean).
Batch-challenge step toward [BS23], Theorem 12.1 with Definition 12.2 (printed
p. 468), not the cited result: single-challenge 1CCA security and batch-challenge multi-challenge
CCA security are equivalent under any polynomial-time challenge-pair admissibility predicate
valid. Batch challenges restrict the adaptively interleaved queries of Attack Game 12.1
(p. 467); the equivalence for that game is indcca2InterleavedOn_iff_indcca2On.
Batch-challenge step toward [BS23], Theorem 12.1, not the cited result:
unrestricted single-challenge 1CCA security implies unrestricted batch-challenge multi-challenge
CCA security. Theorem 12.1 for interleaved queries is INDCCA2Of.indcca2InterleavedOf.
Batch-challenge step toward [BS23], Theorem 12.1 with Definition 12.2, not the cited result: unrestricted 1CCA and batch-challenge multi-challenge CCA security are equivalent.
Batch-challenge step toward [BS23], Theorem 12.1, not the cited result: bit
single-challenge 1CCA security implies bit batch-challenge multi-challenge CCA security. Theorem
12.1 for interleaved queries is INDCCA2.indcca2Interleaved.
Batch-challenge step toward [BS23], Theorem 12.1 with Definition 12.2, not the cited result: bit 1CCA and bit batch-challenge multi-challenge CCA security are equivalent.
Batch-challenge step toward [BS23], Theorem 12.1, not the cited result: word
single-challenge 1CCA security implies word batch-challenge multi-challenge CCA security. Theorem
12.1 for interleaved queries is WordINDCCA2.wordINDCCA2Interleaved.
Batch-challenge step toward [BS23], Theorem 12.1 with Definition 12.2, not the cited result: word 1CCA and word batch-challenge multi-challenge CCA security are equivalent.