Home | History | Annotate | Download | only in etc

Lines Matching refs:MP_OKAY

184     return MP_OKAY;
187 if ((res = mp_init (&c)) != MP_OKAY) {
191 if ((res = mp_init (&v)) != MP_OKAY) {
199 10)) != MP_OKAY) {
203 if ((res = mp_init (&a)) != MP_OKAY) {
210 if ((res = mp_init (&b)) != MP_OKAY) {
214 if ((res = mp_init (&n)) != MP_OKAY) {
218 if ((res = mp_init (&x)) != MP_OKAY) {
222 if ((res = mp_init (&y)) != MP_OKAY) {
226 if ((res = mp_init (&z)) != MP_OKAY) {
238 if ((res = mp_mul (&a, &b, &z)) != MP_OKAY) { /* z = a * b */
242 if ((res = mp_copy (&z, &c)) != MP_OKAY) { /* c = a * b */
246 if ((res = mp_mul_2 (&z, &z)) != MP_OKAY) { /* z = 2 * a * b */
251 if ((res = mp_add_d (&z, 1, &n)) != MP_OKAY) { /* n = z + 1 */
256 if ((res = mp_gcd (&n, &v, &y)) != MP_OKAY) { /* y = (n, v) */
268 if ((res = mp_exptmod (&x, &a, &n, &y)) != MP_OKAY) { /* y = x^a mod n */
277 if ((res = mp_sqrmod (&y, &n, &y)) != MP_OKAY) { /* y = x^2a mod n */
285 if ((res = mp_exptmod (&x, &b, &n, &y)) != MP_OKAY) { /* y = x^b mod n */
294 if ((res = mp_sqrmod (&y, &n, &y)) != MP_OKAY) { /* y = x^2b mod n */
302 if ((res = mp_exptmod (&x, &c, &n, &y)) != MP_OKAY) { /* y = x^ab mod n */
311 if ((res = mp_sqrmod (&y, &n, &y)) != MP_OKAY) { /* y = x^2ab mod n */
348 res = MP_OKAY;