Hi Community,
I am working on implementing the RSA algorithm on a KM34Z256 MCU using the mbedTLS library. Currently, I am using the self-test example code provided in the 'rsa.c' file. However, the code is unable to encrypt data as the return value from 'mbedtls_rsa_pkcs1_encrypt' is not equal to 0. I suspect that the 'mbedtls_mpi_exp_mod' API is not executing properly.
Please guide me on implementing the RSA algorithm.
Thank You
Hi,
I suppose that the example in SDK is okay, pls check the macro or compiling setting.
Hope it can help you
BR
XiangJun Rong