discrete logarithm problem analogy