Documentation

CslibFrontier.Crypto.Computational.ElGamal.Unpredictable

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:

Main results #

References #

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.