Paillier encryption is not CCA secure #
Paillier encryption ([KL20], Construction 15.11) encrypts m under the public key N
as (1 + N) ^ m * r ^ N mod N ^ 2. It is IND-CPA secure under decisional composite residuosity
(DCR.indcpaOn_paillier), but it is additively homomorphic: multiplying a ciphertext by
1 + N, the randomness-free encryption of 1, adds 1 to its plaintext. Hence it is not CCA
secure: incrementAdversary chooses (0, 1), asks the Phase 2 oracle to decrypt
ct * (1 + N) mod N ^ 2, which differs from the challenge ct because its decryption differs, and
outputs whether the reply is 2 mod N. This is the generic argument of [BS23],
Section 12.2.1 (pp. 469–470), instantiated through Encryption.not_indcca2On_of_maulAdversary; it
has 1CCA advantage exactly 1 at every security parameter and needs no assumption.
The CCA games use decryptOpt, the never-rejecting decryption some ∘ decrypt, as the scheme's
Option-valued decryptor, and the admissibility predicate validMessages of
DCR.indcpaOn_paillier.
Main definitions #
Cslib.Crypto.Paillier.decryptOpt: decryption as theOption-valued CCA decryptor.Cslib.Crypto.Paillier.incrementCiphertext: multiplication of a ciphertext by1 + N.Cslib.Crypto.Paillier.incrementAdversary: the one-query 1CCA adversary.
Main results #
Cslib.Crypto.Paillier.computableInPolyTime_incrementCiphertext,Cslib.Crypto.Paillier.decrypt_incrementCiphertext: the increment is polynomial-time and adds1moduloNto the plaintext of every honest ciphertext.Cslib.Crypto.Paillier.isPPT_incrementAdversary: the adversary is strict oracle PPT.Cslib.Crypto.Paillier.advantage_cca2GameOn_incrementAdversary: its advantage is1.Cslib.Crypto.Paillier.not_indcca2On_paillier,Cslib.Crypto.Paillier.not_indcca2InterleavedOn_paillier: Paillier is neither 1CCA secure nor CCA secure in the interleaved sense of [BS23], Attack Game 12.1 and Definition 12.1.
References #
- J. Katz, Y. Lindell, Introduction to Modern Cryptography, 3rd ed.,
Construction 15.11 (locator as cited in
CslibFrontier/Crypto/Computational/Paillier.lean). - D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Exercise 11.13 (pp. 461–462, the additive homomorphism), Section 12.1 (Attack Game 12.1, Definitions 12.1–12.2, pp. 467–468) and Section 12.2.1 (pp. 469–470).
incrementCiphertext is computable in polynomial time.
Incrementing adds one to the plaintext: for a valid description d, every ciphertext in
the support of encrypt n (encNat N) m increments to a ciphertext that decrypts to
(m + 1) mod N.
The 1CCA increment adversary against Paillier: choose (0, 1), query the decryption
oracle on incrementCiphertext pk ct, and output whether the reply is some (2 mod N), which
happens exactly when the challenge encrypts 1.
incrementAdversary has 1CCA advantage exactly 1 against Paillier under validMessages.
Paillier encryption is not 1CCA secure ([BS23], Section 12.2.1, pp. 469–470,
applied to the additive homomorphism of Paillier encryption): for every modulus generator gen,
the scheme (keyGen gen, encrypt) of DCR.indcpaOn_paillier, with decryptor decryptOpt, fails
Encryption.INDCCA2On validMessages encNat encBits. No assumption is needed; so under DCR (and
hsize) Paillier is IND-CPA but not IND-CCA2.
Paillier encryption is not CCA secure in the interleaved multi-challenge sense of
[BS23], Attack Game 12.1 and Definition 12.1 (pp. 467–468), by
INDCCA2InterleavedOn.indcca2On.