Lines Matching refs:MP_OKAY
56 if ((err = mp_init(&M[1])) != MP_OKAY) { in s_mp_exptmod()
62 if ((err = mp_init(&M[x])) != MP_OKAY) { in s_mp_exptmod()
72 if ((err = mp_init (&mu)) != MP_OKAY) { in s_mp_exptmod()
77 if ((err = mp_reduce_setup (&mu, P)) != MP_OKAY) { in s_mp_exptmod()
82 if ((err = mp_reduce_2k_setup_l (P, &mu)) != MP_OKAY) { in s_mp_exptmod()
96 if ((err = mp_mod (G, P, &M[1])) != MP_OKAY) { in s_mp_exptmod()
103 if ((err = mp_copy (&M[1], &M[1 << (winsize - 1)])) != MP_OKAY) { in s_mp_exptmod()
110 &M[1 << (winsize - 1)])) != MP_OKAY) { in s_mp_exptmod()
115 if ((err = redux (&M[1 << (winsize - 1)], P, &mu)) != MP_OKAY) { in s_mp_exptmod()
124 if ((err = mp_mul (&M[x - 1], &M[1], &M[x])) != MP_OKAY) { in s_mp_exptmod()
127 if ((err = redux (&M[x], P, &mu)) != MP_OKAY) { in s_mp_exptmod()
133 if ((err = mp_init (&res)) != MP_OKAY) { in s_mp_exptmod()
173 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
176 if ((err = redux (&res, P, &mu)) != MP_OKAY) { in s_mp_exptmod()
190 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
193 if ((err = redux (&res, P, &mu)) != MP_OKAY) { in s_mp_exptmod()
199 if ((err = mp_mul (&res, &M[bitbuf], &res)) != MP_OKAY) { in s_mp_exptmod()
202 if ((err = redux (&res, P, &mu)) != MP_OKAY) { in s_mp_exptmod()
217 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
220 if ((err = redux (&res, P, &mu)) != MP_OKAY) { in s_mp_exptmod()
227 if ((err = mp_mul (&res, &M[1], &res)) != MP_OKAY) { in s_mp_exptmod()
230 if ((err = redux (&res, P, &mu)) != MP_OKAY) { in s_mp_exptmod()
238 err = MP_OKAY; in s_mp_exptmod()