Constrained Discrete Logarithm Problem.