Skip to main content
Visitor II
May 4, 2023
Solved

Can STM32MP13 decrypt on the fly binary code from user?

  • May 4, 2023
  • 2 replies
  • 1198 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

    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

    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.