17 std::cout <<
"The discrete logarithm of " << y
18 <<
" with respect to the base " << g <<
" in the group of order "
19 << p <<
" is " << x << std::endl;
21 int64_t a = 2, b = 3, m = 5;
22 std::cout << logs.
BSGS(a, b, m) << std::endl;
25 std::cout << logs.
BSGS(a, b, m) << std::endl;
uint64_t BSGS(uint64_t a, uint64_t b, uint64_t m)
uint64_t pollard_rho_log(uint64_t a, uint64_t b, uint64_t m)
User API for OpenGPMP NUMBER THEORY MODULE.