HAL RNG Abstraction missing?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

spatialerror
Posts: 1
Joined: Sat Jul 13, 2013 2:46 pm

HAL RNG Abstraction missing?

Postby spatialerror » Sat Jul 13, 2013 3:09 pm

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

User avatar
Giovanni
Site Admin
Posts: 11376
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 429 times
Been thanked: 361 times
Contact:

Re: HAL RNG Abstraction missing?

Postby Giovanni » Sat Jul 13, 2013 3:21 pm

Hi,

This feature is very STM32F4-specific but it could be added as a platform-specific driver. Thanks for the hint.

Giovanni

faisal
Posts: 201
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 30 times
Been thanked: 25 times

Re: HAL RNG Abstraction missing?

Postby faisal » Thu Apr 19, 2018 4:34 am

How do you feel on about having a standard TRNG HAL driver, now that SAMA5D2x also has a TRNG?

User avatar
Giovanni
Site Admin
Posts: 11376
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 429 times
Been thanked: 361 times
Contact:

Re: HAL RNG Abstraction missing?

Postby Giovanni » Thu Apr 19, 2018 7:47 am

Hi,

It is in the crypto HAL driver in 18.2.0, currently the STM32 implementation is missing, it could be added.

Giovanni

podhrmic
Posts: 21
Joined: Wed Nov 06, 2013 1:40 am

Re: HAL RNG Abstraction missing?

Postby podhrmic » Fri Dec 07, 2018 10:28 pm

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

User avatar
Giovanni
Site Admin
Posts: 11376
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 429 times
Been thanked: 361 times
Contact:

Re: HAL RNG Abstraction missing?

Postby Giovanni » Sat Dec 08, 2018 6:16 am

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

podhrmic
Posts: 21
Joined: Wed Nov 06, 2013 1:40 am

Re: HAL RNG Abstraction missing?

Postby podhrmic » Tue Dec 11, 2018 6:54 pm

Hi Giovanni, thanks for the info.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 4 guests