Skip to content

Secure swap with scratch on external flash #1

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

Open
pennam opened this issue Mar 25, 2022 · 0 comments
Open

Secure swap with scratch on external flash #1

pennam opened this issue Mar 25, 2022 · 0 comments
Assignees

Comments

@pennam
Copy link
Collaborator

pennam commented Mar 25, 2022

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

@pennam pennam self-assigned this Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant