Intractability of Learning the Discrete Logarithm with Gradient-Based Methods