From 7a90f60a9ce20d9f82486f2af55239246b4d1f46 Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 7 May 2015 10:33:23 -0700 Subject: [PATCH] add rsafunction mp_exptmod_e debug message --- wolfcrypt/src/rsa.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index c9562b1ad..1a5021783 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -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; }