Add useful log message when SP math key size is invalid.

This commit is contained in:
David Garske
2019-06-25 11:31:47 -07:00
parent f8e3e63938
commit 354ec9cd9d

View File

@ -1856,6 +1856,7 @@ static int wc_RsaFunctionSync(const byte* in, word32 inLen, byte* out,
#ifdef WOLFSSL_SP_MATH
(void)rng;
WOLFSSL_MSG("SP Key Size Error");
return WC_KEY_SIZE_E;
#else
(void)rng;