fix an error where mp_copy was used instead of mp_sub_d

This commit is contained in:
John Safranek
2018-07-12 11:03:41 -07:00
parent 5908230d20
commit d486df50aa

View File

@ -4660,7 +4660,7 @@ int mp_prime_is_prime_ex (mp_int * a, int t, int *result, WC_RNG *rng)
goto LBL_B; goto LBL_B;
} }
if ((err = mp_copy(a, 2, &c)) != MP_OKAY) { if ((err = mp_sub_d(a, 2, &c)) != MP_OKAY) {
goto LBL_B; goto LBL_B;
} }