Documentation

CslibFrontier.Crypto.Computational.GUOAccumulator.Security

The accumulator from a group of unknown order: security under strong RSA #

The security of the accumulator of [BS23], §10.9, p. 422, in (ZMod N)ˣ with a hash H on words. An adversary breaks the accumulator when it outputs a commitment c, an element x, a membership proof a and a non-membership proof (b, γ) such that both of Bob's checks pass. The book derives (b * a ^ γ) ^ H(x) = g from the two checks, so that the root b * a ^ γ with the exponent H(x) wins the strong RSA game, and concludes that the accumulator is secure if the strong RSA assumption holds for GGen.

Main definitions #

Main results #

Implementation notes #

The statements differ from the book's as follows.

References #

An adversary's output in the security game of the accumulator ([BS23], §10.9, p. 422): the book's 4-tuple (c, x, π_x, π_¬x) with π_x = a and π_¬x = (b, γ).

  • commitment : ℕ

    The commitment c.

  • element : List Bool

    The element x, a word.

  • member : ℕ

    The membership proof a.

  • nonMember : ℕ

    The group element b of the non-membership proof.

  • coeff : ℤ

    The integer γ of the non-membership proof.

theorem Cslib.Crypto.encGUOForgery_nonMember_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GUOForgery} :
theorem Cslib.Crypto.encGUOForgery_element_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GUOForgery} :
theorem Cslib.Crypto.encGUOForgery_member_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GUOForgery} :
theorem Cslib.Crypto.encGUOForgery_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 : γ → ℕ} {x1 : γ → List Bool} {T1 S1 x2 T2 S2 x3 T3 S3 : γ → ℕ} {x4 : γ → ℤ} {T4 S4 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encNat T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encBits T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encNat T2 S2) (h3 : Turing.MultiTapeTM.ComputableInO x3 encIn Turing.MultiTapeTM.encNat T3 S3) (h4 : Turing.MultiTapeTM.ComputableInO x4 encIn Turing.MultiTapeTM.encIntBin T4 S4) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { commitment := x0 x, element := x1 x, member := x2 x, nonMember := x3 x, coeff := x4 x }) encIn encGUOForgery (fun (x : γ) => T0 x + (T1 x + (T2 x + (T3 x + T4 x)))) fun (x : γ) => S0 x + (S1 x + (S2 x + (S3 x + S4 x)))
theorem Cslib.Crypto.encGUOForgery_coeff_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GUOForgery} :
theorem Cslib.Crypto.encGUOForgery_commitment_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GUOForgery} :
@[reducible, inline]

The tuple of the fields of encGUOForgery.

theorem Cslib.Crypto.encGUOForgery_mk_deg :
Turing.MultiTapeTM.ComputableInDegree (fun (p : ℕ × List Bool × ℕ × ℕ × ℤ) => { commitment := p.1, element := p.2.1, member := p.2.2.1, nonMember := p.2.2.2.1, coeff := p.2.2.2.2 }) encGUOForgeryFields encGUOForgery 1 1
theorem Cslib.Crypto.encGUOForgery_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 : γ → ℕ} {x1 : γ → List Bool} {x2 x3 : γ → ℕ} {x4 : γ → ℤ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encNat budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encBits budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn Turing.MultiTapeTM.encNat budget) (h3 : Turing.MultiTapeTM.ComputableInSpace x3 encIn Turing.MultiTapeTM.encNat budget) (h4 : Turing.MultiTapeTM.ComputableInSpace x4 encIn Turing.MultiTapeTM.encIntBin budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { commitment := x0 x, element := x1 x, member := x2 x, nonMember := x3 x, coeff := x4 x }) encIn encGUOForgery budget

The encoding of a forgery: c, a and b in binary, x as its bits and γ on encIntBin, in the order of the fields (encGUOForgery_apply).

@[reducible, inline]

An adversary of the accumulator's security game: given the security parameter and the public parameters (N, g), it outputs a forgery. GUOForger.IsPPT states its efficiency on encodings.

An adversary of the accumulator is PPT when one uniform strict PPT machine reads the unary security parameter followed by encGUOParams, and writes its forgery on encGUOForgery.

A forgery is valid for the hash H and the public parameters (N, g) when its membership proof a passes Bob's membership check a ^ H x = c and its non-membership proof (b, γ) passes his non-membership check, including the check that c is a unit ([BS23], §10.9, pp. 421–422).

noncomputable def Cslib.Crypto.guoAccumulatorGame (setup : ℕ → PMF GUOParams) (H : List Bool → ℕ) (A : GUOForger) (n : ℕ) :

The security game of the accumulator ([BS23], §10.9, p. 422): draw p ← setup n, run the adversary on (n, p), and accept its forgery when it is valid for H and p.

The reduction of [BS23], §10.9, p. 422, from the accumulator to strong RSA: run the adversary and output the root b * a ^ γ mod N (guoForgeryRoot) with the exponent H x. The book does not name it; guoToStrongRSA is this library's name.

The reduction is PPT whenever the adversary is and H is computable in polynomial time from the bits of the element to a binary number.

The reduction of the accumulator's security to strong RSA ([BS23], §10.9, p. 422), as a bound for every adversary: if H never takes the value 1, the probability that A wins guoAccumulatorGame setup H is at most the probability that guoToStrongRSA H A wins the strong RSA game. A valid forgery gives an H x-th root of g (powMod_guoForgeryRoot).

The accumulator is secure under strong RSA ([BS23], §10.9, p. 422). If the strong RSA assumption holds for setup and the hash H on words is computable in polynomial time and never takes the value 1, then every PPT adversary wins guoAccumulatorGame setup H with negligible probability. The book's H takes prime values, and its group comes from an efficient GGen; here setup is any law on GUOParams, as in StrongRSA.