I browsed through the code looking for an uniform way to get random numbers from HWRNG or a SWPRNG ^^ doesnt look like thats implemented but it would be nice to have at least on the STM407 an easy way for accessing the TRNG
would be a minimal modification of the api i guess to add it
HAL RNG Abstraction missing?
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: HAL RNG Abstraction missing?
Hi,
This feature is very STM32F4-specific but it could be added as a platform-specific driver. Thanks for the hint.
Giovanni
This feature is very STM32F4-specific but it could be added as a platform-specific driver. Thanks for the hint.
Giovanni
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: HAL RNG Abstraction missing?
Hi,
It is in the crypto HAL driver in 18.2.0, currently the STM32 implementation is missing, it could be added.
Giovanni
It is in the crypto HAL driver in 18.2.0, currently the STM32 implementation is missing, it could be added.
Giovanni
Re: HAL RNG Abstraction missing?
Hi,
I noticed the crypto hal driver is implemented only for STM32F7. Are you planning to implement (at least the RNG) for STM32F4?
Regards
M
I noticed the crypto hal driver is implemented only for STM32F7. Are you planning to implement (at least the RNG) for STM32F4?
Regards
M
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: HAL RNG Abstraction missing?
Hi,
Now there is a new TRNG driver in HAL (trunk version), the functionality will be removed from crypto. It should work on F4 but have not tested it on all platforms.
There is a demo under /testhal/STM32/multi/TRNG.
Giovanni
Now there is a new TRNG driver in HAL (trunk version), the functionality will be removed from crypto. It should work on F4 but have not tested it on all platforms.
There is a demo under /testhal/STM32/multi/TRNG.
Giovanni
Who is online
Users browsing this forum: No registered users and 13 guests