Arm Mbed OS support forum

Steps to generate RSA public/private key and use it to encrypt and decrypt data

Hi, I want to do implement some functions with mbedtls. Here is the features what I want: a API to generate RSA public/private key.
2.Parse the public/private key and store them as char array(with means it needs a api to set key).
3.set RSA public with char array to encrypt data and set private key with char array to decrypt data.

Could u please help me?

HI @jwcesign

As mentioned in this post, Mbed TLS is now maintained under open governance at

Does this answer your question?

Mbed Support

Hi ron,

I have a question I don’t understand, please help me.

The private key should only need D&N, but it seems to depend on E for decryption. How can I calculate E to decrypt correctly ?