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