Malleable encryption is not CCA secure #
A public-key scheme is malleable when anyone can transform a ciphertext into a different
ciphertext whose plaintext is a known function of the original one. Such a scheme is not CCA
secure: the adversary asks the Phase 2 decryption oracle to decrypt the transformed challenge, which
the oracle must answer because it differs from the challenge, and reads off the hidden bit
([BS23], Section 12.2.1, pp. 469–470, which describes this adversary and notes that it has
advantage 1).
maulAdversary msg₀ msg₁ maul target is that adversary for the single-challenge game
Encryption.cca2GameOn. Phase 1 makes no query, chooses (msg₀ n pk, msg₁ n pk) and saves the
public key. Phase 2 queries the decryption oracle once, on maul n pk ct, and outputs whether the
reply is the word target n pk, reading only a reply prefix one bit longer than target n pk.
A scheme instantiates it by supplying its transformation and the reply that world 1 produces.
Main definitions #
Cslib.Crypto.Encryption.maulAdversary: the one-query malleability adversary.
Main results #
Cslib.Crypto.Encryption.isPPT_maulAdversary: the adversary is strict oracle PPT when its message choices, transformation and target are polynomial-time.Cslib.Crypto.Encryption.eval_cca2GameOn_maulAdversary: if the challenge pair is admissible under every honest public key, and on every honest key pair and challenge ciphertext of worldbitthe transformation changes the ciphertext and its decryption encodes totargetexactly whenbit = true, then worldbitoutputsbitwith probability1. The decryption need not change, as inEncryption.advantage_cca2GameOn_sloppyAdversary.Cslib.Crypto.Encryption.not_indcca2On_of_maulAdversary: under these conditions at every parameter, the scheme failsINDCCA2On.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 12.1 (Attack Game 12.1, Definition 12.2, pp. 467–468) and Section 12.2.1 (pp. 469–470).
The one-query malleability adversary ([BS23], Section 12.2.1, pp. 469–470).
Phase 1 makes no query, chooses (msg₀ n pk, msg₁ n pk) and saves the public key pk as its
state. Phase 2 queries the decryption oracle once on maul n pk ct and outputs whether the reply
is target n pk; it reads only a reply prefix one bit longer than target n pk.
maulAdversary is strict oracle PPT whenever its message choices, transformation and target
are computable in polynomial time.
A malleable scheme loses the 1CCA game with certainty ([BS23],
Section 12.2.1, pp. 469–470). Suppose the challenge pair of maulAdversary is admissible under
every honest public key and that, for every honest key pair and every challenge ciphertext ct of
world bit, the transformation maul changes ct and the decryption of maul n pk ct encodes to
target exactly when bit = true. Then world bit outputs bit with probability 1.
Under the hypotheses of eval_cca2GameOn_maulAdversary for both worlds, maulAdversary has
1CCA advantage exactly 1.
A malleable scheme is not 1CCA secure ([BS23], Section 12.2.1, pp. 469–470):
if maulAdversary msg₀ msg₁ maul target has polynomial-time ingredients and satisfies the
hypotheses of eval_cca2GameOn_maulAdversary in both worlds at every parameter, then the scheme
fails INDCCA2On valid encMsg encOut.