Skip to main content
Dat Tran
Senior II
May 4, 2023
Solved

Can STM32MP13 decrypt on the fly binary code from user?

  • May 4, 2023
  • 2 replies
  • 1199 views

Does STM32MP13 support decryption on the fly binary code on SD/MMC, entire SD/MMC or just TF-A firmware?

We have customers need protect their code on SD/MMC, does STM32MP13 have any feature to support that?

Thanks

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @Community member​ ,

STM32MP13 has no capability to decode on-the-fly from SD/MMC

But you can decrypt the protected code on SD card by SW and copy it inside secure or encrypted DDR area to be executed by Secure service at run time.

To help you further we will need more details about protected code.

Olivier

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
May 23, 2023

Hi @Community member​ ,

STM32MP13 has no capability to decode on-the-fly from SD/MMC

But you can decrypt the protected code on SD card by SW and copy it inside secure or encrypted DDR area to be executed by Secure service at run time.

To help you further we will need more details about protected code.

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
PatrickF
Technical Moderator
May 24, 2023

Hi @Community member​ 

details for TF-A ecncryption: https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ROM_code_secure_boot#Image_encryption

details of DDR on the fly encrypt/decrypt HW (DDRMCE): https://wiki.st.com/stm32mpu/wiki/DDRMCE_internal_peripheral

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here