D | libtommath.c | 765 mp_int x, y, u, v, A, B, C, D; in mp_invmod_slow() local 775 &A, &B, &C, &D, NULL)) != MP_OKAY) { in mp_invmod_slow() 836 if (mp_isodd (&C) == 1 || mp_isodd (&D) == 1) { in mp_invmod_slow() 838 if ((res = mp_add (&C, &y, &C)) != MP_OKAY) { in mp_invmod_slow() 846 if ((res = mp_div_2 (&C, &C)) != MP_OKAY) { in mp_invmod_slow() 861 if ((res = mp_sub (&A, &C, &A)) != MP_OKAY) { in mp_invmod_slow() 874 if ((res = mp_sub (&C, &A, &C)) != MP_OKAY) { in mp_invmod_slow() 896 while (mp_cmp_d(&C, 0) == MP_LT) { in mp_invmod_slow() 897 if ((res = mp_add(&C, b, &C)) != MP_OKAY) { in mp_invmod_slow() 903 while (mp_cmp_mag(&C, b) != MP_LT) { in mp_invmod_slow() [all …]
|