# Breaking ElGamal: Partial decryption recovers any plaintext

Ben Smyth

2026-12-06

## Abstract

Con artist presents victims with ciphertexts. Honest keyholder supplies single partial decryption in zero-knowledge. Marks recover distinct plaintexts.

# Unbound proof offers false witness

Desmedt & Frankel refine ElGamal for a plurality of keyholders \[DF89\]. To decrypt, each computes a partial result using their private key share against the ciphertext’s first component. Plaintext is recovered. Key shares are constructed by a trusted dealer, lest keyholders inject backdoors. Pedersen removes the dealer; keyholders prove their public shares are well-formed \[Ped91\]. Partial results remain taken on trust. Cramer, Gennaro & Schoenmakers prove them by Chaum & Pedersen’s equality between discrete logarithms \[CGS97; CP92\].

Key generation:  
One or more keyholders pick $x_j$ and publish $h_j = g^{x_j}$, public key is $h = \prod_j h_j$.

Encryption:  
Sample nonce $r$, output ciphertext $(a,b) = (g^r, h^r m)$ for message $m$.

Partial decryption:  
Keyholders output $d_j = a^{x_j}$, proving $\log_g h_j = \log_a d_j$ in zero-knowledge.

Recover:  
Check the proofs, output $b \cdot (\prod_j d_j)^{-1}$.

A partial decryption is a Chaum–Pedersen signature on the first ciphertext component. The signature proof of knowledge is correct. The partial decryption recovers plaintext from any ciphertext with such a first component; nothing binds the full ciphertext.

# Single partial decryption, any plaintext

Ciphertext $(a,b)$ is partially decrypted, con artist recovers plaintext $m$, and presents their victim with $(a, b \cdot m^{-1} \cdot n)$, who graciously accepts:

- *Voting.* Partial decryption reveals any election result. Requires presentation of differing encrypted election results between factions.

- *Sealed bids.* Each bid is opened by partial decryption. Auctioneer collects the winning price from the bidder, presents the seller with a lower one, pockets the difference.

- *Mail.* Recipients compute partial decryptions and reveal different messages.

- *Key escrow.* Keyholders partially decrypt an escrowed key under warrant. Presented in court beside another ciphertext, their partial decryption proves any key.

- *APIs.* Libraries verify a partial decryption beside whichever ciphertext the caller supplies. Everything built on top is potentially broken.

This trick works whenever the victim takes the ciphertext from the attacker. Vulnerable systems include: Voting Helios \[Adi08\], Belenios \[CGG19\], and Zeus \[TPLT13\], mail DKGPG \[Sta22\], and Rust library elastic-elgamal \[Ost26\]. Mixnet- and shuffle-based systems, including JCJ \[JCJ05\], Civitas \[CCM08\], LibTMCG \[Sta21\], mental-poker \[Geo25\], and uzkge \[Zyp25\], are affected to a lesser degree. Vocdoni \[Voc26\] and Calypso \[DED22\] are affected only if consensus fails: Their ledgers fix the ciphertexts decrypted.

# Fix

Include the full ciphertext in the zero-knowledge proof’s hash: Keyholders prove $\log_g h_j = \log_a d_j$ as before, deriving the challenge from ciphertext $(a,b)$ along with the statement and commitment. Recovery checks each proof against the ciphertext in hand. A partial decryption verifies beside the ciphertext it was computed from, and no other.

# References

\[Adi08\] B. Adida. Helios: Web-based open-audit voting. USENIX Security’08.

\[CCM08\] M. R. Clarkson, S. Chong, and A. C. Myers. Civitas: Toward a secure voting system. IEEE S&P’08.

\[CGG19\] V. Cortier, P. Gaudry, and S. Glondu. Belenios: A simple private and verifiable electronic voting system. LNCS 11565, 2019.

\[CGS97\] R. Cramer, R. Gennaro, and B. Schoenmakers. A secure and optimally efficient multi-authority election scheme. EUROCRYPT’97.

\[CP92\] D. Chaum and T. P. Pedersen. Wallet databases with observers. CRYPTO’92.

\[DED22\] DEDIS. Calypso, in cothority. [`github.com/dedis/cothority`](https://github.com/dedis/cothority), 2022.

\[DF89\] Y. Desmedt and Y. Frankel. Threshold cryptosystems. CRYPTO’89.

\[Geo25\] Geometry. mental-poker. [`github.com/geometryxyz/mental-poker`](https://github.com/geometryxyz/mental-poker), 2025.

\[JCJ05\] A. Juels, D. Catalano, and M. Jakobsson. Coercion-resistant electronic elections. WPES’05.

\[Ost26\] A. Ostrovski et al. elastic-elgamal. [`github.com/slowli/elastic-elgamal`](https://github.com/slowli/elastic-elgamal), 2026.

\[Ped91\] T. P. Pedersen. A threshold cryptosystem without a trusted party. EUROCRYPT’91.

\[Sta21\] H. Stamer. LibTMCG. [`github.com/HeikoStamer/libtmcg`](https://github.com/HeikoStamer/libtmcg), 2021.

\[Sta22\] H. Stamer. DKGPG. [`github.com/HeikoStamer/dkgpg`](https://github.com/HeikoStamer/dkgpg), 2022.

\[TPLT13\] G. Tsoukalas et al. From Helios to Zeus. EVT/WOTE’13.

\[Voc26\] Vocdoni. davinci-node. [`github.com/vocdoni/davinci-node`](https://github.com/vocdoni/davinci-node), 2026.

\[Zyp25\] Zypher. uzkge. [`github.com/zypher-game/uzkge`](https://github.com/zypher-game/uzkge), 2025.
