does there have an example for rsa_pkcs1_encrypt(.....) function?
Posted: Mon Mar 13, 2017 9:46 am
does there have an example for rsa_pkcs1_encrypt(.....) function?
ESP32 Official Forum
http://forum.esp32.com/
This is up to you. You could adapt the code in these files to use keys in arrays instead (refer to the mbedTLS docs for the functions to use), or you can continue to load from the filesystem (using one of the supported ESP32 embedded filesystems). It's really up to you.SombraRPK wrote:Thank you, ESP_Angus! I find a couple of things trying to make this code work. I'd be so glad that you could help me.
The first one. I was reading the code and I see it use files, do you know if I can use files with the ESP32? Or do you have a recommendation to make it work? I think the best would be having the key in a char array, but i'm really lost on it.
You need to build the mbedTLS library on macOS and then pass the required gcc options to link in this library. mbedTLS includes some Makefiles and CMakeLists files for the library and the example programs, which should help do this for you.SombraRPK wrote: The second. I'm trying to compile the code on Mac OS X High Sierra using gcc, but i have some problems with the linker, appearantly (i attach a screenshot). Do you think I need to try on Linux?