D | libtommath.c | 773 mp_int x, y, u, v, A, B, C, D; in mp_invmod_slow() local 783 &A, &B, &C, &D, NULL)) != MP_OKAY) { in mp_invmod_slow() 844 if (mp_isodd (&C) == 1 || mp_isodd (&D) == 1) { in mp_invmod_slow() 846 if ((res = mp_add (&C, &y, &C)) != MP_OKAY) { in mp_invmod_slow() 854 if ((res = mp_div_2 (&C, &C)) != MP_OKAY) { in mp_invmod_slow() 869 if ((res = mp_sub (&A, &C, &A)) != MP_OKAY) { in mp_invmod_slow() 882 if ((res = mp_sub (&C, &A, &C)) != MP_OKAY) { in mp_invmod_slow() 904 while (mp_cmp_d(&C, 0) == MP_LT) { in mp_invmod_slow() 905 if ((res = mp_add(&C, b, &C)) != MP_OKAY) { in mp_invmod_slow() 911 while (mp_cmp_mag(&C, b) != MP_LT) { in mp_invmod_slow() [all …]
|