-
Notifications
You must be signed in to change notification settings - Fork 247
Modify MCUboot to use PSA key_id_t for key type in AES encryption context #565
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
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 0b54665. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 09ce751. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 1aaabde. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit a652982. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 9b60560. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 5af259f. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 301ab33. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit c13c652. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit d8a2e45. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 285fd59. Signed-off-by: Jukka Rissanen <[email protected]>
… BM" This reverts commit ecc13ac. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit c859608. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 1b1a37f. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 3adc1f2. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 3b20ec3. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 1b102ec. Signed-off-by: Jukka Rissanen <[email protected]>
…orm" This reverts commit e032eb1. Signed-off-by: Jukka Rissanen <[email protected]>
… 0x0" This reverts commit c03a815. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 0fadab1. Signed-off-by: Jukka Rissanen <[email protected]>
…cted to late" This reverts commit 4e46797. Signed-off-by: Jukka Rissanen <[email protected]>
…_LITE" This reverts commit 6c096b8. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 95d384a. Signed-off-by: Jukka Rissanen <[email protected]>
…ng of img status page" This reverts commit c72ed15. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit edc1c70. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit a184e32. Signed-off-by: Jukka Rissanen <[email protected]>
…is used" This reverts commit bc5eb3f. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 37486f5. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 58175b6. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 30e7326. Signed-off-by: Jukka Rissanen <[email protected]>
This reverts commit 8b2d04c. Signed-off-by: Jukka Rissanen <[email protected]>
nrf-squash! [nrf noup] boot/zephyr: update nrf54l15dk ext flash configs This commit removes the partition definitions from nrf54L ext flash configs, as they are no longer needed, as the pure DTS configuration is no longer supported on nRF54L. They also caused issues, as they were not compatible with nRF54L10 and nRF54L05. It renames nrf54l15dk_nrf54l15_cpuapp_ext_flash.* overlays to nrf54l15dk_ext_flash.*, as now the same configuration can be used on nRF54L15, nRF54L10 and nRF54L05. Signed-off-by: Artur Hadasz <[email protected]>
Uses ruff with --fix to fix python files in this folder Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit f23154c251e07013d45c9f97c875404e83e7d2dc)
Uses ruff with --unsafe-fixes to fix python files in this folder This is a separate commit so it can be reverted if it causes problems Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 497688bafff2c3e183a016b68fc51f1bedf488c9)
This reverts commit dce784a. Signed-off-by: Tomasz Chyrowicz <[email protected]> (cherry picked from commit b192716c969ad358bb3a1db60c898212f3275c55)
nrf-squash! [nrf noup] boot: zephyr: Add bm firmware loader code Update for NCS BM include folder structure. Signed-off-by: Eivind Jølsgard <[email protected]>
nrf-squash! [nrf noup] boot: zephyr: Disable self RWX This commit fixes a couple of issues regarding MCUBoot region protection for nRF54L. Also, support for region and protection is added for nRF54LM20 and nRF54LV10 platforms. Signed-off-by: Artur Hadasz <[email protected]>
The nrf54h20dk overlay is no longer required as the gpio pad groups have been removed. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 71b41e38e9f5d278178be17f6d42f2559f8e46aa)
fixup! [nrf noup] bootloader: Add bootloader requests Interpret pending bootloader requests while investigating the confirm flag. Signed-off-by: Tomasz Chyrowicz <[email protected]>
nrf-squash! [nrf noup] bootutil: Locking KMU keys KMU key locking is not available in case ITS is used. Old code cause compilation errors when build for signature using ITS. Signed-off-by: Artur Hadasz <[email protected]>
b05f9e3 to
f9e2dfd
Compare
nrf-squash! [nrf noup] boot: zephyr: Add bm firmware loader code adds KMU key reocation to BM firmware loader. Signed-off-by: Mateusz Michalek <[email protected]>
take into account multiple verification done in one boot. Make sure only unused keys are revoked. Signed-off-by: Mateusz Michalek <[email protected]>
| return mbedtls_aes_setkey_enc(ctx, k, BOOT_ENC_KEY_SIZE * 8); | ||
| } | ||
|
|
||
| static inline int bootutil_aes_ctr_encrypt(bootutil_aes_ctr_context *ctx, uint8_t *counter, const uint8_t *m, uint32_t mlen, size_t blk_off, uint8_t *c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, I'd prefer to have docstrings inside the interface header, but since this is a [fromtree] commit, I'm not going to require them at this stage.
f9e2dfd to
818e6fa
Compare
Add a new API to lock further updates of the HW-based security counter. This API may prevent the non-bootloader application from accidental invalidation of the bootable firmware. Signed-off-by: Tomasz Chyrowicz <[email protected]> (cherry picked from commit f9ad3ee202d53e27a3399976b5fcd0a84c572ba3)
818e6fa to
1b79117
Compare
The BOOT_DOWNGRADE_PREVENTION_CHOICE choice should not have a child Kconfig symbols defined inside it. Signed-off-by: Tomasz Chyrowicz <[email protected]> (cherry picked from commit 496f74f318fb12b7e7437db4e8c5c8c429713728)
Add an implementation of HW rollback prevention, based on the IronSide secure counters service. Ref: NCSDK-36295 Signed-off-by: Tomasz Chyrowicz <[email protected]>
Split definitions to crypto backend specific headers. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 5a161e4cc1cd5329c073d996f0300d2661c6b768)
Store psa_key_id_t key in AES context instead of RAW key. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit e92551838e18b6219af0891a18a757e538bd3ff6)
1b79117 to
208edf4
Compare
|
nvlsianpu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed upstream



Two commits from upstream:
Replacement of raw key array in encryption context, with psa_key_id_t, has reduced MCUboot binary size by ~224 bytes, for non-KMU and non-log-dbg build; small amount of RAM is saved also.