Chosen-ciphertext security and plaintext integrity imply authenticated encryption #
Plaintext integrity weakens ciphertext integrity: "the PI game is identical to the CI game except
that the winning condition is relaxed to: D(k, c) ≠ reject, and D(k, c) ∉ {m₁, m₂, …}"
([BS23], Exercise 9.15, printed p. 395). In this library it is
SymmetricCipher.EncForge. Part (b) of the exercise asks to "prove that a system that is CCA- and
PI-secure is also AE-secure". This module proves it: INDCCA and EncForge give
CiphertextIntegrity, and with SymmetricCipher.INDCCA.indcpa they give
AuthenticatedEncryption.
Given a CI adversary A that makes at most Q encryption queries, the proof uses two reductions.
Both draw Q independent uniform n-bit messages r₁, …, r_Q.
ciToCCAAdversaryrunsAand answers itsi-th encryption querymᵢby asking the CCA oracle to encryptmᵢ(bitfalse) orrᵢ(bittrue). It then makes one decryption query, onA's forgeryc, and outputstruewhenD(k, c)is accepted and is none of therᵢ.ciToRandEncForgeAdversaryrunsAagainst the plaintext-integrity encryption oracle, which it asks to encryptrᵢin place ofmᵢ, and outputsA's forgery.
When the bit is false, the rᵢ are independent of everything A sees, so the CCA reduction
outputs true whenever A wins, except with probability at most Q / 2ⁿ. When the bit is
true, it outputs true only when the plaintext-integrity reduction wins. Hence
CIadv[A] ≤ PIadv[ciToRandEncForgeAdversary] + CCAadv[ciToCCAAdversary] + Q / 2ⁿ
(succProbability_ciGame_le_encForge_add_indcca).
The exercise says that the proof "only needs a weak version of CCA, namely where the adversary
issues a single decryption query and is told whether the ciphertext is accepted or rejected". The
reduction here makes one decryption query, and it uses the plaintext that the query returns. The
hypothesis is the library's INDCCA; no one-query notion is defined. The exercise also allows "a
super-poly-sized message space"; here the messages at parameter n are the n-bit strings, and
the Q / 2ⁿ term is the cost.
Main definitions #
SymmetricCipher.ciToCCAAdversary: the CCA reduction, making one decryption query.SymmetricCipher.ciToRandEncForgeAdversary: the plaintext-integrity reduction.
Main results #
SymmetricCipher.isOraclePPT_ciToCCAAdversary,SymmetricCipher.isOraclePPT_ciToRandEncForgeAdversary: both reductions are oracle PPT.SymmetricCipher.succProbability_ciGame_le_encForge_add_indcca: the concrete bound above.SymmetricCipher.INDCCA.ciphertextIntegrity:INDCCAandEncForgeimplyCiphertextIntegrity.SymmetricCipher.INDCCA.authenticatedEncryption:INDCCAandEncForgeimplyAuthenticatedEncryption(Exercise 9.15(b)).
References #
The two reductions #
The CCA reduction for Exercise 9.15(b). It draws Q n uniform n-bit messages rᵢ and runs
the CI adversary, answering its i-th encryption query mᵢ with an encryption of mᵢ or of rᵢ
from the CCA oracle (replies truncated to ctBound n bits). It then makes one decryption query, on
the adversary's forgery, and outputs true when the decryption is accepted and is none of the
rᵢ.
The plaintext-integrity reduction for Exercise 9.15(b). It draws Q n uniform n-bit
messages rᵢ, runs the CI adversary, answering its i-th encryption query with an encryption of
rᵢ (replies truncated to ctBound n bits), and outputs the adversary's forgery.
ciToCCAAdversary is oracle PPT when the CI adversary is and the bounds ctBound and Q are
polynomial-time computable.
ciToRandEncForgeAdversary is oracle PPT when the CI adversary is and the bounds ctBound
and Q are polynomial-time computable.
Concrete bound for Exercise 9.15(b). For a Q-query CI adversary and a ciphertext-length
bound ctBound, the CI advantage is at most the plaintext-integrity advantage of
ciToRandEncForgeAdversary, plus the CCA advantage of ciToCCAAdversary, plus Q n / 2^n.
CCA security and plaintext integrity imply ciphertext integrity ([BS23], Exercise 9.15(b), printed p. 395).
CCA security and plaintext integrity imply authenticated encryption ([BS23], Exercise 9.15(b), printed p. 395).