mp_div
if((res = mp_div(a, m, NULL, c)) != MP_OKAY)
if((res = mp_div(&t, &x, &t, NULL)) != MP_OKAY)
if((res = mp_div(&mu, m, &mu, NULL)) != MP_OKAY)
res = mp_div(&prod, &gcd, c, NULL);
mp_err mp_div(const mp_int *a, const mp_int *b, mp_int *q, mp_int *r);