2024-11-20 05:56 PM
STM32H573 with Secure Manager provisioned, the non-secure app cannot access the RNG anymore. Will it be ok to use Secure Manager API psa_generate_random() to replace HAL_RNG_GenerateRandomNumber()?
Solved! Go to Solution.
2024-11-21 02:31 AM
Hello @Thatseasy ,
yes, you can use psa_generate_random() which calls mbedtls_psa_external_get_random(). this will result in a call from secure to the low_level_rng defined function RNG_GetBytes();
which is calling HAL_RNG_GenerateRandomNumber()
2024-11-21 02:31 AM
Hello @Thatseasy ,
yes, you can use psa_generate_random() which calls mbedtls_psa_external_get_random(). this will result in a call from secure to the low_level_rng defined function RNG_GetBytes();
which is calling HAL_RNG_GenerateRandomNumber()