Reduce TFM fp_int size by only adding the “int size” if ALT_ECC_SIZE or WOLFSSL_ASYNC_CRYPT is defined. Fix couple of async build errors in wolfCrypt test.

This commit is contained in:
David Garske
2017-03-17 15:01:18 -07:00
parent 3bb1723476
commit 6cc42dcacb
3 changed files with 43 additions and 11 deletions
+2 -2
View File
@@ -6197,7 +6197,7 @@ int rsa_test(void)
}
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_RsaAsyncWait(ret, key);
ret = wc_RsaAsyncWait(ret, &key);
#endif
if (ret >= 0) {
ret = wc_RsaPrivateDecryptInline(out, idx, &res, &key);
@@ -6332,7 +6332,7 @@ int rsa_test(void)
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_RsaAsyncWait(ret, key);
ret = wc_RsaAsyncWait(ret, &key);
#endif
if (ret >= 0) {
ret = wc_RsaPrivateDecryptInline_ex(out, idx, &res, &key,