Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Sturgizz
#70872 Hi guys,

At page 32 of this document (37 of the pdf), it talks about rsa encryption. I will need it for my project. The goal is to command an esp with an other throught 433MHz. I've choose the esp8266 for it low power consumption mostly in deep sleep (because it have to be autonomous for a remote control). Do you know if rsa functions are available on Arduino IDE? Or have I to work on RTOS sdk? Or have you another idea?

Thanks for your help
Last edited by Sturgizz on Mon Oct 16, 2017 11:42 am, edited 2 times in total.
User avatar
By urbanze
#70875
Sturgizz wrote:Hi guys,

At page 32 of this document (37 of the pdf), it talks about rsa encryption. I will need it for my project. The goal is to command an esp with an other throught 433MHz. I've choose the esp8266 for it low power consumption mostly in deep sleep (because it have to be autonomous for a remote control). Do you know if rsa functions are available on Arduino IDE? Or have I to work on RTOS sdk? Or have you another idea?

Thanks for your help


ESP32 has support for RSA with mbedtls librarie, search about this.

Maybe esp8266 can't support "rsa-2048/4096", if yes, it's consume a LOT of RAM, FLASH and CPU time. :shock:
User avatar
By Sturgizz
#70879 Ok, so you think it's not a good idea to do that with the esp8266?
What means the 3.4.4.6 section of this document:http://www.esp8266.com/wiki/lib/exe/fetch.php?media=datasheets:20a-esp8266_rtos_sdk_programming_guide_en.pdf
Does the esp8266 has a rsa specilised circuit? And can we use it for something else than WiFi?

And I've found that for esp8266:
https://github.com/espressif/esp8266-no ... rary/rsa.c

Thank you
User avatar
By urbanze
#70880
Sturgizz wrote:Ok, so you think it's not a good idea to do that with the esp8266?
What means the 3.4.4.6 section of this document:http://www.esp8266.com/wiki/lib/exe/fetch.php?media=datasheets:20a-esp8266_rtos_sdk_programming_guide_en.pdf
Does the esp8266 has a rsa specilised circuit? And can we use it for something else than WiFi?

And I've found that for esp8266:
https://github.com/espressif/esp8266-no ... rary/rsa.c

Thank you


Not a bad idea, since the WiFiClientSecure library works, but heavier operations like RSA-4096b may not work for the immense support it needs. I can only help you by pointing out about mbedtls, which is supported for the most famous cryptographies such as AES, RSA, RC4, etc.

Let's wait for answers from better people xD