Strong ciphertext unpredictability of ElGamal encryption #
Over a PrimeOrderGroupFamily, both multiplicative ElGamal encryption (elGamalEncryptProb) and
hybrid Hashed ElGamal encryption (Encryption.hybridEncrypt (F.hashedElGamalEncapsProb H d) encryptSym) have strongly unpredictable ciphertexts ([BS23], §21.4.1, p. 872) whenever
the reciprocal group order (F.order (d n) : ℝ≥0)⁻¹ is negligible along the parameter schedule d.
Neither elGamalEncryptProb nor hashedElGamalEncapsProb checks whether pk is a well-formed
group element: the ciphertext prefix β • g depends only on the fresh ephemeral exponent b, and
the modular sampling error 1 / 2 ^ n from sampleExp gives the explicit single-invocation hit
bound (F.order (d n) : ℝ≥0)⁻¹ + 1 / 2 ^ n. Whenever the deterministic group schedule
fun n => PMF.pure (d n) satisfies F.DDH, DDH.negligible_expected_inv_order implies that
(F.order (d n) : ℝ≥0)⁻¹ is negligible.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.eval_bind_sampleExp_apply_le: shared ciphertext-hit bound for anysampleExp-based computation whose output uniquely determinesb mod q.Cslib.Crypto.PrimeOrderGroupFamily.ciphertextHitBound_elGamalEncryptProb: single-parameter hit bound(F.order (d n) : ℝ≥0)⁻¹ + 1 / 2 ^ nfor multiplicative ElGamal.Cslib.Crypto.PrimeOrderGroupFamily.stronglyUnpredictable_elGamalEncryptProb: strong unpredictability of multiplicative ElGamal under negligible reciprocal group order.Cslib.Crypto.PrimeOrderGroupFamily.ciphertextHitBound_hybrid_hashedElGamal: single-parameter hit bound for hybrid Hashed ElGamal with any DEMencryptSym.Cslib.Crypto.PrimeOrderGroupFamily.stronglyUnpredictable_hybrid_hashedElGamal: strong unpredictability of hybrid Hashed ElGamal under negligible reciprocal group order.
References #
- D. Boneh and V. Shoup, A Graduate Course in Applied Cryptography, Section 21.4.1 (p. 872), Section 11.5 (pp. 445–446), Exercise 11.5 (p. 459), and Exercise 11.9 (pp. 460–461).
Shared hit-bound lemma for any computation that binds b ← F.sampleExp n d and whose
output x uniquely determines (b : ZMod (F.order d)).
At each security parameter n, multiplicative ElGamal encryption elGamalEncryptProb has
ciphertext hit bound (F.order (d n) : ℝ≥0)⁻¹ + 1 / 2 ^ n, uniformly over all public keys and
messages.
Multiplicative ElGamal encryption elGamalEncryptProb has strongly unpredictable ciphertexts
([BS23], §21.4.1, p. 872) whenever (F.order (d n) : ℝ≥0)⁻¹ is negligible. In
particular, hord follows from F.DDH (fun n => PMF.pure (d n)) via
DDH.negligible_expected_inv_order.
At each security parameter n, hybrid Hashed ElGamal encryption
Encryption.hybridEncrypt (F.hashedElGamalEncapsProb H d) encryptSym has ciphertext hit bound
(F.order (d n) : ℝ≥0)⁻¹ + 1 / 2 ^ n, uniformly over all public keys, messages, and symmetric
encryption components encryptSym.
Hybrid Hashed ElGamal encryption has strongly unpredictable ciphertexts ([BS23],
§21.4.1, p. 872) whenever (F.order (d n) : ℝ≥0)⁻¹ is negligible. In particular, hord follows
from F.DDH (fun n => PMF.pure (d n)) via DDH.negligible_expected_inv_order.