From 58478c50af2fbb640d20af30da6e8a0cdd192681 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 10 Jul 2018 15:09:47 -0600 Subject: [PATCH] check that fp max bits is large enough before test --- tests/api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/api.c b/tests/api.c index 845a6be07..5cb46f15e 100644 --- a/tests/api.c +++ b/tests/api.c @@ -18068,9 +18068,11 @@ static void test_wolfSSL_RSA(void) AssertIntEQ(RSA_size(rsa), 256); RSA_free(rsa); +#if !defined(USE_FAST_MATH) || (FP_MAX_BITS >= (3072*2)) AssertNotNull(rsa = RSA_generate_key(3072, 17, NULL, NULL)); AssertIntEQ(RSA_size(rsa), 384); RSA_free(rsa); +#endif /* remove for now with odd key size until adjusting rsa key size check with wc_MakeRsaKey()