Hi,

the limit has not come up yet for the scenario that you're testing. I am wondering whether the MCUboot layer could be rewritten to avoid having to load and keep multiple keys at the same time in the store. If that is a hard requirement, extending the number of keys the thin layer can store is doable, it will definitely lead to an increase of complexity of the part of the thin layer that manages keys.

Thanks,
Antonio

Sent from Outlook for Mac


From: Jaun, Mario via TF-M <tf-m@lists.trustedfirmware.org>
Date: Wednesday, 2 December 2026 at 15:00
To: Anton Komlev via TF-M <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] BL2 thin PSA crypto core: single key slot and encrypted swap

Hi all,

We are enabling MCUboot image encryption in BL2 with a swap upgrade strategy (SWAP_USING_OFFSET, RSA-OAEP). Encrypted updates fail on target because MCUboot needs several keys imported at the same time, while the thin PSA crypto core holds only one. We are working with STM32U5 but this seems to apply to any platform.

Is the single key slot a deliberate limit or did encrypted swap simply not come up yet?

Thanks for any hints.

Best
Mario