Multiplicative ElGamal is unpredictable #
Section 12.6.2 of Boneh and Shoup ([BS23], printed p. 500) notes that multiplicative
ElGamal over a cyclic group of prime order q "is 1/q-unpredictable. Moreover, under the CDH
assumption, it must be the case that 1/q is negligible."
An encryption (β • g, β • u + x) determines its coins β through its first component whenever
β ↦ β • g is injective, as it is when g generates a group of order q:
- In a fixed group under exact uniform coins (
elGamalExplicitCoinPKE q g), a fresh encryption equals a given ciphertext with probability at most1 / qunder every public key and for every message, giving1 / q-unpredictability (epsilonUnpredictable_elGamalExplicitCoinPKE). - Over a prime-order group family with the fair-coin scheme
elGamalProbExplicitCoinPKE n d(whose key generator, encryption, and decryption are realized on encoded group elements byelGamalKeyGenProb,elGamalEncryptProb, andelGamalDecryptDetinCslibFrontier/Crypto/Computational/ElGamal/ProbComp.lean), drawingb ← sampleExp n din strict PPT adds at most1 / 2 ^ nto the exact1 / qbound (unlike [BS23], Definition 2.8, p. 30, which allows a negligible runtime-overflow probability), yielding(1 / q + 1 / 2 ^ n)-unpredictability (epsilonUnpredictable_elGamalProbExplicitCoinPKE). - Along a deterministic schedule of groups
d, CDH makes1 / qnegligible (CDH.negligible_inv_order), so1 / q + 1 / 2 ^ nis negligible and the fair-coin schemes form an unpredictable family (CDH.elGamal_unpredictable). The other claim of §12.6.2, one-wayness under CDH, isCDH.elGamal_oneWayinCslibFrontier/Crypto/Computational/ElGamal/OneWay.lean.
Main results #
Cslib.Crypto.epsilonUnpredictable_elGamalExplicitCoinPKE: multiplicative ElGamal over a fixed group with exact uniform coins is1 / q-unpredictable.Cslib.Crypto.PrimeOrderGroupFamily.epsilonUnpredictable_elGamalProbExplicitCoinPKE: fair-coin multiplicative ElGamalelGamalProbExplicitCoinPKE n dis(1 / q + 1 / 2 ^ n)-unpredictable.Cslib.Crypto.PrimeOrderGroupFamily.CDH.elGamal_unpredictable: fair-coin multiplicative ElGamal over a group family is unpredictable under CDH.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 12.6.2 (printed pp. 499–500) and Definition 12.6 (printed p. 495).
Multiplicative ElGamal is 1 / q-unpredictable ([BS23], Section 12.6.2, p. 500)
when β ↦ β • g is injective, as it is when g generates a group of order q. The first
component β • g of an encryption determines the coins β, so under every public key a fresh
encryption equals a given ciphertext with probability at most 1 / q.
Fair-coin multiplicative ElGamal is (1 / q + 1 / 2 ^ n)-unpredictable ([BS23],
Section 12.6.2, p. 500; Definition 12.6, p. 495): at security parameter n and group description
d of prime order q = F.order d, the first component (b : ZMod q) • g of an encryption under
elGamalProbExplicitCoinPKE n d uniquely determines (b : ZMod q), so sampleExp sampling gives
ciphertext hit bound 1 / q + 1 / 2 ^ n (relaxing the book's exact 1 / q bound under
Definition 2.8's negligible runtime-overflow model, p. 30, to strict fair-coin sampling).
Multiplicative ElGamal is unpredictable under CDH ([BS23], Section 12.6.2, p. 500;
Definition 12.6, p. 495): if CDH holds for F along a deterministic schedule of group descriptions
d, the fair-coin schemes (F.elGamalProbExplicitCoinPKE n (d n)).toPKE form an unpredictable
family (Encryption.Unpredictable). Each scheme is (1 / q + 1 / 2 ^ n)-unpredictable
(epsilonUnpredictable_elGamalProbExplicitCoinPKE, relaxing exact 1 / q under Definition 2.8,
p. 30, to strict fair-coin sampling), and CDH makes 1 / q negligible (CDH.negligible_inv_order).
The group at each security parameter is fixed so that each n has one scheme, as
Encryption.Unpredictable requires.