Documentation

Complexity.Crypto.Computational.DiscreteLog

The discrete-logarithm assumption #

A PrimeOrderGroupFamily is a family of cyclic groups of prime order, indexed by public descriptions such as (p, q, g) for the subgroup of order q of (ZMod p)ˣ generated by g. Groups are written additively, as ZMod q-modules, so the book's g ^ α is α • g. Algorithms see a group through its description and the words encoding its elements. The family supplies exactly the operations that algorithms using it need, as plain polynomial-time functions of the description and the encoded operands: the order, the encoded generator, addition, and multiplication by a natural number.

The discrete-logarithm experiment ([BS23], Attack Game 10.4) draws a description from a setup law, a uniform α : ZMod q and gives the adversary the description and the encoding of α • g; the adversary wins when the binary number it outputs is α modulo q. DiscreteLog asserts that every uniform strict PPT adversary wins with negligible probability.

As for DecisionLWE, this is a hypothesis, not a theorem. The setup law is arbitrary and is not claimed to be efficiently sampleable: generating primes with certainty is not a strict PPT task, since a fair-coin machine with a fixed clock fails with positive probability. Descriptions are public, and an adversary's running time may depend on their length.

Main definitions #

Main results #

References #

A family of cyclic groups of prime order, indexed by public descriptions, with polynomial-time operations on encoded elements.

Instances For

    A discrete logarithm modulo q is unique: α ↦ α • g is injective.

    noncomputable def Cslib.Crypto.PrimeOrderGroupFamily.discreteLogGame (F : PrimeOrderGroupFamily) (setup : ℕ → PMF F.Desc) (adversary : ℕ → F.Desc × List Bool → ProbComp (List Bool)) (n : ℕ) :

    The discrete-logarithm experiment ([BS23], Attack Game 10.4): draw a description and a uniform α, give the adversary the description and the encoding of α • g, and accept when the binary number it outputs is α modulo q.

    Instances For

      The discrete-logarithm assumption for a family and a setup law: every uniform strict PPT adversary, given the unary security parameter, the description and the encoded instance, finds the discrete logarithm with negligible probability. This is a hypothesis, not a theorem.

      Instances For