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 #
Cslib.Crypto.GUOForgery,Cslib.Crypto.encGUOForgery: an adversary's output(c, x, a, (b, γ))and its encoding.Cslib.Crypto.GUOForger,Cslib.Crypto.GUOForger.IsPPT: adversaries of the security game and their efficiency on encodings.Cslib.Crypto.GUOForgery.isValid: both of Bob's checks for one element.Cslib.Crypto.guoAccumulatorGame: the security game, won by a valid forgery.Cslib.Crypto.guoToStrongRSA: the reduction, which outputs(b * a ^ γ mod N, H x).
Main results #
Cslib.Crypto.StrongRSA.negligible_guoAccumulatorGame: the security of the accumulator (p. 422). IfStrongRSA setupholds andHis computable in polynomial time with no value1, every PPT adversary winsguoAccumulatorGame setup Hwith negligible probability.Cslib.Crypto.succProbability_guoAccumulatorGame_le: ifHnever takes the value1, the success probability of every adversaryAis at most that ofguoToStrongRSA H Ain the strong RSA game.Cslib.Crypto.isPPT_guoToStrongRSA: the reduction is PPT whenAis andHis computable in polynomial time.
Implementation notes #
The statements differ from the book's as follows.
- The group is
(ZMod N)ˣfor public parameters(N, g)from any lawsetup, the deviation ofStrongRSA;rsaGUOSetupis the book'sGGenfrom RSA keys (p. 421). Class groups (p. 423) are not covered. - The elements are words (
List Bool) andHis any function toℕthat is computable in polynomial time and never takes the value1. The book'sHtakes values in the firstLprimes (p. 421); the reduction needs onlyH x ≠ 1, because the strong RSA game rejects the exponent1. The book'sHis collision resistant; the security proof does not use this. - The group elements
c,aandbare natural numbers. Bob's non-membership check includes the check thatcis a unit, the book'sc ∈ G(seeGUOAccumulator.lean). - The book calls a correct accumulator secure when no efficient adversary breaks it. The
statement here is the negligibility of the forgery game alone; correctness is in
GUOAccumulator.lean, where Alice's proofs verify (guoVerifyNonMem_guoCommitand the membership lemmas).
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, γ).
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).
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).
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.