Awesome.
so overall understanding is.
So if I manage my own keys. I can reflash the esp32 as many times as i want.
as there any examples of this process kicking about you could point me to.
Thanks
Denty
Search found 13 matches
- Wed Nov 18, 2020 1:44 pm
- Forum: ESP-IDF
- Topic: Flash Encryption
- Replies: 8
- Views: 5545
- Tue Nov 17, 2020 1:12 pm
- Forum: ESP-IDF
- Topic: Flash Encryption
- Replies: 8
- Views: 5545
Re: Flash Encryption
or if i knew the flash key.. and generate it myself. i can upload an pre encrypted image via uart ?
just means i have to manage the keys myself (best pratice is different key for each device)
just means i have to manage the keys myself (best pratice is different key for each device)
- Tue Nov 17, 2020 1:11 pm
- Forum: ESP-IDF
- Topic: Flash Encryption
- Replies: 8
- Views: 5545
Re: Flash Encryption
So once I use flash encryption. I can not reflash it via UART. (I can update it via OTA) is what im reading. is that correct ?
- Tue Nov 17, 2020 9:16 am
- Forum: ESP-IDF
- Topic: Flash Encryption
- Replies: 8
- Views: 5545
Re: Flash Encryption
can you download the compiled binary?Note that you can't download the source code even from an unprotected ESP32; all that's in the flash is the compiled binary of your program.
And run it through a decompiler tho ?
so whats the overall benefits of the flash encryption ?
- Mon Nov 16, 2020 11:13 am
- Forum: ESP-IDF
- Topic: Flash Encryption
- Replies: 8
- Views: 5545
Flash Encryption
Hi Guys. I’m not sure if I’m on the right track. Once I start using flash encrypting. Am I able to reflash my program if I’m to update it. And would I be able to reflash a new SPIFFs image aswell ? As I just want to protect the ESP from Having the source code downloaded. Am I on the right track. Or ...
- Wed May 20, 2020 7:53 am
- Forum: General Discussion
- Topic: Hash Check a partition
- Replies: 2
- Views: 2852
Re: Hash Check a partition
Thanks. The Hash is just what I was after.esp_partition_get_sha256(esp_ota_get_running_partition(), sha_256);
print_sha256(sha_256, "SHA-256 for current firmware: ");
I currently don't use OTA so I'm presuming I can't use the second link.
- Tue May 19, 2020 2:24 pm
- Forum: General Discussion
- Topic: Hash Check a partition
- Replies: 2
- Views: 2852
Hash Check a partition
I was wondering if there was a check I could perform on a partition of an esp32. probably the main App program. to check that it's still the same as before. like a hash check?. I currently use nvs for memory but as this is stored on a separate Partition the Hash check should still work ? Just if a p...
- Tue Sep 24, 2019 1:14 pm
- Forum: ESP-IDF
- Topic: Reading in large files from spiffs
- Replies: 6
- Views: 9772
Re: Reading in large files from spiffs
think im hitting the limitations of the esp32. I tried a number of different ways to read this file in. the latest one. I read it in by line. and store it in a vector<string> however it only auto resizes to 1024 size and then it truncates the rest of the data.(better than it panics and dies) when I ...
- Mon Sep 23, 2019 10:31 am
- Forum: ESP-IDF
- Topic: Reading in large files from spiffs
- Replies: 6
- Views: 9772
Re: Reading in large files from spiffs
I can cause the panic by calling std::string l_test1(43569,'x'); std::string l_test2; l_test2.resize(43569); it seems i'm not able to have both these variables, only one guessing memory issue. but i dont understand why ? I also found out that if i read in the file to a char* then pass it to a string...
- Mon Sep 23, 2019 7:14 am
- Forum: ESP-IDF
- Topic: Reading in large files from spiffs
- Replies: 6
- Views: 9772
Re: Reading in large files from spiffs
I've managed to break it down further. Using this method below. I can read in the file without issue. std::streampos size; char * memblock; std::ifstream file (a_Filename, std::ios::in|std::ios::binary|std::ios::ate); if (file.is_open()) { size = file.tellg(); memblock = new char [size]; file.seekg ...