From d46cb169f81f93f52b99556f196ed2b42a67bd6d Mon Sep 17 00:00:00 2001 From: Christoph Zurnieden Date: Sun, 19 May 2019 16:59:47 +0200 Subject: [PATCH] removed obsolete check --- bn_mp_prime_is_prime.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bn_mp_prime_is_prime.c b/bn_mp_prime_is_prime.c index e3f243618..6f91e1826 100644 --- a/bn_mp_prime_is_prime.c +++ b/bn_mp_prime_is_prime.c @@ -25,11 +25,6 @@ mp_err mp_prime_is_prime(const mp_int *a, int t, mp_bool *result) /* default to no */ *result = MP_NO; - /* valid value of t? */ - if (t > MP_PRIME_SIZE) { - return MP_VAL; - } - /* Some shortcuts */ /* N > 3 */ if (a->used == 1) {