Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: don't set IV on SWAP based on SWAP address.
New update logic when using encrypted external flash: - an update sector is copied to swap. No decryption and re-encryption is done in this step. This is important, because the swap address never changes and otherwise the data will be encrypted, one sector at the time, with the same IV. It's also a performance improvement. - a boot sector is copied to update. In this step the boot sector is encrypted - the swap sector is copied into boot. In this step the swap sector is decrypted This commit moves the set_iv logic into wolfBoot_copy_sector to account for this.
- Loading branch information
Showing
2 changed files
with
37 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters