When RSA decrypting with Public key on ESP-IDF get error about BIGNUM
Posted: Fri Dec 22, 2017 12:03 pm
when I decrypting RSA with Public key on ESP-IDF, I get error code: -17028
I used mbedtls_rsa_pkcs1_decrypt() function for decrypting. And I got the below error-->
mbedtls_rsa_pkcs1_decrypt failed !
Error code: -17028
-------mbedtls_rsa_pkcs1_decrypt ERROR-------
RSA - The public key operation failed : BIGNUM - Bad input parameters to function
Why this error code is encountered? How can I overcome this?
Thanks.
I used mbedtls_rsa_pkcs1_decrypt() function for decrypting. And I got the below error-->
mbedtls_rsa_pkcs1_decrypt failed !
Error code: -17028
-------mbedtls_rsa_pkcs1_decrypt ERROR-------
RSA - The public key operation failed : BIGNUM - Bad input parameters to function
Why this error code is encountered? How can I overcome this?
Thanks.