From 82c86447e7ccf7dd5070fd9d5430bd7cecf72d59 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 8 May 2020 16:18:30 -0600 Subject: [PATCH] Fix failing build for rsa_verify_only example --- wolfcrypt/src/sp_int.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index 88ba48c1c..e53bc93fc 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -498,7 +498,7 @@ void sp_clamp(sp_int* a) a->used = i + 1; } -#if !defined(WOLFSSL_RSA_VERIFY_ONLY) || (!defined(NO_DH) || defined(HAVE_ECC)) +#if defined(WOLFSSL_RSA_VERIFY_ONLY) || (!defined(NO_DH) || defined(HAVE_ECC)) /* Grow big number to be able to hold l digits. * This function does nothing as the number of digits is fixed. * @@ -516,7 +516,9 @@ int sp_grow(sp_int* a, int l) return err; } +#endif +#if !defined(WOLFSSL_RSA_VERIFY_ONLY) || (!defined(NO_DH) || defined(HAVE_ECC)) /* Sub a one digit number from the big number. * * a SP integer.