Adjusted API compliacnce for MP_8BIT in mp_prime_is_prime
This commit is contained in:
parent
a2e15e2d10
commit
63dc065dc8
@ -112,7 +112,9 @@ int mp_prime_is_prime(const mp_int *a, int t, int *result)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef MP_8BIT
|
#ifdef MP_8BIT
|
||||||
|
if(t >= 0 && t < 8) {
|
||||||
t = 8;
|
t = 8;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
// switched off, failed a test, said 2^1119 + 53 (a cert. prime) is not prime
|
// switched off, failed a test, said 2^1119 + 53 (a cert. prime) is not prime
|
||||||
#ifdef LTM_USE_STRONG_LUCAS_SELFRIDGE_TEST
|
#ifdef LTM_USE_STRONG_LUCAS_SELFRIDGE_TEST
|
||||||
|
Loading…
Reference in New Issue
Block a user