Mbedtls_rsa_pkcs1_encrypt failed RSA - Bad input parameters to function (0x4080)

I posted a question earlier that boils down to trying to encrypt an oversize string.
I’m now replacing it with just this brief remark.
My only suggestion: put better error handling in the source code.

Thank you for your suggestion. We will take that into consideration.