My device has factory partition and two OTA partitions. Factory partition I flash at production together with the same encryption key AES. The devices are then updated via OTA via TCP protocol from my server. I don't trust HTTPS its easy to crack. I want to use flash encryption.
I use esp-idf-v3.1.2 ...
How can I transfer already encrypted data through OTA?
(Solved) OTA encrypted flash transmission.
(Solved) OTA encrypted flash transmission.
Last edited by brp80000 on Thu Jan 17, 2019 10:44 pm, edited 2 times in total.
Re: OTA transmission encryption flash.
Is it possible to use the transmission of encoded data in the new esp-idf-v3.1.2
-
- Posts: 58
- Joined: Thu Mar 01, 2018 1:26 am
Re: OTA transmission encryption flash.
I believe there are multiple functions for writing to the Flash. According to:
https://demo-dijiudu.readthedocs.io/en/ ... ption.html
It says:
Good luck
https://demo-dijiudu.readthedocs.io/en/ ... ption.html
It says:
So if you want to write already encrypted file to flash, one way is to copy the HTTPS_OTA component files over to your project directory and modify it to use the SPIWrite. You will need to do all the checks that the partition_write does manually yourself.The ROM function esp_rom_spiflash_write_encrypted will write encrypted data to flash, the ROM function SPIWrite will write unencrypted to flash. (these function are not supported in esp-idf apps).
Good luck
Re: OTA transmission encryption flash.
I wanted to understand whether there was support for such a regime, as promised
http://bbs.esp32.com/viewtopic.php?f=2& ... a2028ce98cESP_Angus
Re: OTA transmission encryption flash.
Comrades of the support I have already locked 3 of the chip well be so kind to help me. I have at stake a large batch of devices in a few thousand. This your sales. With created already 4 themes with questions to you. It is very difficult for me to understand the translation of your texts, probably they are written in Chinese-English or my level of English is not enough to understand your level. Well, or you have a new year?
Re: OTA encrypted flash transmission.
I answer myself: the function has not been implemented. I followed the example from the link and despite some differences in the new IDF I was able to do OTA with pre-encrypted firmware data, without decrypting it when placed in flash
Who is online
Users browsing this forum: ESP_Sprite and 196 guests