mp_mulmod
CHECK_MPI_OK( mp_mulmod(&d, &r, &n, &d) ); /* d = d * r mod n */
CHECK_MPI_OK( mp_mulmod(&s, &k, &n, &s) ); /* s = s * k mod n */
CHECK_MPI_OK( mp_mulmod(&u1, &c, &n, &u1) ); /* u1 = u1 * c mod n */
CHECK_MPI_OK( mp_mulmod(&r_, &c, &n, &u2) );
return mp_mulmod(a, b, &meth->irr, r);
MP_CHECKOK(mp_mulmod(a, &t, &meth->irr, r));
mp_err mp_mulmod(const mp_int *a, const mp_int *b, const mp_int *m, mp_int *c);
#define mp_sqrmod(a, m, c) mp_mulmod(a, a, m, c)