Skip to content

Enable scratch encryption and increase swap RAM buffer #10

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

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Conversation

pennam
Copy link
Collaborator

@pennam pennam commented Apr 6, 2022

These are two experimental features that might need some additional work in future.

  • mcuboot.encrypt-scratch: true -> enables scratch encryption
    During a swap when movig data from slot 1 to scratch data is decrypted taking care of slot 1 offsets. This is the default MCUboot behaviour. This features enables re-encryption of this data before writing it into scratch and decryption before writing scratch data into slot 0.

  • mcuboot.swap-buf-size: 131072 -> swap buffer size
    During a swap data is normally readed from flash and store into a 1K buffer to encrypt/decrypt and moving the data. Increasing the size of the buffer improves swap time. Swapping 1MB of data with 1KB buffer takes 5' using 128KB buffer takes 3'2''

@pennam pennam merged commit e029207 into main Apr 7, 2022
@pennam pennam deleted the exp_features branch April 27, 2022 07:31
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

Successfully merging this pull request may close these issues.

None yet

1 participant