Lines Matching refs:mp_copy
211 mp_err mp_copy(const mp_int *from, mp_int *to) in mp_copy() function
529 if((res = mp_copy(a, b)) != MP_OKAY) in mp_mul_d()
548 if((res = mp_copy(a, c)) != MP_OKAY) in mp_mul_2()
587 mp_copy(a, q); in mp_div_d()
632 if((res = mp_copy(a, c)) != MP_OKAY) in mp_div_2()
703 if((res = mp_copy(a, b)) != MP_OKAY) in mp_abs()
728 if((res = mp_copy(a, b)) != MP_OKAY) in mp_neg()
1036 MP_CHECKOK( mp_copy(a, r) ); in mp_div()
1103 if((res = mp_copy(a, q)) != MP_OKAY) in mp_div_2d()
1107 if((res = mp_copy(a, r)) != MP_OKAY) in mp_div_2d()
1188 res = mp_copy(&s, c); in mp_expt()
1256 if((res = mp_copy(a, c)) != MP_OKAY) in mp_mod()
1339 return mp_copy(a, b); in mp_sqrt()
1356 mp_copy(&x, &t); /* can't fail, t is big enough for original x */ in mp_sqrt()
1802 return mp_copy(b, c); in mp_gcd()
1804 return mp_copy(a, c); in mp_gcd()
1826 if((res = mp_copy(&v, &t)) != MP_OKAY) in mp_gcd()
1836 if((res = mp_copy(&u, &t)) != MP_OKAY) in mp_gcd()
1847 if((res = mp_copy(&t, &u)) != MP_OKAY) in mp_gcd()
1851 if((res = mp_copy(&t, &v)) != MP_OKAY) in mp_gcd()
1979 mp_copy(&xc, &u); in mp_xgcd()
1980 mp_copy(&yc, &v); in mp_xgcd()
2024 MP_CHECKOK( mp_copy(&C, x) ); in mp_xgcd()
2027 MP_CHECKOK( mp_copy(&D, y) ); in mp_xgcd()
2192 MP_CHECKOK( mp_copy(c, x) ); /* x = c */ in s_mp_fixup_reciprocal()
2332 MP_CHECKOK( mp_copy(&t1, &t0) ); in s_mp_invmod_2d()
4233 MP_CHECKOK( mp_copy(rem, quot) ); in s_mp_div()
4301 mp_copy(div, &t); in s_mp_div()