General-Cipher Hashed ElGamal ([BS23], Section 11.5, Theorem 11.5) #
This module generalizes Hashed ElGamal ([BS23], Section 11.5, pp. 445–446, Remark 11.1,
and Section 11.5.2, Theorem 11.5, pp. 448–451) from the one-time pad specialization in
CslibFrontier/Crypto/Computational/ElGamal.lean to an arbitrary semantically secure symmetric
cipher
$\mathcal{E}_s$.
- Paraphrase of [BS23], Section 11.5 (p. 445) and Remark 11.1 (p. 446): over a cyclic group $G$ of prime order $q$ with generator $g$, a symmetric cipher $\mathcal{E}_s = (E_s, D_s)$ over $(\mathcal{K}, \mathcal{M}, \mathcal{C})$, and a key-derivation hash function $H$, key generation samples $\alpha \leftarrow \mathbb{Z}_q$ and outputs $(pk = \alpha \cdot g, sk = \alpha)$. In the $\mathcal{E}'_{\mathrm{EG}}$ variant of Remark 11.1 (which derives $k$ from $w = \beta \cdot u$ alone), encryption of $m \in \mathcal{M}$ under $pk = u$ samples $\beta \leftarrow \mathbb{Z}_q$, sets $v = \beta \cdot g$, $w = \beta \cdot u$, $k = H(w)$, $c \leftarrow E_s(k, m)$, and outputs $(v, c)$; decryption of $(v, c)$ under $sk = \alpha$ sets $w = \alpha \cdot v$, $k = H(w)$, and outputs $D_s(k, c)$.
- Paraphrase of [BS23], Section 11.5.2, Theorem 11.5 and Equation (11.14) (pp. 449–451): if DDH holds for $G$, $H$ is a secure KDF, and $\mathcal{E}_s$ is semantically secure, then Hashed ElGamal is semantically secure; for every CPA adversary $\mathcal{A}$ there exist elementary wrapper adversaries $\mathcal{B}_{\mathrm{ddh}}$, $\mathcal{B}_{\mathrm{kdf}}$, and $\mathcal{B}_s$ such that $\mathrm{SSadv}[\mathcal{A}, \mathcal{E}_{\mathrm{EG}}] \le 2 \cdot \mathrm{DDHadv}[\mathcal{B}_{\mathrm{ddh}}, G] + 2 \cdot \mathrm{KDFadv}[\mathcal{B}_{\mathrm{kdf}}, H] + \mathrm{SSadv}[\mathcal{B}_s, \mathcal{E}_s]$.
Main definitions #
Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherEncrypt,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherDecrypt,Cslib.Crypto.PrimeOrderGroupFamily.encodeHashedElGamalCipherEncrypt,Cslib.Crypto.PrimeOrderGroupFamily.decodeHashedElGamalCipher: algebraic and word-level Hashed ElGamal encryption and decryption with a general symmetric cipher ([BS23], Section 11.5, pp. 445–446, Remark 11.1).Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherCPAGameOn,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherCPAGame,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherRandomDDHGameOn,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherUniformKeyGameOn: PMF-level IND-CPA experiments and hybrids for general-cipher Hashed ElGamal ([BS23], Section 11.5.2, Theorem 11.5, pp. 449–451).Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherToDDHDistinguisher,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherToDDHHiddenBitDistinguisher,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherToKDFDistinguisher,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherToKDFHiddenBitDistinguisher,Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherToDEMAdversary,Cslib.Crypto.PrimeOrderGroupFamily.seededSetupProb: per-bit and hidden-bit DDH and KDF reductions, symmetric-cipher (DEMOneTimeKeyINDCPAOn/DEMOneTimeINDCPAOn) reduction adversary, and executable seeded setup sampler for Theorem 11.5 ([BS23], Section 11.5.2, pp. 449–451). The KDF reductions are typedKDFDistinguishers, and each DDH reduction runs its KDF reduction on the key derived from the candidate shared element (kdfToDDHDistinguisher), so the random DDH game is the real KDF game (ddhRandomGame_kdfToDDHDistinguisher).
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.hashedElGamalCipherDecrypt_hashedElGamalCipherEncrypt,Cslib.Crypto.PrimeOrderGroupFamily.decodeHashedElGamalCipher_hashedElGamalCipherEncrypt: decryption correctness for general-cipher Hashed ElGamal.
Ideal-sampling steps #
The security results of this module concern hashedElGamalCipherCPAGameOn and its hybrids, which
draw the key and challenge exponents exactly uniformly at the PMF level. They are steps toward
Theorem 11.5 for the strict-PPT scheme, not the cited result, and no theorem yet transfers them to
a native encryption sampler for a general cipher. The approximate sampling (sampleExp, adding
4 / 2 ^ n) below belongs to the symmetric-cipher reduction, not to the target game. For the
one-time pad, the native theorems are DDH.kemINDCPA_hashedElGamalEncapsProb and
DDH.wordINDCPA_hybrid_hashedElGamal in CslibFrontier/Crypto/Computational/ElGamal/ProbComp.lean.
Cslib.Crypto.PrimeOrderGroupFamily.advantage_hashedElGamalCipherCPAGameOn_le,Cslib.Crypto.PrimeOrderGroupFamily.advantage_hashedElGamalCipherCPAGameOn_le_two_mul,PrimeOrderGroupFamily.advantage_hashedElGamalCipherUniformKeyGameOn_le_demKeyGameOn,PrimeOrderGroupFamily.advantage_hashedElGamalCipherCPAGameOn_le_demKeyGameOn,PrimeOrderGroupFamily.advantage_hashedElGamalCipherUniformKeyGameOn_le_demGameOn,PrimeOrderGroupFamily.advantage_hashedElGamalCipherCPAGameOn_le_demGameOn: two-distinguisher and single hidden-bit distinguisher quantitative bounds after Theorem 11.5 (Equation(11.14)of [BS23], p. 449), and the symmetric-cipher reduction to standalone symmetric-cipher security at arbitrary (Encryption.demKeyGameOn) and normalized (n-bit,Encryption.demGameOn) key lengths.PrimeOrderGroupFamily.negligible_hashedElGamalCipherUniformKeyGameOn_of_demOneTimeKeyINDCPAOn,DDH.negligible_hashedElGamalCipherCPAGameOn_ideal_of_demOneTimeKeyINDCPAOn,DDH.negligible_hashedElGamalCipherCPAGameOn_ideal_linearHashKDF_of_demOneTimeKeyINDCPAOn, and their normalizedn-bit-key specializations (PrimeOrderGroupFamily.negligible_hashedElGamalCipherUniformKeyGameOn_of_demOneTimeINDCPAOn,PrimeOrderGroupFamily.DDH.negligible_hashedElGamalCipherCPAGameOn_ideal_of_demOneTimeINDCPAOn,PrimeOrderGroupFamily.DDH.negligible_hashedElGamalCipherCPAGameOn_ideal_linearHashKDF): IND-CPA security of the ideal-sampling gamehashedElGamalCipherCPAGameOnfromDDH,SecureKDF, andDEMOneTimeKeyINDCPAOn(orDEMOneTimeINDCPAOn), plus thelinearHashKDFinstantiation at arbitrary and normalized key lengths, which replaces theSecureKDFhypothesis by a lower boundqMin non the group order of every description in the support of the setup sampler, with2 ^ outLen n / qMin n(or2 ^ n / qMin n) negligible.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 11.5 (pp. 445–446, Remark 11.1) and Section 11.5.2 (pp. 448–451, Attack Game 11.3, Definition 11.5, Theorem 11.5).
Algebraic Hashed ElGamal encryption with a general deterministic symmetric cipher encSym
([BS23], Section 11.5, pp. 445–446, Remark 11.1): given key-derivation hash function
H : F.Desc × List Bool → List Bool, public key u : F.Carrier d, message m : Msg, and
randomness β : ZMod (F.order d), derive k = H (d, encode (β • u)) and output
(β • g, encSym k m).
Under a genuine public key u = α • g, hashedElGamalCipherEncrypt derives the symmetric key
H (d, encode ((α * β) • g)).
Algebraic Hashed ElGamal decryption with a general symmetric cipher decSym
([BS23], Section 11.5, pp. 445–446, Remark 11.1): given secret key α : ZMod (F.order d)
and ciphertext (v, c), derive k = H (d, encode (α • v)) and recover decSym k c.
General-cipher Hashed ElGamal decryption correctness: whenever decSym k (encSym k m) = m
holds for the derived key k = H (d, encode ((α * β) • g)), decrypting an encryption under
u = α • g with secret key α recovers m.
hashedElGamalEncrypt is the one-time pad specialization of hashedElGamalCipherEncrypt.
hashedElGamalDecrypt is the one-time pad specialization of hashedElGamalCipherDecrypt.
Word-level Hashed ElGamal encryption with a general symmetric cipher encSym: given
(d, encode u, m, b), derive k = H (d, encode (b • u)) and compute
(encode (b • g), encSym (k, m)).
encodeHashedElGamalCipherEncrypt evaluates hashedElGamalCipherEncrypt on encoded group
elements.
Word-level general-cipher Hashed ElGamal encryption is computable in polynomial time whenever
H and encSym are.
Word-level Hashed ElGamal decryption with a general symmetric cipher decSym: given
(d, a, encode v, c), derive k = H (d, encode (a • v)) and compute decSym (k, c).
decodeHashedElGamalCipher computes hashedElGamalCipherDecrypt on encoded group elements.
Word-level general-cipher Hashed ElGamal decryption of an honest encryption recovers m
whenever decSym inverts encSym on the derived key.
Word-level general-cipher Hashed ElGamal decryption is computable in polynomial time whenever
H and decSym are.
PMF-level general-cipher Hashed ElGamal IND-CPA games and Theorem 11.5 reductions #
The IND-CPA experiment for general-cipher Hashed ElGamal (Game 0, [BS23],
Section 11.5, pp. 445–446, Remark 11.1, and Section 11.5.2, Theorem 11.5, Figure 11.4,
pp. 449–450) with challenge-pair admissibility predicate valid: draw d ← setup n and a uniform
secret key α : ZMod (F.order d), and pass pk = (d, encode (α • g)) to adversary.choose. If
valid n pk m₀ m₁ holds, encrypt the selected message m under a fresh uniform exponent
β : ZMod (F.order d) and derived symmetric key k = H (d, encode ((α * β) • g)) via
c ← encryptSym n k m, and pass (encode (β • g), c) to adversary.guess; otherwise output
false, in both experiments.
Unrestricted general-cipher Hashed ElGamal IND-CPA experiment: hashedElGamalCipherCPAGameOn
with every challenge pair admissible.
hashedElGamalCPAGame is the specialization of hashedElGamalCipherCPAGame to one-time pad
XOR encryption.
Game 1 for general-cipher Hashed ElGamal ([BS23], Section 11.5.2, proof of
Theorem 11.5, p. 450): replace the Diffie–Hellman shared element (α * β) • g with an independent
uniform group element γ • g.
Unrestricted Game 1 for general-cipher Hashed ElGamal.
Game 2 for general-cipher Hashed ElGamal ([BS23], Section 11.5.2, proof of
Theorem 11.5, p. 450): replace the derived key H (d, encode (γ • g)) with an independent uniform
keyLen n-bit key k ← Cslib.BitString.uniformList (keyLen n).
Unrestricted Game 2 for general-cipher Hashed ElGamal.
Running the unrestricted hashedElGamalCipherCPAGame on adversary.restrict valid has the same
output distribution as running hashedElGamalCipherCPAGameOn valid on adversary.
Running the unrestricted hashedElGamalCipherRandomDDHGame on adversary.restrict valid has
the same output distribution as running hashedElGamalCipherRandomDDHGameOn valid on
adversary.
Running the unrestricted hashedElGamalCipherUniformKeyGame on adversary.restrict valid has
the same output distribution as running hashedElGamalCipherUniformKeyGameOn valid on
adversary.
Per-bit KDF distinguisher constructed from a general-cipher Hashed ElGamal IND-CPA adversary
([BS23], Section 11.5.2, proof of Theorem 11.5, pp. 450–451): given (d, u, v, k), pass
pk = (d, encode u) to adversary.choose, encrypt the selected message m under k via
c ← encryptSym n k m, and return adversary.guess on (encode v, c).
Per-bit DDH distinguisher constructed from a general-cipher Hashed ElGamal IND-CPA adversary
([BS23], Section 11.5.2, proof of Theorem 11.5, p. 450):
hashedElGamalCipherToKDFDistinguisher run with the key H (d, encode w) derived from the
candidate shared element w.
In the real DDH game, hashedElGamalCipherToDDHDistinguisher simulates
hashedElGamalCipherCPAGame exactly.
In the real KDF game, hashedElGamalCipherToKDFDistinguisher simulates Game 1
(hashedElGamalCipherRandomDDHGame) exactly. By ddhRandomGame_kdfToDDHDistinguisher, this is
also the random DDH game for hashedElGamalCipherToDDHDistinguisher.
In the ideal KDF game, hashedElGamalCipherToKDFDistinguisher simulates
hashedElGamalCipherUniformKeyGame exactly.
hashedElGamalCipherToKDFDistinguisher is uniform strict PPT whenever encryptSym and
adversary are. The DDH reduction hashedElGamalCipherToDDHDistinguisher is then uniform strict
PPT by isPPT_kdfToDDHDistinguisher.
Single hidden-bit KDF distinguisher $\mathcal{B}_{\mathrm{kdf}}$ ([BS23],
Section 11.5.2, proof of Theorem 11.5, Equation (11.18), pp. 450–451): sample a uniform challenge
bit bit ← ProbComp.uniform Bool, run hashedElGamalCipherToKDFDistinguisher on bit, and output
guess ^^ bit.
Single hidden-bit DDH distinguisher $\mathcal{B}_{\mathrm{ddh}}$ ([BS23],
Section 11.5.2, proof of Theorem 11.5, Figure 11.4 and Equation (11.17), p. 450):
hashedElGamalCipherToKDFHiddenBitDistinguisher run with the key H (d, encode w) derived from the
candidate shared element w. It samples a uniform challenge bit, runs
hashedElGamalCipherToDDHDistinguisher on it, and outputs guess ^^ bit.
hashedElGamalCipherToKDFHiddenBitDistinguisher is uniform strict PPT whenever encryptSym and
adversary are. The DDH reduction hashedElGamalCipherToDDHHiddenBitDistinguisher is then
uniform strict PPT by isPPT_kdfToDDHDistinguisher.
Quantitative reduction of general-cipher Hashed ElGamal IND-CPA to DDH, SecureKDF, and
Game 2 via two per-bit distinguishers ([BS23], Section 11.5.2, Theorem 11.5,
pp. 449–451): the IND-CPA advantage in hashedElGamalCipherCPAGameOn valid is bounded by the sum of
the two per-bit DDH advantages, the two per-bit KDF advantages, and the Game 2 advantage in
hashedElGamalCipherUniformKeyGameOn valid.
Quantitative reduction of general-cipher Hashed ElGamal IND-CPA to DDH, SecureKDF, and
Game 2 via single hidden-bit distinguishers ([BS23], Section 11.5.2, Theorem 11.5,
Equation (11.14), p. 449):
$$\mathsf{SSadv}[\mathcal{A}, \mathcal{E}_{\mathrm{EG}}] \le 2 \cdot \mathsf{DDHadv}[\mathcal{B}_{\mathrm{ddh}}, \mathbb{G}] + 2 \cdot \mathsf{KDFadv}[\mathcal{B}_{\mathrm{kdf}}, H] + \mathsf{Adv}_{\mathrm{Game\,2}}[\mathcal{A}].$$
Reduction from Game 2 (hashedElGamalCipherUniformKeyGameOn) to DEMOneTimeINDCPAOn #
One-time symmetric-cipher reduction adversary $\mathcal{B}_s$ for general-cipher Hashed ElGamal
([BS23], Section 11.5.2, proof of Theorem 11.5, p. 451): given an efficiently samplable
group-description generator setupProb : ℕ → ProbComp F.Desc and a PKE adversary adversary,
choose n _ samples d ← setupProb n and a, b ← F.sampleExp n d, sets
u = encode (a • g) and v = encode (b • g), runs choice ← adversary.choose n (d, u), and saves
(v, choice.2); guess n state ctSym unpacks (v, st) and runs
adversary.guess n st (v, ctSym).
hashedElGamalCipherToDEMAdversary setupProb adversary is an admissible uniform strict PPT
Encryption.AdversaryOf Msg whenever setupProb and adversary are.
For each bit bit : Bool and any key-length function keyLen : ℕ → ℕ, the Game 2 distribution
hashedElGamalCipherUniformKeyGameOn over fun m => ProbComp.eval (setupProb m) is within
2 / 2 ^ n in Game.advantage of the standalone one-time symmetric experiment
Encryption.demKeyGameOn on the wrapper adversary
hashedElGamalCipherToDEMAdversary setupProb (adversary.restrict valid)
(two approximate exponent draws via sampleExp, each within 1 / 2 ^ n of uniform).
For each bit bit : Bool, the Game 2 distribution hashedElGamalCipherUniformKeyGameOn over
fun m => ProbComp.eval (setupProb m) with keyLen n = n is within 2 / 2 ^ n in
Game.advantage of the standalone one-time symmetric experiment Encryption.demGameOn on
hashedElGamalCipherToDEMAdversary setupProb (adversary.restrict valid) (two approximate exponent
draws via sampleExp, each within 1 / 2 ^ n of uniform).
Quantitative bridge from Game 2 (hashedElGamalCipherUniformKeyGameOn) to standalone
symmetric-cipher security at arbitrary key length (Encryption.demKeyGameOn): for any
keyLen : ℕ → ℕ, the Game 2 advantage is bounded by the Encryption.demKeyGameOn advantage of
hashedElGamalCipherToDEMAdversary setupProb (adversary.restrict valid) plus 4 / 2 ^ n.
Quantitative bridge from Game 2 (hashedElGamalCipherUniformKeyGameOn) to standalone
symmetric-cipher security (Encryption.demGameOn): the Game 2 advantage is bounded by the
Encryption.demGameOn advantage of
hashedElGamalCipherToDEMAdversary setupProb (adversary.restrict valid) plus 4 / 2 ^ n.
Native approximate-sampling version of Equation (11.14) for Theorem 11.5 via DDH,
SecureKDF, and standalone symmetric-cipher security at arbitrary key length
(Encryption.demKeyGameOn) ([BS23], Section 11.5.2, Theorem 11.5, Equation (11.14),
p. 449): combining the exact PMF-level Equation (11.14) bound
advantage_hashedElGamalCipherCPAGameOn_le_two_mul with the sampleExp Game 2 bridge
advantage_hashedElGamalCipherUniformKeyGameOn_le_demKeyGameOn adds 4 / 2 ^ n for the two
approximate exponent draws per branch:
$$\mathsf{SSadv}[\mathcal{A}, \mathcal{E}_{\mathrm{EG}}] \le 2 \cdot \mathsf{DDHadv}[\mathcal{B}_{\mathrm{ddh}}, \mathbb{G}] + 2 \cdot \mathsf{KDFadv}[\mathcal{B}_{\mathrm{kdf}}, H] + \mathsf{SSadv}[\mathcal{B}_s, \mathcal{E}_s] + \frac{4}{2^n}.$$
Native approximate-sampling version of Equation (11.14) for Theorem 11.5 via DDH,
SecureKDF, and standalone symmetric-cipher security (Encryption.demGameOn) ([BS23],
Section 11.5.2, Theorem 11.5, Equation (11.14), p. 449): combining the exact PMF-level Equation
(11.14) bound advantage_hashedElGamalCipherCPAGameOn_le_two_mul with the sampleExp
Game 2 bridge advantage_hashedElGamalCipherUniformKeyGameOn_le_demGameOn adds 4 / 2 ^ n for the
two approximate exponent draws per branch:
$$\mathsf{SSadv}[\mathcal{A}, \mathcal{E}_{\mathrm{EG}}] \le 2 \cdot \mathsf{DDHadv}[\mathcal{B}_{\mathrm{ddh}}, \mathbb{G}] + 2 \cdot \mathsf{KDFadv}[\mathcal{B}_{\mathrm{kdf}}, H] + \mathsf{SSadv}[\mathcal{B}_s, \mathcal{E}_s] + \frac{4}{2^n}.$$
One-time symmetric IND-CPA security at arbitrary key length (Encryption.DEMOneTimeKeyINDCPAOn)
implies negligibility of the Game 2 advantage (hashedElGamalCipherUniformKeyGameOn) whenever the
setup law is efficiently samplable (setupProb : ℕ → ProbComp F.Desc) and valid implies
validSym.
One-time symmetric IND-CPA security (Encryption.DEMOneTimeINDCPAOn) implies negligibility of
the Game 2 advantage (hashedElGamalCipherUniformKeyGameOn) whenever the setup law is efficiently
samplable (setupProb : ℕ → ProbComp F.Desc), keyLen n = n, and valid implies validSym.
Ideal-sampling step, not the cited result: IND-CPA security of the general-cipher Hashed
ElGamal game hashedElGamalCipherCPAGameOn, whose key and challenge exponents are drawn exactly
uniformly at the PMF level, from DDH, SecureKDF, and Encryption.DEMOneTimeKeyINDCPAOn at
arbitrary key length (after [BS23], Section 11.5.2, Theorem 11.5, pp. 449–451). For any
efficiently samplable setup setupProb : ℕ → ProbComp F.Desc
(setup n = ProbComp.eval (setupProb n)), key-length function keyLen : ℕ → ℕ, and admissibility
predicate valid implying validSym, if F.DDH, F.SecureKDF, and
Encryption.DEMOneTimeKeyINDCPAOn validSym encMsg keyLen encryptSym hold, then every uniform strict
PPT adversary has negligible advantage in hashedElGamalCipherCPAGameOn valid.
Ideal-sampling step, not the cited result: IND-CPA security of the general-cipher Hashed
ElGamal game hashedElGamalCipherCPAGameOn, whose key and challenge exponents are drawn exactly
uniformly at the PMF level, from DDH, SecureKDF, and Encryption.DEMOneTimeINDCPAOn (after
[BS23], Section 11.5.2, Theorem 11.5, pp. 449–451). For any efficiently samplable setup
setupProb : ℕ → ProbComp F.Desc (setup n = ProbComp.eval (setupProb n)), keyLen n = n, and
admissibility predicate valid implying validSym, if F.DDH, F.SecureKDF, and
Encryption.DEMOneTimeINDCPAOn validSym encMsg encryptSym hold, then every uniform strict PPT
adversary has negligible advantage in hashedElGamalCipherCPAGameOn valid.
Executable ProbComp sampler for F.seededSetup: sample d ← setupProb n, then conditional on
d, sample a uniform seed s ← Cslib.BitString.sampleList (seedLen n d) and output (d, s).
ProbComp.eval (F.seededSetupProb setupProb seedLen n) equals
F.seededSetup (fun m => ProbComp.eval (setupProb m)) seedLen n.
F.seededSetupProb setupProb seedLen is uniform strict PPT whenever setupProb is uniform
strict PPT and seedLen is computable in polynomial time in unary.
Ideal-sampling step, not the cited result: IND-CPA security of the general-cipher Hashed
ElGamal game hashedElGamalCipherCPAGameOn with linearHashKDF at arbitrary key length
outLen : ℕ → ℕ, whose key and challenge exponents are drawn exactly uniformly at the PMF level,
from DDH and Encryption.DEMOneTimeKeyINDCPAOn (after [BS23], Section 8.10.4,
Theorem 8.11, p. 334, and Section 11.5.2, Theorem 11.5, pp. 449–451). Combining
DDH.withSeed, secureKDF_linearHashKDF, isPPTOn_seededSetupProb, and
DDH.negligible_hashedElGamalCipherCPAGameOn_ideal_of_demOneTimeKeyINDCPAOn yields IND-CPA
security of that game instantiated with linearHashKDF at any polynomial-time key length
outLen under F.DDH and Encryption.DEMOneTimeKeyINDCPAOn, with no SecureKDF hypothesis.
In its place the theorem requires LinearHashKDFConditions for the strict PPT setup sampler
setupProb with output length outLen.
Ideal-sampling step, not the cited result: IND-CPA security of the general-cipher Hashed
ElGamal game hashedElGamalCipherCPAGameOn with linearHashKDF, whose key and challenge exponents
are drawn exactly uniformly at the PMF level, from DDH and Encryption.DEMOneTimeINDCPAOn
(after [BS23], Section 8.10.4, Theorem 8.11, p. 334, and Section 11.5.2, Theorem 11.5,
pp. 449–451). Combining DDH.withSeed, secureKDF_linearHashKDF, isPPTOn_seededSetupProb, and
DDH.negligible_hashedElGamalCipherCPAGameOn_ideal_of_demOneTimeINDCPAOn yields IND-CPA security
of that game instantiated with linearHashKDF under
F.DDH and Encryption.DEMOneTimeINDCPAOn, with no SecureKDF hypothesis. In its place the
theorem requires LinearHashKDFConditions for the strict PPT setup sampler setupProb with output
length n.