You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default MCUboot decrypts data coming from SLOT 1 before writing it into SCRATCH area. This is done becuase not the whole SLOT is encrypted and the offset are stored into SLOT 1 header.
Since SCRATCH does not have an header to store the offsets the idea is to not change the default behaviour of MCUboot and let decrypt the data while reading from SLOT 1 and then add an extra encryption step using the same key used to encrypt SLOT 1 to re-encrypt all the data (not considering offsets) before writing it into SCRATCH.
The data needs also to be decrypted when is readed from scratch.
By default MCUboot decrypts data coming from SLOT 1 before writing it into SCRATCH area. This is done becuase not the whole SLOT is encrypted and the offset are stored into SLOT 1 header.
Since SCRATCH does not have an header to store the offsets the idea is to not change the default behaviour of MCUboot and let decrypt the data while reading from SLOT 1 and then add an extra encryption step using the same key used to encrypt SLOT 1 to re-encrypt all the data (not considering offsets) before writing it into SCRATCH.
The data needs also to be decrypted when is readed from scratch.
A possible implementation can be: arduino/mcuboot@6729d8d
The text was updated successfully, but these errors were encountered: