Chosen-ciphertext security for public-key encryption (1CCA and batch multi-challenge CCA) #
This module defines the single-challenge (1CCA, Definition 12.2) and two-phase batch-challenge
multi-challenge (CCA, Attack Game 12.1 and Definition 12.1 specialized to a single batch of
challenge queries between Phase 1 and Phase 2 decryption queries) adaptive chosen-ciphertext
security experiments for public-key encryption over an arbitrary message type Msg and decryption
output type Out (Boneh and Shoup, Section 12.1, Attack Game 12.1 and Definitions 12.1–12.2,
printed pp. 467–469), together with closed strict PPT experiment compilation,
admissibility restriction, the 1CCA → IND-CPA implication, and the Definition 12.2 embedding of
single-challenge adversaries into batch multi-challenge adversaries.
The hybrid reduction from 1CCA to batch multi-challenge CCA (INDCCA2On.indcca2MultiOn,
indcca2MultiOn_iff_indcca2On) lives in
CslibFrontier/Crypto/Computational/Encryption/CCA/Multi.lean, and the fully adaptive
interleaved-query multi-challenge CCA game of Attack Game 12.1 along with Boneh–Shoup Theorem 12.1
(INDCCA2On.indcca2InterleavedOn, indcca2InterleavedOn_iff_indcca2On) lives in
CslibFrontier/Crypto/Computational/Encryption/CCA/Interleaved.lean.
Source Statements ([BS23], Section 12.1, printed pp. 467–469) #
Verbatim from [BS23], Section 12.1 (printed pp. 467–468):
Attack Game 12.1 (CCA security). For a given public-key encryption scheme $\mathcal{E} = (G, E, D)$, defined over $(\mathcal{M}, \mathcal{C})$, and for a given adversary $\mathcal{A}$, we define two experiments. Experiment $b$ ($b = 0, 1$):
- The challenger computes $(pk, sk) \xleftarrow{R} G()$ and sends $pk$ to the adversary.
- $\mathcal{A}$ then makes a series of queries to the challenger. Each query can be one of two types:
- Encryption query: for $i = 1, 2, \ldots$, the $i$th encryption query consists of a pair of messages $(m_{i0}, m_{i1}) \in \mathcal{M}^2$, of the same length. The challenger computes $c_i \xleftarrow{R} E(pk, m_{ib})$ and sends $c_i$ to $\mathcal{A}$.
- Decryption query: for $j = 1, 2, \ldots$, the $j$th decryption query consists of a ciphertext $\hat{c}_j \in \mathcal{C}$ that is not among the responses to the previous encryption queries, i.e., $$\hat{c}_j \notin \{c_1, c_2, \ldots\}.$$ The challenger computes $\hat{m}_j \leftarrow D(sk, \hat{c}_j)$, and sends $\hat{m}_j$ to $\mathcal{A}$.
- At the end of the game, the adversary outputs a bit $\hat{b} \in \{0, 1\}$.
Let $W_b$ be the event that $\mathcal{A}$ outputs $1$ in Experiment $b$ and define $\mathcal{A}$'s advantage with respect to $\mathcal{E}$ as $$\text{CCAadv}[\mathcal{A}, \mathcal{E}] := |\Pr[W_0] - \Pr[W_1]|.$$
Definition 12.1 (CCA Security). A public-key encryption scheme $\mathcal{E}$ is called semantically secure against a chosen ciphertext attack, or simply CCA secure, if for all efficient adversaries $\mathcal{A}$, the value $\text{CCAadv}[\mathcal{A}, \mathcal{E}]$ is negligible.
Just as we did in the symmetric-key setting, we can consider a restricted attack game in which the adversary makes only a single encryption query:
Definition 12.2 (1CCA security). In Attack Game 12.1, if the adversary $\mathcal{A}$ is restricted to making a single encryption query, we denote its advantage by $\text{1CCAadv}[\mathcal{A}, \mathcal{E}]$. A public-key encryption scheme $\mathcal{E}$ is one-time semantically secure against chosen ciphertext attack, or simply, 1CCA secure, if for all efficient adversaries $\mathcal{A}$, the value $\text{1CCAadv}[\mathcal{A}, \mathcal{E}]$ is negligible.
[…]
A similar result holds with respect to chosen ciphertext security, namely, that 1CCA security implies CCA security.
Theorem 12.1. If a public-key encryption scheme $\mathcal{E}$ is 1CCA secure, then it is also CCA secure.
In particular, for every CCA adversary $\mathcal{A}$ that plays Attack Game 12.1 with respect to $\mathcal{E}$, and which makes at most $Q_e$ encryption queries to its challenger, there exists a 1CCA adversary $\mathcal{B}$ as in Definition 12.2, where $\mathcal{B}$ is an elementary wrapper around $\mathcal{A}$, such that $$\text{CCAadv}[\mathcal{A}, \mathcal{E}] = Q_e \cdot \text{1CCAadv}[\mathcal{B}, \mathcal{E}].$$
And the two-phase decomposition of the 1CCA experiment (printed pp. 468–469):
Initialization phase: the challenger generates $(pk, sk) \xleftarrow{R} G()$ and sends $pk$ to the adversary. Phase 1: the adversary submits a series of decryption queries to the challenger; each such query is a ciphertext $\hat{c} \in \mathcal{C}$, to which the challenger responds with $\hat{m} \leftarrow D(sk, \hat{c})$. Encryption query: the adversary submits a single encryption query $(m_0, m_1)$ to the challenger; in Experiment $b$ (where $b = 0, 1$), the challenger responds with $c \xleftarrow{R} E(pk, m_b)$. Phase 2: the adversary again submits a series of decryption queries to the challenger; each such query is a ciphertext $\hat{c} \in \mathcal{C}$, subject to the restriction that $\hat{c} \ne c$, to which the challenger responds with $\hat{m} \leftarrow D(sk, \hat{c})$. Finish: at the end of the game, the adversary outputs a bit $\hat{b} \in \{0, 1\}$.
Scope and Specializations #
- Single-challenge 1CCA (
Definition 12.2) and batch-challenge multi-challenge CCA (non-adaptive-challenge restriction ofAttack Game 12.1/Definition 12.1) vs. symmetricSymmetricCipher.INDCCA(Definition 9.5):CCA2AdversaryOf Msg,cca2GameOn, andINDCCA2Onformalize the single-challenge public-key 1CCA experiment (Definition 12.2, printed p. 468), whileMultiCCA2AdversaryOf Msg,cca2MultiGameOn, andINDCCA2MultiOnformalize the two-phase batch-challenge (non-adaptive-challenge) restriction of the multi-challenge public-key CCA experiment (Attack Game 12.1 and Definition 12.1, printed pp. 467–468), in which all encryption queries are submitted in one blockchallenges : List (Msg × Msg)between Phase 1 and Phase 2 decryption queries (rather than adaptively interleaving individual encryption and decryption queries). Single-challenge 1CCA adversaries embed into 1-challenge batch adversaries viaCCA2AdversaryOf.toMulti([BS23], Definition 12.2, printed p. 468); the converse batch hybrid reduction (INDCCA2On.indcca2MultiOn) is proved inCslibFrontier/Crypto/Computational/Encryption/CCA/Multi.lean, and full adaptive equivalence with Attack Game 12.1 is proved inCslibFrontier/Crypto/Computational/Encryption/CCA/Interleaved.lean. - Phase 2 challenge-rejection convention: in Phase 2, querying the challenge ciphertext
(
request.2 == ctincca2Phase2Oracle, ordecide (request.2 ∈ cts)incca2MultiPhase2Oracle) returns[] = encOption encOut none(the encoding of decryption rejectionnone) rather than syntactically restricting the oracle domain toĉ ≠ c(orĉ ∉ cts). Because the adversary is givenct(orcts) as input toguessand could simulate the constant[]reply itself, this convention is equivalent to forbidding challenge queries and matchesSymmetricCipher.ccaOracleinCslibFrontier/Crypto/Computational/Encryption/Authenticated.lean. - No associated data ($\mathcal{D} = \mathrm{Unit}$): encryption and decryption queries carry no separate associated-data argument (corresponding to $\mathcal{D} = \mathrm{Unit}$ in schemes with associated data such as Exercise 12.27).
- Generic message and output types with challenge-pair admissibility:
CCA2AdversaryOf (Msg : Type)andMultiCCA2AdversaryOf (Msg : Type)are generic in the challenge message typeMsg(CCA2AdversaryandMultiCCA2Adversaryspecialize toBool, andWordCCA2AdversaryandWordMultiCCA2AdversarytoList Bool).cca2GameOn,INDCCA2On,cca2MultiGameOn, andINDCCA2MultiOnparameterize the experiment by a challenge-pair admissibility predicatevalid : ℕ → List Bool → Msg → Msg → Bool(returningfalsein both experiments when any chosen pair failsvalid), whilecca2Game,INDCCA2Of,cca2MultiGame, andINDCCA2MultiOfspecialize tofun _ _ _ _ => truefor fixed-length message spaces (such asBool) andWordINDCCA2/WordINDCCA2Multispecialize to Attack Game 12.1's equal-length rulefun _ _ m₀ m₁ => m₀.length == m₁.length.
Main definitions #
Cslib.Crypto.Encryption.CCA2AdversaryOf,Cslib.Crypto.Encryption.CCA2Adversary,Cslib.Crypto.Encryption.WordCCA2Adversary: two-stage 1CCA adversaries withWordOracleComp Unitdecryption-oracle access in Phase 1 (choose) and Phase 2 (guess).Cslib.Crypto.Encryption.CCA2AdversaryOf.IsPPT,Cslib.Crypto.Encryption.CCA2AdversaryOf.IsQueryBounded: uniform strict oracle PPT admissibility and per-stage decryption-query bounds.Cslib.Crypto.Encryption.cca2Phase1Oracle,Cslib.Crypto.Encryption.cca2Phase2Oracle,Cslib.Crypto.Encryption.cca2GameOn,Cslib.Crypto.Encryption.cca2Game: Phase 1 and Phase 2 decryption oracles and the 1CCA experiment (with and without an explicit challenge-pair admissibility guard).Cslib.Crypto.Encryption.INDCCA2On,Cslib.Crypto.Encryption.INDCCA2Of,Cslib.Crypto.Encryption.INDCCA2,Cslib.Crypto.Encryption.WordINDCCA2: single-challenge 1CCA security (Definition 12.2).Cslib.Crypto.Encryption.CCA2AdversaryOf.restrict: embedding of an adversary for the admissibility-restrictedcca2GameOn validinside the unrestrictedcca2Game.Cslib.Crypto.Encryption.CCA2AdversaryOf.ofCPA,Cslib.Crypto.Encryption.CCA2Adversary.ofCPA: embedding of a chosen-plaintextAdversaryOf Msgas a 0-queryCCA2AdversaryOf Msg.Cslib.Crypto.Encryption.MultiCCA2AdversaryOf,Cslib.Crypto.Encryption.MultiCCA2Adversary,Cslib.Crypto.Encryption.WordMultiCCA2Adversary,Cslib.Crypto.Encryption.MultiCCA2AdversaryOf.IsPPT,Cslib.Crypto.Encryption.MultiCCA2AdversaryOf.IsQueryBounded: two-phase batch-challenge multi-challenge CCA adversaries, strict oracle PPT admissibility, and per-stage decryption-query bounds.Cslib.Crypto.Encryption.cca2MultiPhase2Oracle,Cslib.Crypto.Encryption.cca2MultiGameOn,Cslib.Crypto.Encryption.cca2MultiGame,Cslib.Crypto.Encryption.INDCCA2MultiOn,Cslib.Crypto.Encryption.INDCCA2MultiOf,Cslib.Crypto.Encryption.INDCCA2Multi,Cslib.Crypto.Encryption.WordINDCCA2Multi: Phase 2 multi-challenge decryption oracle, batch-challenge multi-challenge CCA experiments, and security predicates (batch-challenge restriction of Attack Game 12.1 / Definition 12.1).Cslib.Crypto.Encryption.CCA2AdversaryOf.toMulti,Cslib.Crypto.Encryption.CCA2Adversary.toMulti: single-to-multi embedding (Definition 12.2).
Main results #
Cslib.Crypto.Encryption.CCA2AdversaryOf.IsPPT.query_bounds,Cslib.Crypto.Encryption.MultiCCA2AdversaryOf.IsPPT.query_bounds: polynomial query, challenge-list, and saved-state length bounds for strict oracle PPT 1CCA and batch-challenge multi-challenge CCA adversaries.Cslib.Crypto.Encryption.isPPTOn_run_cca2Phase1Oracle,Cslib.Crypto.Encryption.isPPTOn_run_cca2Phase2Oracle,Cslib.Crypto.Encryption.isPPTOn_cca2GameOn,Cslib.Crypto.Encryption.isPPTOn_cca2Game,Cslib.Crypto.Encryption.isPPTOn_run_cca2MultiPhase1Oracle,Cslib.Crypto.Encryption.isPPTOn_run_cca2MultiPhase2Oracle,Cslib.Crypto.Encryption.isPPTOn_cca2MultiGameOn,Cslib.Crypto.Encryption.isPPTOn_cca2MultiGame: closed strict PPT compilation of Phase 1, Phase 2, and the complete 1CCA and batch-challenge multi-challenge CCA experiments viaIsOraclePPTOn.run_interpret_preprocess.Cslib.Crypto.Encryption.eval_cca2Game_restrict,Cslib.Crypto.Encryption.CCA2AdversaryOf.IsPPT.restrict,Cslib.Crypto.Encryption.INDCCA2Of.indcca2On,Cslib.Crypto.Encryption.INDCCA2Of.wordINDCCA2,Cslib.Crypto.Encryption.eval_cca2MultiGame_restrict,Cslib.Crypto.Encryption.MultiCCA2AdversaryOf.IsPPT.restrict,Cslib.Crypto.Encryption.INDCCA2MultiOf.indcca2MultiOn,Cslib.Crypto.Encryption.INDCCA2MultiOf.wordINDCCA2Multi: unrestricted 1CCA / batch-challenge multi-challenge CCA security implies admissibility-restricted 1CCA / batch-challenge multi-challenge CCA security.Cslib.Crypto.Encryption.CCA2AdversaryOf.isPPT_ofCPA,Cslib.Crypto.Encryption.CCA2AdversaryOf.isQueryBounded_ofCPA,Cslib.Crypto.Encryption.eval_cca2GameOn_ofCPA,Cslib.Crypto.Encryption.eval_cca2Game_ofCPA,Cslib.Crypto.Encryption.INDCCA2On.indcpaOn,Cslib.Crypto.Encryption.INDCCA2Of.indcpaOf,Cslib.Crypto.Encryption.INDCCA2Of.indcpa,Cslib.Crypto.Encryption.INDCCA2.indcpa,Cslib.Crypto.Encryption.WordINDCCA2.wordINDCPA: 1CCA security implies IND-CPA security under any challenge-pair admissibility predicate.Cslib.Crypto.Encryption.CCA2AdversaryOf.isPPT_toMulti,Cslib.Crypto.Encryption.CCA2AdversaryOf.isQueryBounded_toMulti,Cslib.Crypto.Encryption.eval_cca2MultiGameOn_toMulti,Cslib.Crypto.Encryption.INDCCA2MultiOn.indcca2On,Cslib.Crypto.Encryption.INDCCA2MultiOf.indcca2Of,Cslib.Crypto.Encryption.INDCCA2Multi.indcca2,Cslib.Crypto.Encryption.WordINDCCA2Multi.wordINDCCA2: batch-challenge multi-challenge CCA implies single-challenge 1CCA ([BS23], Definition 12.2, since a 1CCA adversary is a CCA adversary making a single encryption query).
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, Theorem 12.1, printed pp. 467–469).
A single-challenge adaptive chosen-ciphertext (1CCA, [BS23], Section 12.1,
Attack Game 12.1 and Definition 12.2, printed pp. 467–469) adversary over message space Msg.
Both stages have access to the single-channel decryption oracle (Operation = Unit).
Phase 1: given the unary security parameter
nand encoded public keypk, make decryption queries, choose two challenge messages(m₀, m₁) : Msg × Msg, and save a state word.Phase 2: given
n, the saved state word, and the challenge ciphertextct, make decryption queries (where queryingctis rejected) and output a guess bit.
Uniform strict oracle PPT admissibility of both stages of a CCA2AdversaryOf Msg with respect
to message encoding encMsg.
Phase 1 message selection is uniform strict oracle PPT on
(n, pk).- guess : Probability.IsOraclePPTOn encGuessInput Turing.MultiTapeTM.encBool fun (x : ℕ × List Bool × List Bool) => match x with | (n, state, ct) => adversary.guess n state ct
Phase 2 guessing is uniform strict oracle PPT on
(n, state, ct).
Per-stage decryption-query bound (Q₁ n, Q₂ n) for a CCA2AdversaryOf Msg.
Every strict oracle PPT CCA2AdversaryOf Msg has polynomial bounds on its Phase 1 queries and
saved-state length in terms of (n, pk.length), and on its Phase 2 queries in terms of
(n, state.length, ct.length) for every input state word state.
Single-bit 1CCA adversary (Msg = Bool).
Native uniform strict oracle PPT admissibility for a bit 1CCA adversary.
Native uniform strict oracle PPT admissibility for a bit-string 1CCA adversary.
Phase 1 decryption oracle ([BS23], Section 12.1, Attack Game 12.1 and Definition 12.2,
printed pp. 467–468): answer every decryption query request.2 with
encOption encOut (decrypt n sk request.2).
Phase 2 decryption oracle ([BS23], Section 12.1, Attack Game 12.1 and Definition 12.2,
printed pp. 467–468): reject the challenge ciphertext (request.2 == ct) with []
(encOption encOut none), and answer all other queries request.2 ≠ ct with
encOption encOut (decrypt n sk request.2). Since the adversary receives ct as input to guess
and can simulate the constant [] reply on ct itself, returning [] on ct is equivalent to
forbidding the query ĉ = c (matching SymmetricCipher.ccaOracle in
CslibFrontier/Crypto/Computational/Encryption/Authenticated.lean).
Single-challenge 1CCA experiment ([BS23], Section 12.1, Attack Game 12.1 and
Definition 12.2, printed pp. 467–468) with challenge-pair admissibility predicate
valid : ℕ → List Bool → Msg → Msg → Bool: sample (pk, sk) ← keyGen n, run Phase 1 (choose)
against cca2Phase1Oracle, check valid n pk m₀ m₁ (returning false in both experiments when
invalid), encrypt if bit then m₁ else m₀ to obtain ct, and run Phase 2 (guess) against
cca2Phase2Oracle rejecting ct.
Unconditional single-challenge 1CCA experiment (valid := fun _ _ _ _ => true), for
fixed-length message spaces Msg where every pair (m₀, m₁) : Msg × Msg is admissible.
Single-challenge 1CCA security ([BS23], Section 12.1, Definition 12.2, printed p. 468)
with respect to challenge-pair admissibility predicate valid, message encoding encMsg, and
decryption output encoding encOut.
Single-challenge 1CCA security ([BS23], Section 12.1, Definition 12.2, printed p. 468)
over a fixed-length message space Msg (valid := fun _ _ _ _ => true).
Single-challenge 1CCA security for bit encryption (Msg = Bool, Out = Bool):
[BS23], Definition 12.2 (p. 468), that is, Attack Game 12.1 (pp. 467–468) with one
encryption query, for the message space of single bits. A Phase 2 decryption query on the
challenge ciphertext is answered with rejection, where the source forbids it.
Single-challenge 1CCA security for bit-string encryption (Msg = List Bool, Out = List Bool)
under Attack Game 12.1's equal-length challenge rule m₀.length == m₁.length: [BS23],
Definition 12.2 (p. 468), with every bit string a message. A Phase 2 decryption query on the
challenge ciphertext is answered with rejection, where the source forbids it.
Running Phase 1 (adversary.choose) against cca2Phase1Oracle is uniformly strict PPT in
(n, pk, sk) whenever decrypt is computable in polynomial time.
Running Phase 2 (adversary.guess) against cca2Phase2Oracle is uniformly strict PPT in
(n, sk, state, ct) whenever decrypt is computable in polynomial time.
The complete cca2GameOn experiment is uniformly strict PPT on the unary security parameter
whenever valid, keyGen, encrypt, decrypt, and adversary are admissible.
The complete cca2Game experiment is uniformly strict PPT on the unary security parameter
whenever keyGen, encrypt, decrypt, and adversary are admissible.
Playing a restricted 1CCA game inside the unrestricted one #
The adversary that plays cca2GameOn valid inside the unrestricted cca2Game. Its choose
runs adversary.choose n pk and puts the bit valid n pk m₀ m₁ in front of the saved state; its
guess returns false when that bit is false and otherwise runs adversary.guess on the rest of
the state. The challenge pair itself is passed on unchanged.
Running the unrestricted cca2Game on adversary.restrict valid has the same output
distribution as running cca2GameOn valid on adversary.
Restricting a uniform strict oracle PPT 1CCA adversary by a polynomial-time admissibility
predicate keeps it uniform strict oracle PPT: choose additionally evaluates valid and prepends
one bit to the saved state, and guess branches on that bit without querying the oracle when it is
false.
Unrestricted 1CCA security implies 1CCA security under every polynomial-time admissibility predicate.
Unrestricted bit-word 1CCA security implies WordINDCCA2.
1CCA implies IND-CPA #
Lift a chosen-plaintext AdversaryOf Msg to a 0-query CCA2AdversaryOf Msg.
Lift a chosen-plaintext bit Adversary to a 0-query CCA2Adversary.
Lifting a strict PPT AdversaryOf Msg yields a strict oracle PPT CCA2AdversaryOf Msg.
Lifting a strict PPT bit Adversary yields a strict oracle PPT CCA2Adversary.
A lifted CPA adversary makes 0 decryption queries in both stages.
A lifted bit CPA adversary makes 0 decryption queries in both stages.
Running a lifted CPA adversary in cca2GameOn has the same output distribution as the CPA
gameOn with the same challenge-pair admissibility predicate valid.
Running a lifted CPA adversary in cca2Game has the same output distribution as the CPA
game.
1CCA security implies IND-CPA security under any challenge-pair admissibility predicate
valid: any encryption scheme satisfying INDCCA2On valid also satisfies INDCPAOn valid.
Unrestricted 1CCA security implies unrestricted IND-CPA security: any encryption scheme
satisfying INDCCA2Of encMsg encOut also satisfies INDCPAOf encMsg.
1CCA security implies IND-CPA security: any bit encryption scheme satisfying INDCCA2Of
also satisfies INDCPA.
Specialization of INDCCA2Of.indcpa to INDCCA2.
Word 1CCA security implies word IND-CPA security: any bit-string encryption scheme
satisfying WordINDCCA2 also satisfies WordINDCPA.
Batch-challenge multi-challenge CCA security (Definition 12.1) #
A two-phase batch-challenge multi-challenge adaptive chosen-ciphertext adversary over message
space Msg, modeling the non-adaptive-challenge restriction of [BS23], Section 12.1,
Attack Game 12.1 and Definition 12.1 (printed pp. 467–468) in which all encryption queries are
submitted in one block between Phase 1 and Phase 2 decryption queries. Both stages have access to
the single-channel decryption oracle (Operation = Unit).
Phase 1: given the unary security parameter
nand encoded public keypk, make decryption queries, choose a list of challenge message pairschallenges : List (Msg × Msg), and save a state word.Phase 2: given
n, the saved state word, and the list of challenge ciphertextscts, make decryption queries (where querying anyct ∈ ctsis rejected) and output a guess bit.
Uniform strict oracle PPT admissibility of both stages of a MultiCCA2AdversaryOf Msg with
respect to message encoding encMsg.
- choose : Probability.IsOraclePPT (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encPair encMsg encMsg)) Turing.MultiTapeTM.encBits) adversary.choose
Phase 1 challenge-list selection is uniform strict oracle PPT on
(n, pk). - guess : Probability.IsOraclePPTOn (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encBits))) Turing.MultiTapeTM.encBool fun (p : ℕ × List Bool × List (List Bool)) => adversary.guess p.1 p.2.1 p.2.2
Phase 2 guessing is uniform strict oracle PPT on
(n, state, cts).
Per-stage decryption-query bound (Q₁ n, Q₂ n) for a MultiCCA2AdversaryOf Msg.
Every strict oracle PPT MultiCCA2AdversaryOf Msg has polynomial bounds on its Phase 1 queries,
challenge-list length, and saved-state length in terms of (n, pk.length), and on its Phase 2
queries in terms of (n, state.length, (encList encBits cts).length) for every input state word
state.
Single-bit multi-challenge CCA adversary (Msg = Bool).
Native uniform strict oracle PPT admissibility for a bit multi-challenge CCA adversary.
Native uniform strict oracle PPT admissibility for a bit-string multi-challenge CCA adversary.
Multi-challenge Phase 2 decryption oracle ([BS23], Section 12.1, Attack Game 12.1 and
Definition 12.1, printed pp. 467–468): reject any decryption query matching one of the challenge
ciphertexts (decide (request.2 ∈ cts)) with [] (encOption encOut none), and answer all other
queries request.2 ∉ cts with encOption encOut (decrypt n sk request.2).
Two-phase batch-challenge multi-challenge CCA experiment (non-adaptive-challenge restriction of
[BS23], Section 12.1, Attack Game 12.1 and Definition 12.1, printed pp. 467–468) with
challenge-pair admissibility predicate valid : ℕ → List Bool → Msg → Msg → Bool: sample
(pk, sk) ← keyGen n, run Phase 1 (choose) against cca2Phase1Oracle, check
choice.1.all (fun p => valid n keys.1 p.1 p.2) (returning false in both experiments when any
chosen pair is invalid), encrypt each pair via
choice.1.mapM (fun p => encrypt n keys.1 (if bit then p.2 else p.1)) to obtain the challenge
ciphertext list cts, and run Phase 2 (guess) against cca2MultiPhase2Oracle rejecting any
query in cts.
Unconditional batch-challenge multi-challenge CCA experiment (valid := fun _ _ _ _ => true),
for fixed-length message spaces Msg where every pair (m₀, m₁) : Msg × Msg is admissible.
Two-phase batch-challenge multi-challenge CCA security (non-adaptive-challenge restriction of
[BS23], Section 12.1, Definition 12.1, printed p. 468, in which all encryption queries
are submitted in one batch between Phase 1 and Phase 2 decryption queries) with respect to
challenge-pair admissibility predicate valid, message encoding encMsg, and decryption output
encoding encOut.
Batch-challenge multi-challenge CCA security (non-adaptive-challenge restriction of
[BS23], Section 12.1, Definition 12.1, printed p. 468) over a fixed-length message space
Msg (valid := fun _ _ _ _ => true).
Batch-challenge multi-challenge CCA security for bit encryption (Msg = Bool, Out = Bool).
It restricts the adversaries of [BS23], Attack Game 12.1 and Definition 12.1
(pp. 467–468): all encryption queries come in one batch between the two phases of decryption
queries, instead of being interleaved with them. For efficient algorithms it is equivalent to
INDCCA2 (indcca2Multi_iff_indcca2), as CCA security is to 1CCA security by Theorem 12.1
(p. 468).
Batch-challenge multi-challenge CCA security for bit-string encryption (Msg = List Bool,
Out = List Bool) under Attack Game 12.1's equal-length challenge rule
m₀.length == m₁.length. It restricts the adversaries of [BS23], Attack Game 12.1 and
Definition 12.1 (pp. 467–468): all encryption queries come in one batch between the two phases of
decryption queries, instead of being interleaved with them.
Running Phase 1 (adversary.choose) of a MultiCCA2AdversaryOf Msg against cca2Phase1Oracle
is uniformly strict PPT in (n, pk, sk) whenever decrypt is computable in polynomial time.
Running Phase 2 (adversary.guess) against cca2MultiPhase2Oracle is uniformly strict PPT in
(n, sk, state, cts) whenever decrypt is computable in polynomial time.
The complete cca2MultiGameOn experiment is uniformly strict PPT on the unary security
parameter whenever valid, keyGen, encrypt, decrypt, and adversary are admissible.
The complete cca2MultiGame experiment is uniformly strict PPT on the unary security parameter
whenever keyGen, encrypt, decrypt, and adversary are admissible.
Playing a restricted multi-challenge CCA game inside the unrestricted one #
The adversary that plays cca2MultiGameOn valid inside the unrestricted cca2MultiGame. Its
choose runs adversary.choose n pk and prepends the bit
choice.1.all (fun p => valid n pk p.1 p.2) to the saved state; its guess returns false when
that bit is false and otherwise runs adversary.guess on the rest of the state.
Running the unrestricted cca2MultiGame on adversary.restrict valid has the same output
distribution as running cca2MultiGameOn valid on adversary.
Restricting a uniform strict oracle PPT multi-challenge CCA adversary by a polynomial-time admissibility predicate keeps it uniform strict oracle PPT.
Unrestricted batch-challenge multi-challenge CCA security implies batch-challenge multi-challenge CCA security under every polynomial-time admissibility predicate.
Unrestricted bit-word batch-challenge multi-challenge CCA security implies
WordINDCCA2Multi.
Batch-challenge multi-challenge CCA implies single-challenge 1CCA (Definition 12.2) #
Embed a single-challenge CCA2AdversaryOf Msg into a MultiCCA2AdversaryOf Msg by returning
a singleton challenge list [choice.1] in Phase 1 and reading cts.headD [] in Phase 2
([BS23], Section 12.1, Definition 12.2, printed p. 468: a 1CCA adversary is a CCA
adversary restricted to a single encryption query).
Embed a single-challenge bit CCA2Adversary into a MultiCCA2Adversary.
Embedding a strict oracle PPT CCA2AdversaryOf Msg yields a strict oracle PPT
MultiCCA2AdversaryOf Msg.
Embedding a strict oracle PPT bit CCA2Adversary yields a strict oracle PPT
MultiCCA2Adversary.
Embedding a CCA2AdversaryOf Msg into MultiCCA2AdversaryOf Msg preserves its per-stage
decryption query bounds (Q₁ n, Q₂ n).
Running an embedded single-challenge adversary adversary.toMulti in cca2MultiGameOn has
the exact same output distribution as running adversary in cca2GameOn.
Running an embedded single-challenge adversary adversary.toMulti in cca2MultiGame has the
exact same output distribution as running adversary in cca2Game.
Batch-challenge multi-challenge CCA security implies single-challenge 1CCA security
([BS23], Section 12.1, Definition 12.2, printed p. 468, since a 1CCA adversary is a CCA
adversary restricted to a single encryption query) under any challenge-pair admissibility predicate
valid.
Unrestricted batch-challenge multi-challenge CCA security implies unrestricted 1CCA security ([BS23], Definition 12.2).
Bit batch-challenge multi-challenge CCA security implies bit 1CCA security ([BS23], Definition 12.2).
Word batch-challenge multi-challenge CCA security implies word 1CCA security ([BS23], Definition 12.2).