add rsafunction mp_exptmod_e debug message

pull/72/head
toddouska 2015-05-07 10:33:23 -07:00
parent 08b6e66ea8
commit 7a90f60a9c
1 changed files with 5 additions and 2 deletions

View File

@ -388,9 +388,12 @@ static int wc_RsaFunction(const byte* in, word32 inLen, byte* out,
/* convert */
if (mp_to_unsigned_bin(&tmp, out) != MP_OKAY)
ERROR_OUT(MP_TO_E);
done:
done:
mp_clear(&tmp);
if (ret == MP_EXPTMOD_E) {
WOLFSSL_MSG("RSA_FUNCTION MP_EXPTMOD_E: memory/config problem");
}
return ret;
}