Analysis of Gong et al.'s CCA2-Secure Homomorphic Encryption

Hyung Tae Lee, San Ling, Huaxiong Wang

Introduction

In the field of modern cryptography, two properties are often viewed as mutually exclusive: Additive Homomorphic Encryption (AHE) and Adaptive Chosen Ciphertext Attack (CCA2) security. Homomorphic encryption is inherently malleable, allowing users to perform computations on encrypted data. Conversely, CCA2 security—the "gold standard" for encryption—requires non-malleability, ensuring that an adversary cannot modify a ciphertext into another valid ciphertext related to the original plaintext.

In 2016, Gong et al. proposed a scheme that claimed to bridge this gap, offering both additive homomorphism and CCA2 security. This paper provides a rigorous cryptanalysis of that claim, demonstrating that the proposed scheme fails both in its security promises and its functional homomorphic properties.

Rectifying the Decryption Algorithm

Before analyzing the security of the scheme, the authors identified a fundamental flaw in the original construction: the decryption algorithm was mathematically incorrect. As originally presented, the scheme failed to return the original message even for legitimate users. To conduct a fair evaluation, the authors derived a "rectified" version of the algorithm, identifying a missing factor $t$ in the decryption formula. This rectification was necessary to create a functional baseline for further cryptanalysis.

Breaking CCA2 Security: The Re-randomization Attack

The core of the paper's security analysis is a "re-randomization" attack that successfully breaks the CCA2 security of the Gong et al. scheme. In a standard CCA2 security game, an attacker is challenged to distinguish which of two messages corresponds to a challenge ciphertext. The attacker has access to a decryption oracle but is forbidden from submitting the challenge ciphertext itself.

The authors demonstrated that the scheme's structure allows for easy manipulation. By taking the challenge ciphertext $(C_1, C_2, C)$ and raising its components to a random power $s$, an attacker can generate a new valid ciphertext that decrypts to the same underlying message. Because this new ciphertext is bit-wise different from the challenge, the attacker can legally submit it to the decryption oracle. This allows the attacker to recover the plaintext with 100% probability, proving that the scheme is not CCA2-secure.

The Failure of Homomorphic Properties

Beyond the security vulnerabilities, the paper examines whether the scheme is actually additively homomorphic. In traditional AHE schemes like Paillier, multiplying two ciphertexts results in the encryption of the sum of the plaintexts.

However, algebraic expansion of the Gong et al. scheme reveals a "Ratio Problem." When attempting to add two encrypted messages ($\hat{m}$ and $\check{m}$), the resulting ciphertext does not decrypt to $\hat{m} + \check{m}$. Instead, it yields a complex ratio:

$$\frac{\hat{b}\hat{m} + \check{b}\check{m}}{\hat{b} + \check{b}}$$

where $b$ values are random integers chosen during the encryption process. Since these random values are unknown to the receiver, the result of the "homomorphic" operation is effectively random noise. The authors argue that making the scheme truly homomorphic would require exposing secret parameters in the public key, which would likely compromise the entire system's security.

Conclusion

The analysis serves as a definitive debunking of the Gong et al. construction. Through a combination of mathematical verification and a practical "Toy Example" (using small primes $p=113$ and $q=71$), the authors show that the scheme is neither secure against adaptive chosen ciphertext attacks nor functionally homomorphic.

While the authors briefly considered modifications to fix the homomorphic property, they concluded that such changes would result in a scheme significantly less efficient than existing standards like Paillier AHE, requiring three times the computational overhead (6 exponentiations vs. 2) without providing superior security. Ultimately, the paper reinforces the cryptographic principle that malleability and CCA2 security remain fundamentally at odds.

Summary updated

Abstract

It is a well-known result that homomorphic encryption is not secure against adaptive chosen ciphertext attacks (CCA2) because of its malleable property. Very recently, however, Gong et al. proposed a construction asserted to be a CCA2-secure additively homomorphic encryption (AHE) scheme; in their construction, the adversary is not able to obtain a correct answer when querying the decryption oracle on a ciphertext obtained by modifying the challenge ciphertext (Theoretical Computer Science, 2016). Because their construction is very similar to Paillier’s AHE, it appeared to support an additively homomorphic property, though they did not specify an evaluation algorithm for the scheme in their paper. In this paper, we present a simple CCA2 attack on their construction by re-randomizing the challenge ciphertext. Furthermore, we look into an additively homomorphic property of their construction. To do this, we first consider a typical candidate for an addition algorithm on ciphertexts, as provided for previous AHE constructions, and establish that it does not function correctly. Subsequently, we provide plausible evidence for the hardness of achieving an additively homomorphic property with their construction. According to our analysis, it seems hard to preserve an additively homomorphic property of their construction without any modification. In addition, as a minor contribution, we point out a flaw in the decryption algorithm of their construction and present a rectified algorithm for correct decryption.
BibTeX
@article{lee2016analysis,
  author = {Hyung Tae Lee and San Ling and Huaxiong Wang},
  title = {{Analysis of Gong et al.'s CCA2-Secure Homomorphic Encryption}},
  journal = {IACR ePrint},
  year = {2016},
}
Figure