-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update with encrypted file #77
Comments
hi, thanks for your feedback 👍 you may want to try to my knowledge that scenario has only been been tested with esp32FOTA library here's some pseudo code on how to use it: // get the Update singleton
auto update = GzUpdateClass::getInstance();
// use inherited UpdateClass methods
update.setCryptMode(....);
update.setCryptKey(....);
update.onProgress( myProgressFunction );
// begin update process
if( !update.begingz(UPDATE_SIZE_UNKNOWN, U_FLASH) )
{
// GzUpdateClass or UpdateClass error occured
update.abortz(); // from GzUpdateClass
return;
}
size_t bytes_written = update.writeGzStream(stream); // from GzUpdateClass
// todo: compare bytes_written with binary size, results may differ (can be aligned to 4096)
if( !update.endz() ) // from GzUpdateClass
{
// gzip error occured
return;
}
if( !update.isFinished() ) // from UpdateClass
{
// UpdateClass error occured
return;
}
ESP.restart();
|
Thank you for your help. My program code is encrypted but SPIFFS is not! Therefore, I want to extract the tar.gz file from its compressed state onto the SD card first, and then update the files individually. You wrote a function for this, but it seems it cannot extract directly onto the SD card. Could you please guide me on how to use it? Regards. |
Hi,
When eFuse is enabled, the update from memory does not proceed, and there are no error messages either. I used the espsecure.py tool to encrypt my program with a specific key, then stored it along with the SPIFFS as a tar.gz file on the memory. However, the update does not complete successfully. Could you please guide me on what steps I should take to resolve this?
Regards.
The text was updated successfully, but these errors were encountered: