Multiplicative Cramer–Shoup Encryption Scheme and Adaptive Projective-Hash Rejection #
This module formalizes the Multiplicative Cramer–Shoup public-key encryption scheme
($\mathcal{E}_{\mathrm{MCS}}$, Boneh and Shoup, Section 12.5.3, Section 12.7, and Exercise 12.27,
printed pp. 488–493, 501–502, 521–522, over an arbitrary associated-data type
AD : Type) over a PrimeOrderGroupFamily, proves its algebraic and word-level
decryption correctness and polynomial-time computability certificates, and establishes the
adaptive Lemma 12.8 projective-hash rejection bound and Lemma 12.6 one-time group-mask
challenge blindness (the hops cramerShoupGame3 $\to$ cramerShoupGame3Half $\to$
cramerShoupGame4 $\to$ cramerShoupGame5, covering Games 4 $\to$ 5 $\to$ 6 in the proof of
Theorem 12.9, printed pp. 492–493)
against an adaptive ADCCA2AdversaryOf Msg AD. Groups are written additively as
ZMod (F.order d)-modules (matching DiscreteLog, DiffieHellman, ElGamal, and
ProjectiveHash).
Source Statements ([BS23], Sections 12.5.1–12.5.3, 12.7 & Exercise 12.27) #
Verbatim from [BS23], Section 12.7, Definition 12.7 (printed pp. 501–502):
Definition 12.7 (CCA and 1CCA security with associated data). The definition of CCA security for ordinary public-key encryption schemes carries over naturally to AD public-key encryption schemes. Attack Game 12.1 is modified as follows. For encryption queries, in addition to a pair of messages $(m_{i0}, m_{i1})$, the adversary also submits associated data $d_i$, and the challenger computes $c_i \xleftarrow{R} E(pk, m_{ib}, d_i)$. For decryption queries, in addition to a ciphertext $\hat{c}_j$, the adversary submits associated data $\hat{d}_j$, and the challenger computes $\hat{m}_j \leftarrow D(sk, \hat{c}_j, \hat{d}_j)$. The restriction is that the pair $(\hat{c}_j, \hat{d}_j)$ may not be among the pairs $(c_1, d_1), (c_2, d_2), \ldots$ corresponding to previous encryption queries. An adversary $\mathcal{A}$'s advantage in this game is denoted $\text{CCA}^{\text{ad}}\text{adv}[\mathcal{A}, \mathcal{E}]$, and the scheme is said to be CCA secure if this advantage is negligible for all efficient adversaries $\mathcal{A}$. If we restrict the adversary to a single encryption query, as in Definition 12.2, the advantage is denoted $\text{1CCA}^{\text{ad}}\text{adv}[\mathcal{A}, \mathcal{E}]$, and the scheme is said to be 1CCA secure if this advantage is negligible for all efficient adversaries $\mathcal{A}$.
Verbatim from [BS23], Sections 12.5.1–12.5.2 (Lemma 12.6 in §12.5.1, printed p. 486; Lemma 12.8 in §12.5.2, printed p. 488):
Lemma 12.6. In Attack Game 12.4, $\Pr[W_0] = \Pr[W_1]$ for all adversaries $\mathcal{A}$. … Lemma 12.8. In Attack Game 12.5, for any adversary $\mathcal{A}$ that outputs at most $Q$ tuples, the probability that it wins is at most $Q/q$.
Verbatim from [BS23], Section 12.5.3 (printed pp. 488–493):
- the key generation algorithm runs as follows: $$\begin{aligned} G() :=\quad & \alpha \xleftarrow{R} \mathbb{Z}_q,\; u \leftarrow g^\alpha,\; \sigma, \tau \xleftarrow{R} \mathbb{Z}_q,\; h \leftarrow g^\sigma u^\tau \\ & \sigma_1, \tau_1, \sigma_2, \tau_2 \xleftarrow{R} \mathbb{Z}_q,\; h_1 \leftarrow g^{\sigma_1} u^{\tau_1},\; h_2 \leftarrow g^{\sigma_2} u^{\tau_2} \\ & pk \leftarrow (u, h, h_1, h_2),\; sk \leftarrow (\sigma, \tau, \sigma_1, \tau_1, \sigma_2, \tau_2),\; \text{output } (pk, sk); \end{aligned}$$ … Game 5. We again widen the rejection rule at line (5), replacing it with: $$(5) \qquad \text{if } \hat{v}^\alpha \ne \hat{w} \text{ or } \mathit{Coll}_{u,v}(\hat{u}, \hat{v}) \text{ or } z' \ne f'(\hat{v}, \hat{w}, \hat{\rho})$$ So this rule will reject the ciphertext if $(\hat{v}, \hat{w}) \notin L_u$. Let $Z_5$ be the event that in Game 5, some decryption query, which would not have triggered the rejection rule of Game 4, does trigger the wider rejection rule in Game 5. Clearly, Games 4 and 5 proceed identically unless event $Z_5$ occurs. By the Difference Lemma, we have $$|\Pr[W_4] - \Pr[W_5]| \le \Pr[Z_5]. \quad (12.26)$$ We will argue that $\Pr[Z_5] \le Q_d / q$. $(12.27)$ … Game 6. Everything we did so far was leading to this point, which is the crux of the proof. We replace line (2) in Fig. 12.3 with $z \xleftarrow{R} \mathbb{G}$. We claim that $\Pr[W_6] = \Pr[W_5]$. $(12.28)$ This follows from Lemma 12.6, and the fact that in processing decryption queries in Game 5, we only need to evaluate $f(\hat{v}, \hat{w})$ at points $(\hat{v}, \hat{w}) \in L_u$. … Remark 12.3 (Group membership verification). For reasons similar to that discussed in Remark 12.1, it is essential that given a ciphertext $(v, w, z', c)$, the decryption algorithm for $\mathcal{E}_{\mathrm{CS}}$ verifies that $v$ and $w$ are in $\mathbb{G}$. It is not necessary to explicitly check that $z'$ is in $\mathbb{G}$, since the check that $v^{\sigma_1 + \rho \sigma_2} w^{\tau_1 + \rho \tau_2} = z'$ implies that $z'$ is in $\mathbb{G}$.
Verbatim from [BS23], Exercise 12.27 (printed pp. 521–522):
12.27 (Multiplicative Cramer-Shoup encryption). Consider the following multiplicative version of the Cramer-Shoup encryption scheme (presented in Section 12.5) that supports associated data (see Section 12.7) coming from a set $\mathcal{D}$. Let $\mathbb{G}$ be a cyclic group of prime order $q$ with generator $g \in \mathbb{G}$. Let $H' : \mathbb{G}^3 \times \mathcal{D} \to \mathbb{Z}_q$ be a hash function. The encryption scheme $\mathcal{E}_{\mathrm{MCS}} = (G, E, D)$ is defined over $(\mathbb{G}, \mathcal{D}, \mathbb{G}^4)$ as follows. Key generation is exactly as in $\mathcal{E}_{\mathrm{CS}}$. For a given public key $pk = (u, h, h_1, h_2) \in \mathbb{G}^4$ message $m \in \mathbb{G}$, and associated data $d \in \mathcal{D}$, the encryption algorithm runs as follows: $$E(pk, m, d) := \beta \xleftarrow{R} \mathbb{Z}_q,\; v \leftarrow g^\beta,\; w \leftarrow u^\beta,\; e \leftarrow h^\beta \cdot m,\; \rho \leftarrow H'(v, w, e, d),\; z' \leftarrow (h_1 h_2^\rho)^\beta,\; \text{output } (v, w, e, z').$$ For a given secret key $sk = (\sigma, \tau, \sigma_1, \tau_1, \sigma_2, \tau_2) \in \mathbb{Z}_q^6$ and a ciphertext $(v, w, e, z') \in \mathbb{G}^4$, and associated data $d \in \mathcal{D}$, the decryption algorithm runs as follows: $$D(sk, (v, w, e, z', d)) := \rho \leftarrow H'(v, w, e, d);\; \text{if } v^{\sigma_1 + \rho \sigma_2} w^{\tau_1 + \rho \tau_2} = z' \text{ then output } e / (v^\sigma w^\tau) \text{ else output reject}.$$ Show that $\mathcal{E}_{\mathrm{MCS}}$ is CCA secure, provided $H'$ is collision resistant and the DDH assumption holds for $\mathbb{G}$.
Existing Notions Considered #
Cslib.Crypto.PrimeOrderGroupFamily(DiffieHellman.lean) andElGamal(ElGamal.lean): reused for group descriptions, carriers, generators, encodings, and word-level group operations.Cslib.Crypto.ProjectiveHash(CslibFrontier/Crypto/Computational/CramerShoup/ProjectiveHash.lean): reused forprojHash,projHashAux,projHash2,projHash2Aux, fiber identities,projHashFiberEquiv,projHash2QueryFiberEquiv, anduniform_projHash_fiber_add.Cslib.Crypto.Encryption.ADCCA2AdversaryOf(CslibFrontier/Crypto/Computational/Encryption/CCA/AssociatedData.lean) andCslib.Crypto.isCollisionFor(CollisionResistant.lean): reused for adaptive 1CCA-AD adversaries and Phase 2 hash collisions inZMod (F.order d).Cslib.Crypto.Game(Game.lean,CslibFrontier/Crypto/Game/UntilBad.lean): reused forrunStatelessOracle,advantage_runStatelessOracle_bind_le,bind_runStatelessOracle_comm,advantage_runStatelessOracle_le_of_support,advantage_bind_le_nnreal,advantage_bind_le_of_support,advantage_bind_comm, andadvantage_uniform_bind_of_eq_of_ne.
Main definitions and results #
CramerShoupSK,CramerShoupPublicKey,CramerShoupCiphertext,CramerShoupTripleExponents,encCramerShoupSK,encCramerShoupPublicKeyWords,encCramerShoupCiphertextWords,encCramerShoupTripleExponents: named record types and canonical bit-string encodings for Cramer–Shoup secret keys, public keys, ciphertexts, and triple exponent draws.cramerShoupHashMod,cramerShoupPublicKey,cramerShoupEncrypt,cramerShoupDecrypt,encodeCramerShoupPublicKey,encodeCramerShoupEncrypt,encodeCramerShoupChallenge,decodeCramerShoup: algebraic and word-level Multiplicative Cramer–Shoup operations.cramerShoupDecrypt_cramerShoupEncrypt,decodeCramerShoup_encode,decodeCramerShoup_cramerShoupEncrypt,computableInPolyTime_encodeCramerShoupPublicKey,computableInPolyTime_encodeCramerShoupEncrypt,computableInPolyTime_encodeCramerShoupChallenge,computableInPolyTime_decodeCramerShoup: decryption correctness and polynomial-time computability certificates.isCramerShoupHashInput,isCramerShoupHashInput_iff,computableInPolyTime_isCramerShoupHashInput,decodeCramerShoup_eq_none_of_isCramerShoupHashInput_eq_false: the well-formed inputs $\mathbb{G}^3 \times \mathcal{D}$ of the hash $H'$, on which the security theorems assume collision resistance; they are exactly the encoded tuples, membership is decidable in polynomial time, and decryption rejects every ciphertext whose hashed tuple is not well-formed.cramerShoupGame3,cramerShoupGame3Half,cramerShoupGame4,cramerShoupGame5,advantage_cramerShoupGame3_game3Half_le,advantage_cramerShoupGame3Half_game4_le,advantage_cramerShoupGame3_game4_le,cramerShoupGame5_false_eq_true,advantage_cramerShoupGame4_game5_le: the adaptive Lemma 12.8 projective-hash rejection bounds (Q₁ / m,Q₂ / m,(Q₁ + Q₂) / m) and Lemma 12.6 one-time group-mask bound (1 / m).
Domain records and canonical bit-string encodings #
A 6-exponent Cramer–Shoup secret key (s, t, s₁, t₁, s₂, t₂) over exponent type α
([BS23], Section 12.5.3, printed p. 489).
- s : α
First payload projective-hash exponent
s(writtenσin the group). - t : α
Second payload projective-hash exponent
t(writtenτin the group). - s₁ : α
First verification projective-hash exponent
s₁(writtenσ₁in the group). - t₁ : α
Second verification projective-hash exponent
t₁(writtenτ₁in the group). - s₂ : α
Third verification projective-hash exponent
s₂(writtenσ₂in the group). - t₂ : α
Fourth verification projective-hash exponent
t₂(writtenτ₂in the group).
Instances For
Apply f componentwise to the six secret exponents of a CramerShoupSK.
Encoding of a 6-exponent natural-number secret key CramerShoupSK ℕ as the grouped pair of
pairs ((s, t), ((s₁, t₁), (s₂, t₂))), preserving the exact wire layout of three framed (ℕ × ℕ)
projective-hash key pairs.
Apply f componentwise to the four components of a CramerShoupPublicKey.
Canonical right-nested framing of a 4-component word public key
CramerShoupPublicKey (List Bool): u, h, and h₁ are framed, followed by h₂.
A 4-component Multiplicative Cramer–Shoup ciphertext (v, w, e, z') over carrier or word type
α ([BS23], Exercise 12.27, printed pp. 521–522).
Instances For
Apply f componentwise to the four components of a CramerShoupCiphertext.
Canonical right-nested framing of a 4-component word ciphertext
CramerShoupCiphertext (List Bool): v, w, and e are framed, followed by z'.
Canonical right-nested encoding of CramerShoupTripleExponents: a and b are framed in
binary, followed by c.
Framing for 4-tuples of bit strings #
Unpack a canonically framed 4-component CramerShoupPublicKey (List Bool).
Unpack a canonically framed 4-component CramerShoupCiphertext (List Bool).
Unpack a decryption-oracle query req into (ct, ad): when hasAD = true, unpack the framed
pair (unframe req, dropFrame req); when hasAD = false, treat req as ct with empty associated
data [].
decodeBits4 is computable in polynomial time.
extractCramerShoupTuple is computable in polynomial time.
splitCramerShoupQuery is computable in polynomial time.
The $\mathbb{Z}_q$-valued hash family $H'_d(x) = (\mathrm{ofBits}(H(d, x)) : \mathbb{Z}_q)$
induced by a word-level hash function H : F.Desc × List Bool → List Bool
([BS23], Exercise 12.27, printed p. 521).
Encode a triple of group elements (v, w, e) : F.Carrier d × F.Carrier d × F.Carrier d together
with an encoded associated-data word ad : List Bool as a framed 4-tuple bit string.
The well-formed inputs of the hash cramerShoupHashMod H d: the words of
$\mathbb{G}^3 \times \mathcal{D}$, the domain of $H'$ in [BS23], Exercise 12.27
(printed p. 521). A word is accepted when it is a canonically framed 4-tuple
encBits4 (v, w, e, ad) whose first three components isElem accepts as group elements of d.
With associated data (hasAD = true) the component ad may be any word, since decryption accepts
any associated-data word; without it (hasAD = false) it must be [], the only associated data
the scheme then hashes. isCramerShoupHashInput_iff shows that these are exactly the words
encodeCramerShoupTuple d v w e ad.
When isElem accepts exactly the group-element words, isCramerShoupHashInput accepts exactly
the encoded tuples encodeCramerShoupTuple d v w e ad of $\mathbb{G}^3 \times \mathcal{D}$, with
ad = [] when hasAD = false.
isCramerShoupHashInput is decidable in polynomial time whenever isElem is.
Algebraic Cramer–Shoup public key pk = ⟨u, h, h₁, h₂⟩ generated from secret exponents
(α, σ, τ, σ₁, τ₁, σ₂, τ₂) ([BS23], Section 12.5.3, printed p. 489).
Algebraic Multiplicative Cramer–Shoup encryption $E(pk, m, ad; \beta) = (v, w, e, z')$ ([BS23], Exercise 12.27, printed p. 521).
Under a genuine public key cramerShoupPublicKey d α σ τ σ₁ τ₁ σ₂ τ₂, the components of
cramerShoupEncrypt coincide with projective hash evaluation (Game 0 = Game 1,
[BS23], Section 12.5.3, equation (12.21), printed p. 490).
Algebraic Multiplicative Cramer–Shoup decryption $D(sk, (v, w, e, z'), ad)$
([BS23], Exercise 12.27, printed p. 522): check
$f'_{\sigma_1,\tau_1,\sigma_2,\tau_2}(v, w, \rho) = z'$ where $\rho = H'(v, w, e, ad)$, and if so
output some (e - f_{σ,τ}(v, w)).
Algebraic Cramer–Shoup decryption correctness ([BS23], Section 12.5.3 &
Exercise 12.27, printed pp. 489, 521–522): decrypting an honest encryption under
cramerShoupPublicKey d α σ τ σ₁ τ₁ σ₂ τ₂ with ⟨σ, τ, σ₁, τ₁, σ₂, τ₂⟩ and the same associated
data ad recovers some m.
Word-level polynomial-time Cramer–Shoup operations #
Encoded group negation -x = (q - 1) • x computed via F.smul (d, F.order d - 1, z).
Word-level $\text{universal}_2$ projective hash
f'_{s₁,t₁,s₂,t₂}(v, w, r) = f_{s₁,t₁}(v, w) + r • f_{s₂,t₂}(v, w).
Encode a CramerShoupPublicKey (F.Carrier d) together with d : F.Desc as the public key word
presented to a 1CCA adversary.
Word-level Cramer–Shoup public key generation from d : F.Desc, an encoded
u = encode (α • g), and natural-number secret key sk : CramerShoupSK ℕ.
Encode a CramerShoupCiphertext (F.Carrier d) as a canonically framed bit string.
Word-level Cramer–Shoup encryption from the word public key pk, encoded message m, encoded
associated data ad, and randomness b : ℕ.
Word-level Game 1 challenge encryption from (v, w) (encoded group elements), secret key
sk, encoded message m, and encoded associated data ad ([BS23], Section 12.5.3,
Game 1, printed p. 490, and Exercise 12.27, printed pp. 521–522).
Word-level Cramer–Shoup decryption ([BS23], Section 12.5.3, Remark 12.3, and
Exercise 12.27, printed pp. 489, 493, 522): given (d, sk, ct, ad), unpack
parts := decodeCramerShoupCiphertextWords ct, check canonical framing
encCramerShoupCiphertextWords parts == ct, check group membership
isElem (d, parts.v) && isElem (d, parts.w) && isElem (d, parts.e), and check
encodeProjHash2 d s₁ t₁ s₂ t₂ r parts.v parts.w == parts.z' where
r = ofBits (H (d, encBits4 (parts.v, parts.w, parts.e, ad))); if all pass, return
some (encode (e - f_{s,t}(v, w))), else none.
Word-level Cramer–Shoup decryption matches algebraic cramerShoupDecrypt on encoded
ciphertexts.
Decryption rejects every ciphertext whose hashed tuple extractCramerShoupTuple ct ad is not a
well-formed hash input: a ciphertext that decrypts has group-element components v, w, e.
Word-level Cramer–Shoup decryption of an honest encryption recovers
some (F.encode d m).
Polynomial-time certificates for word-level operations #
Word-level Cramer–Shoup public key generation is computable in polynomial time.
Word-level Cramer–Shoup secret-key challenge encryption encodeCramerShoupChallenge is
computable in polynomial time whenever H is.
Word-level Cramer–Shoup encryption is computable in polynomial time whenever H is.
Word-level Cramer–Shoup decryption is computable in polynomial time whenever H and
isElem are computable in polynomial time.
Collision detection and decryption oracle replies #
Test whether a Phase 2 ciphertext query (ct_q, ad_q) yields a cramerShoupHashMod H d
collision with the challenge (ct, ad) on their (v, w, e, ad) tuples.
isCramerShoupCollision coincides with isCollisionFor (F.cramerShoupHashMod H) on the
extracted (v, w, e, ad) tuples.
Stateless Phase 1 decryption reply for Cramer–Shoup (hasAD = true for cca2ADPhase1Oracle,
hasAD = false for cca2Phase1Oracle).
Stateless Phase 2 decryption reply that rejects the challenge (ct, ad) and any query
(ct_q, ad_q) colliding with (ct, ad) under cramerShoupHashMod H d.
Canonical secret-key conversion and hybrid Games 3–5 #
Convert six ZMod (F.order d) exponents (σ, τ, σ₁, τ₁, σ₂, τ₂) into their canonical natural
number representatives ⟨σ.val, τ.val, σ₁.val, τ₁.val, σ₂.val, τ₂.val⟩.
Game 3 (corresponding to Game 4 of [BS23], Section 12.5.3, printed p. 492,
adapted to $\mathcal{E}_{\mathrm{MCS}}$ with associated data): Phase 1 uses cramerShoupPhase1Reply
and Phase 2 rejects both (ct, ad) and any ciphertext query (ct_q, ad_q) whose (v, w, e, ad)
tuple collides with (ct, ad) under cramerShoupHashMod H d
(cramerShoupCollisionPhase2Reply).
Projective-hash rejection (Games 3.5, 4, and 5) and concrete 1CCA bound #
Decryption helper for cramerShoupGame4 (Game 5 of [BS23], Section 12.5.3, printed
p. 492): on the fiber σ = δ - α * τ, σ₁ = δ₁ - α * τ₁, σ₂ = δ₂ - α * τ₂, reject any
ciphertext whose (v', w') pair does not satisfy w' == F.smul (d, α.val, v'), and otherwise
decrypt using (δ, 0, δ₁, 0, δ₂, 0) (which agrees with (σ, τ, σ₁, τ₁, σ₂, τ₂) on all
Diffie–Hellman queries by projHash_fiber_eq and projHash2_fiber_dh).
Stateless Phase 1 decryption reply for Game 3.5 and Game 4, rejecting non-DH queries.
Stateless Phase 2 decryption reply for Game 4, rejecting (ct, ad), H'-collisions with
(ct, ad), and non-DH queries.
Bad-event predicate for cramerShoupGame3 $\to$ cramerShoupGame4 (Games 4 $\to$ 5 of
[BS23], Section 12.5.3, equations (12.26)–(12.27), printed pp. 492–493):
ct_q = encCramerShoupCiphertextWords ⟨v', w', e', z'⟩ is a syntactically well-formed non-DH
ciphertext (w' != F.smul (d, α.val, v')) whose tag z' matches encodeProjHash2 on
(v', w', e', ad_q).
Phase 1 query bound on honest public keys at security parameter n.
Phase 2 query bound on honest Phase 1 states and challenge ciphertexts at parameter n.
Game 3.5 (intermediate hybrid between cramerShoupGame3 and cramerShoupGame4, which
correspond to Games 4 and 5 of [BS23], Section 12.5.3, printed pp. 491–492): under the
fiber change of variables σ = δ - α * τ, σ₁ = δ₁ - α * τ₁, σ₂ = δ₂ - α * τ₂, replace
Phase 1's decryption oracle cramerShoupPhase1Reply with cramerShoupDHPhase1Reply (rejecting
non-DH queries in Phase 1).
Game 3 $\to$ Game 3.5 bound: replacing cramerShoupPhase1Reply with
cramerShoupDHPhase1Reply changes the game advantage by at most Q₁ / m whenever Phase 1 makes at
most Q₁ queries on every honest public key.
Game 4 (corresponding to Game 5 of [BS23], Section 12.5.3, printed p. 492,
adapted to $\mathcal{E}_{\mathrm{MCS}}$ with associated data): both Phase 1 and Phase 2 decryption
oracles reject any non-DH ciphertext query (w' != F.smul (d, α.val, v')) via
decodeCramerShoupDH.
Game 3.5 $\to$ Game 4 bound: replacing cramerShoupCollisionPhase2Reply with
cramerShoupDHPhase2Reply changes the game advantage by at most Q₂ / m whenever Phase 2 makes at
most Q₂ queries on every honest Phase 1 state and challenge ciphertext.
Game 3 $\to$ Game 4 bound (Games 4 $\to$ 5 of [BS23], Section 12.5.3,
equations (12.26)–(12.27), printed pp. 492–493, using Lemma 12.8, printed p. 488): if isElem
accepts exactly the encodings of group elements, every supported group has order at least m > 0,
and Phase 1 and Phase 2 make at most Q₁ and Q₂ queries on honest inputs
(HonestPhase1QueryBound, HonestPhase2QueryBound), then replacing both Phase 1 and Phase 2
decryption oracles with their DH-restricted counterparts changes the game advantage by at most
(Q₁ + Q₂) / m.
Game 5 (corresponding to Game 6 of [BS23], Section 12.5.3, printed p. 493, adapted
to $\mathcal{E}_{\mathrm{MCS}}$ with associated data): replace the masked challenge component
e = projHash F d (δ - α * τ) τ v w + m by a uniform independent group element ζ • g, making the
entire experiment independent of the challenge bit bit.
In cramerShoupGame5, the challenge bit is unused, so the false and true experiments are
identical.
Game 4 $\to$ Game 5 bound (Games 5 $\to$ 6 of [BS23], Section 12.5.3, with the
non-DH-triple step of its Game 3 folded in; equations (12.23) and (12.28), printed pp. 492–493,
using Lemma 12.6, printed p. 486): suppose isElem accepts exactly the encodings of group elements
and every supported group has order at least m > 0. Whenever γ ≠ α * β,
projHash F d (δ - α * τ) τ (β • g) (γ • g) + m is uniformly distributed over F.Carrier d by
uniform_projHash_fiber_add (Lemma 12.6), so cramerShoupGame4 and cramerShoupGame5 differ
only on the event γ = α * β of probability 1 / F.order d ≤ 1 / m.