forked from wolfSSL/wolfssl
Fix RSA verify only build
This commit is contained in:
@@ -450,7 +450,6 @@ int sp_set(sp_int* a, sp_int_digit d)
|
||||
return MP_OKAY;
|
||||
}
|
||||
|
||||
#if !defined(WOLFSSL_RSA_VERIFY_ONLY) || (!defined(NO_DH) || defined(HAVE_ECC))
|
||||
/* Recalculate the number of digits used.
|
||||
*
|
||||
* a SP integer.
|
||||
@@ -464,6 +463,7 @@ void sp_clamp(sp_int* a)
|
||||
a->used = i + 1;
|
||||
}
|
||||
|
||||
#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.
|
||||
*
|
||||
|
@@ -11587,7 +11587,8 @@ int rsa_test(void)
|
||||
#if defined(HAVE_NTRU)
|
||||
RsaKey caKey;
|
||||
#endif
|
||||
#ifndef NO_ASN
|
||||
#if !defined(NO_ASN) || !defined(WOLFSSL_RSA_PUBLIC_ONLY) \
|
||||
|| defined(WOLFSSL_PUBLIC_MP)
|
||||
word32 idx = 0;
|
||||
#endif
|
||||
#if !defined(WOLFSSL_RSA_VERIFY_ONLY) || defined(WOLFSSL_PUBLIC_MP)
|
||||
|
Reference in New Issue
Block a user