Search found 25 matches

by Munque
Fri Oct 16, 2020 11:51 pm
Forum: ESP32 Arduino
Topic: Secure Boot & Flash Encryption Using CLI only - Step By Step
Replies: 1
Views: 3481

Secure Boot & Flash Encryption Using CLI only - Step By Step

Goals here - Use only CLI command line to generate all necessary files for Secure Boot & Flash Encryption and save to a server before pushing to ESP-32. - Do this in "reflashable" mode. We will save and secure the necessary files. I've gotten this far (and am pretty certain this is not yet correct) ...
by Munque
Fri Oct 16, 2020 6:13 pm
Forum: ESP-IDF
Topic: ESP32 Secure Bootloader
Replies: 4
Views: 6058

Re: ESP32 Secure Bootloader

In "reflashable" mode, you keep a copy of the key which is in efuse so it's possible to generate new secure boot digests, in order to update the bootloader. Under what circumstances do you 'generate new secure boot digests'? Is that something you must do if you want to flash updated code to the esp...
by Munque
Wed May 13, 2020 7:00 pm
Forum: ESP32 Arduino
Topic: Questions on Secure Boot & Flash Encryption -- Step by Step using only CLI
Replies: 0
Views: 2146

Questions on Secure Boot & Flash Encryption -- Step by Step using only CLI

I'm attempting to get a comprehensive understanding of the Secure Boot & Flash Encryption in step-by-step form using only CLI. Reasons for the CLI-only method: - To have control over the process and automate it for consistency, accuracy, flexibility depending on how the overall production workflow e...
by Munque
Tue May 12, 2020 1:52 pm
Forum: ESP32 Arduino
Topic: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array
Replies: 6
Views: 6665

Re: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array

> my recommendation is to follow examples that don't use strings. Agreed. It's just taking a while to figure out how convert from a String mindset to the char array approach. There are a variety procedures I can execute fluently with Strings that require extra steps the land of char, and I'm not yet...
by Munque
Mon May 11, 2020 3:15 pm
Forum: ESP32 Arduino
Topic: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array
Replies: 6
Views: 6665

Re: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array

Problem resolved: The issue was actually on the Node JS side where the array was accidentally JSON.stringify'd twice. So for the most part this is an issue unrelated to C++ Strings and char arrays. The significant relevance to C++ is this... Beginning on the JS Side: JSON.stringy(); //gives the stri...
by Munque
Mon May 11, 2020 1:29 pm
Forum: ESP32 Arduino
Topic: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array
Replies: 6
Views: 6665

Re: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array

In attempting to test (and learn more about how to work with) char arrays I tried the following addition to the original code: Serial.println(arrayStr); // All working to this point. Result is "[\"Test1\",\"Test2\"]"; //char array test int arrayLgth=arrayStr.length(); char arrayChar[arrayLgth + 1]; ...
by Munque
Mon May 11, 2020 1:05 pm
Forum: ESP32 Arduino
Topic: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array
Replies: 6
Views: 6665

Re: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array

myString = myString + "my new String"; I'd read somewhere that a) Don't use strings, and b) But if you do, don't use myString + "my new String", but the concat() method. completely different topic / Stop using Strings and try to do the things using chars[] Actually per this question that's right on...
by Munque
Mon May 11, 2020 3:59 am
Forum: ESP32 Arduino
Topic: Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array
Replies: 6
Views: 6665

Unable to convert a JS JSON.stringify'd array to a C++ ArduinoJson equivalent -- empty array

I'm using a WiFiClient to download an array (JSON.stringify(["Test1", "Test2"]) from a Node JS server and have it converted on the C++ side into an ArduinoJson array. The problem: The array ends up empty. void GetListFromServerUsingArduinoJson(){ WiFiClient client; //Skipping some code here: client....
by Munque
Thu May 07, 2020 4:09 pm
Forum: Report Bugs
Topic: Is this still a security bug? "Pwn the ESP32 Forever: Flash Encryption and Sec. Boot Keys Extraction"
Replies: 6
Views: 9257

Re: Is this still a security bug? "Pwn the ESP32 Forever: Flash Encryption and Sec. Boot Keys Extraction"

ESP_Angus , thank you for the detailed response. Much appreciated. RE esp v2.8 -- good to know. RE Ethernet. Very cool Did not know about that. So far we've been working with ESP8266 & ESP32 WROOM on projects where security is of no concern. There's an upcoming project, however, that would involve ...