diff --git a/wolfcrypt/src/integer.c b/wolfcrypt/src/integer.c index fad07663e..4f87ab2e0 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -4716,14 +4716,14 @@ int mp_prime_is_prime (mp_int * a, int t, int *result) } if (mp_isone(a)) { - *result = 0; + *result = MP_NO; return MP_OKAY; } /* is the input equal to one of the primes in the table? */ for (ix = 0; ix < PRIME_SIZE; ix++) { if (mp_cmp_d(a, ltm_prime_tab[ix]) == MP_EQ) { - *result = 1; + *result = MP_YES; return MP_OKAY; } }