H573 TrustZone Callable Secure Code
Is it possible to call Secure (S) application code from Non-Secure (NS) application code with TrustZone on STM32H573? I have not seen any examples of this from ST, so I want to know if it is possible or if there is some fundamental reason why not.
The idea is to re-use protected private keys for bi-directional authentication purposes. For example, an ECDSA private key is stored in the S application. The NS application could provide a message content in RAM and call the S application to generate the signature. This would allow the NS application to generate signatures at runtime without direct access to the private key data. The effect would be like using the S application as a sort of software TPM.
The use-case would be to allow an external PC tool communicating with the device to determine that the device is genuine and authentic.
Further, this could be extended for AES data encryption/decryption. The AES keys and/or implementation could be stored in the S application but be used to encrypt/decrypt data for the NS application.
If the above use-case is possible, what would be the ideal secure boot path for the H573 (ST-iROT + Secure Manager, ST-iROT + Secure App (w/o Secure Manager), or OEM-iROT)?
