Discrete Logarithm Problem (DLP)
- •
What it is
- •
Given a group, a generator (or any base element) , and a value for some unknown integer , the discrete logarithm problem is to recover . In a "generic" group with no exploitable extra structure, this is believed to require roughly operations (via algorithms like Baby-Step Giant-Step) — computationally infeasible once the group is large enough (hundreds of bits). This assumed hardness is the foundation Diffie-Hellman, ElGamal, and DSA all build on. Critically, "hard" depends entirely on the group chosen: some groups (small ones, or ones with smooth order) make DLP tractable via specialized algorithms, which is why parameter selection matters so much in practice.
- •
- •
When to apply
- •
This is the named problem sitting underneath essentially every Diffie-Hellman-family challenge — recognizing "I need to solve g^x = h for x" as literally the discrete logarithm problem tells you which family of algorithms (generic: BSGS/Pollard's rho; smooth-order: Pohlig-Hellman; special-structure groups: index calculus and beyond) is relevant.
- •
- •
Symbols and assumptions
- •
is a group element of known order ; belongs to . The unknown exponent is defined modulo . In elliptic-curve notation the same problem is .
- •
- •
Math — step by step
- •
- Forward evaluation repeats the operation: compute efficiently by repeated squaring. DLP asks to reverse this map and find an exponent.
- •
- A trial search checks until appears, costing up to steps. Baby-step giant-step trades memory for about work.
- •
- Hardness depends on the group and its order. Smooth orders admit Pohlig-Hellman; finite-field groups also have specialized algorithms. Hundreds of bits alone do not establish security.
- •
- •
- •
- •
- •
- •
Cards
- •
What does the discrete logarithm problem ask you to find?
- •
Given g and h=g^x in a group, recover the exponent x.
- •
- •
Why does "hardness" of DLP depend on which group is chosen, not just its size?
- •
Some groups have extra exploitable structure (smooth order, special algebraic form) that specialized algorithms can exploit, even when the group is nominally large — size alone doesn't guarantee hardness.
- •
- •