Merge pull request #4722 from dgarske/minor

This commit is contained in:
Anthony Hu
2022-01-05 15:03:44 -05:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@ -2263,6 +2263,7 @@ exit:
(void)bench_mac_algs;
(void)bench_asym_algs;
(void)bench_other_algs;
(void)bench_pq_asym_algs;
return NULL;
}

View File

@ -2356,8 +2356,19 @@ static int wc_RsaFunctionSync(const byte* in, word32 inLen, byte* out,
#if defined(WOLFSSL_SP_MATH)
(void)rng;
#ifndef WOLFSSL_HAVE_SP_RSA
(void)in;
(void)inLen;
(void)out;
(void)outLen;
(void)type;
(void)key;
#error RSA SP option invalid (enable WOLFSSL_HAVE_SP_RSA or disable WOLFSSL_SP_MATH)
return NOT_COMPILED_IN;
#else
WOLFSSL_MSG("SP Key Size Error");
return WC_KEY_SIZE_E;
#endif
#else
(void)rng;