The discrete logarithm problem is the mathematical trap door function underpinning elliptic curve cryptography. If it's naturally hard to climb back through the trap door, how can there be insecure elliptic curves?

Any answer would be most beneficial for me if it remained light on the math, if that's at all possible.

  • 3
    $\begingroup$ This isn't specific to discrete logarithms or elliptic curves, it is my understanding that there are a number of problems which are much easier to solve in certain cases. There are even some problems, like the knapsack problem that are often easy to solve, even though they are formally NP-complete. $\endgroup$ Commented Apr 21, 2018 at 3:09

3 Answers 3


Discrete Logarithm on elliptic curves is hard in the following sense: on an $n$-bit curve, solving DL has cost $2^{n/2}$. Thus, this is infeasible only as long as $n$ is large enough to make that cost prohibitive. A 256-bit curve is large enough; a 60-bit curve is not.

Also, some curves have a special structure which can be leveraged to compute DL faster. Notably:

  • If the curve order is not prime or does not have a big prime factor, then DL is easier (the same applies to normal non-curve DL).

  • Some curves have a low embedding degree, which allows for converting DL on the curve into a comparatively easier DL in the multiplicative subgroup of a finite field extension. This is very heavy in maths. If the curve is somewhat weakened but not too much, then it can still be safe while allowing computation of a pairing, an algebraic operation which is useful for some complicated cryptographic protocols (e.g. identity-based encryption).

  • Some curves make it easier to implement them securely, e.g. without leaking secret information through side channels.

Generating a new curve entails trying out equation parameters and checking that the resulting curve is not one of the known “bad cases”. In practice, a non-prime order is the most frequent case; for 256-bit curves, you need to try a hundred curves or so before getting one with a prime order. Curves with a low embedding degree are extremely rare, and easy to check for.


Thomas's answer is excellent. I will just add that formally it makes no sense to actually say something like "we assume the discrete log problem is hard". Rather, we really have to refer to a specific group (or family of groups) and assume that the problem is hard in those group. This is because it is blatantly easy in some groups (e.g., the additive group over $\mathbb{Z}_p$) and believed to be hard in others. Since each curve defines a different group, there can certainly be some curves for which it is not hard.

  • $\begingroup$ So it's not the actual curve itself that's at issue, it's the conversion of a specific part of that curve to an integer group. So the curve remains hard whilst a derived group might be weak? $\endgroup$
    – Paul Uszak
    Commented Apr 23, 2018 at 15:25
  • $\begingroup$ @PaulUszak I'm not sure what you mean by a "conversion of a specific part" of a curve. It certainly can be the curve. It can be the algorithm that samples the prime that defines a finite field group. It can be many things. $\endgroup$ Commented Apr 23, 2018 at 20:07

To amplify Yehuda Lindell's answer even within a single family of groups, here is an example of a 2046-bit modulus $p$ for which discrete logs in $(\mathbb Z/p\mathbb Z)^\times$, as in standard modular multiplication Diffie–Hellman, are extraordinarily easy to compute:


2046-bit moduli should be secure, right? No, not at all. First of all, it helps if they're prime (or at least if you don't know their prime factorization, but for public DH or DSA parameters, you would like to know this sort of thing about them). This number $p$ is not prime; rather, it is the product of the first 232 prime numbers except 2. So, given fixed $h$, to solve $$g^x \equiv h \pmod p$$ for $x$, it suffices to compute the discrete logs $x_3$, $x_5$, $x_7$, etc., satisfying

\begin{align*} g^{x_3} &\equiv h \pmod 3, \\ g^{x_5} &\equiv h \pmod 5, \\ &\vdots \end{align*}

independently, and then assemble them into a solution for $x$ with the Chinese remainder theorem:

\begin{align*} x &\equiv x_3 \pmod{\phi(3)}, \\ x &\equiv x_5 \pmod{\phi(5)}, \\ &\vdots \end{align*}

where $\phi(3) = 3 - 1$, $\phi(5) = 5 - 1$, etc., since they're all prime.

This algorithm is so cheap that you could do it with pen and paper using schoolbook long division and schoolbook multiplication in a few hours. But the easiness of this algorithm means nothing about how easy or hard it is to compute discrete logs in $(\mathbb Z/q\mathbb Z)^\times$ where $q$ is the RFC 3526 Group #14 modulus


The same algorithm using the Chinese remainder theorem doesn't work because $q$ is prime, so you can't solve the problem independently modulo all its factors and then recombine the results into a solution.

The choice of field, curve shape, curve parameters, etc., has the same kind of impact on the ease or difficulty of computing elliptic-curve discrete logs as the choice of modulus has on the ease or difficulty of computing modular multiplication discrete logs.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.