mirror of https://github.com/wolfSSL/wolfssl.git
add guard for rsa public only
parent
f5f19fda42
commit
fd01f79f86
|
@ -13069,7 +13069,7 @@ done:
|
||||||
|
|
||||||
#if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */
|
#if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */
|
||||||
/* Need to create known good signatures to test with this. */
|
/* Need to create known good signatures to test with this. */
|
||||||
#ifndef WOLFSSL_RSA_VERIFY_ONLY
|
#if !defined(WOLFSSL_RSA_VERIFY_ONLY) && !defined(WOLFSSL_RSA_PUBLIC_ONLY)
|
||||||
static int rsa_pss_test(WC_RNG* rng, RsaKey* key)
|
static int rsa_pss_test(WC_RNG* rng, RsaKey* key)
|
||||||
{
|
{
|
||||||
byte digest[WC_MAX_DIGEST_SIZE];
|
byte digest[WC_MAX_DIGEST_SIZE];
|
||||||
|
@ -15491,7 +15491,7 @@ WOLFSSL_TEST_SUBROUTINE int rsa_test(void)
|
||||||
|
|
||||||
#if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */
|
#if defined(WC_RSA_PSS) && !defined(HAVE_FIPS_VERSION) /* not supported with FIPSv1 */
|
||||||
/* Need to create known good signatures to test with this. */
|
/* Need to create known good signatures to test with this. */
|
||||||
#ifndef WOLFSSL_RSA_VERIFY_ONLY
|
#if !defined(WOLFSSL_RSA_VERIFY_ONLY) && !defined(WOLFSSL_RSA_PUBLIC_ONLY)
|
||||||
ret = rsa_pss_test(&rng, key);
|
ret = rsa_pss_test(&rng, key);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
goto exit_rsa;
|
goto exit_rsa;
|
||||||
|
|
Loading…
Reference in New Issue