Anyone has experience on SSL connections? On embedded device we are developing, K64 120MHz MCU, we can only get up to 3 SSL connections at same time. the fourth connection fails at CYASSL_Accept with error code -318 which is RSA_PRIVATE_ERROR. Further down, the error happened after the server send hello, and try to decode key from client, the call backs are ProcessReply ->DoHandShakeMsg -> DoHandShakeMsgType -> DoClientKeyExchange -> RSAPrivateDecryptInline -> RSAFunction->mp_exptmod->mp_exptmod_fast,
The error occurs at x == 17 for mp_mul.
/* create upper table */
for (x = (1 << (winsize - 1)) + 1; x < (1 << winsize); x++) {
if ((err = mp_mul (&M[x - 1], &M[1], &M[x])) != MP_OKAY) {
goto LBL_RES;
}
if ((err = redux (&M[x], P, mp)) != MP_OKAY) {
goto LBL_RES;
}
}
Are there anyway that we can support more than 3 SSL connections?
Thanks,
Xiaoyong
Solved! Go to Solution.
Thanks for reply. It turned out we are running low on RAM.
Hello Xiaoyong,
It is available CyaSSL for MQX RTCS, however this software library is developed by our partner WolfSSL, unfortunately we don't support CyaSSL project. You will need to get help from CyaSSL community.
https://wolfssl.com/wolfSSL/Products-wolfssl.html
https://wolfssl.com/wolfSSL/Community.html
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------