mbedTLS RSA in KM34 MCU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mbedTLS RSA in KM34 MCU

754 Views
Mr7
Contributor II

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

0 Kudos
Reply
1 Reply

686 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply