Skip to content

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.

1 participant