STM32U585 TFM Package Usage for Secure Project access and Crypto Module Implementation
Hi Team
Greetings
I have some general queries with respect to the usage of the TFM Application provided in firmware package.(Some of them were asked previously but to get a clear understanding)
1. For calling a secure module(example UART or ADC) - can i create a secure nsc.c file(in TFM_Appli_Secure)-> initialise the module and for usage(for example uart tx function) in the non secure area(using CMSE_NS_ENTRY and CMSE_NS_CALL) to the functions that will be called from the TFM_Appli_Non_Secure project) - is this method a correct approach.
2. I need to implement some crypto modules in the secure area(TFM_Appli_Secure) and access them from the non Secure Area(TFM_Appli_Non_Secure). Can i use the implementation directly from the mbedtls library -> initialise them in the TFM_Appli_Secure project and use the above secure_nsc.c file to give a function to use the encrypt and decrypt functionality, from the TFM_Appli_Non_Secure project.
3. I saw some reference implementation of crypto schemes using PSA Crypto API over mbedCrypto. Is it a must to follow and use the PSA Crypto API over mbedCrypto library to add more crypto operations in the TFM Application?
These methods are from the present requirement of my work and as im not very experienced in the security domain, i would like to get an expert opinion in 3 of these points. If the method is not the right direction, please suggest me a simplified step so that i can satisfy both of the 2 requirements(point 1 and 2). Hope both the queries are clear.
Thanks again for your support
Regards
Philip
