FYI, there was proposal to implement this as a hw/driver instead of
hal_trng to allow other randomness sources instead of MCU - I
implemented this as well and pushed to the same PR so you can take a
look on both.

Best,
Andrzej


On Wed, Apr 18, 2018 at 3:56 PM, Andrzej Kaczmarek
<[email protected]> wrote:
> Hi devs,
>
> I created a simple hal_trng which abstracts TRNG available on many SoCs:
> https://github.com/apache/mynewt-core/pull/1037
>
> I guess this is so simple it does not need much explanation (APIs are
> documented in hal_trng.h), but I can to provide some more information
> if needed :-)
>
> For now there is HAL API and sample implementation for nRF52xxx. If
> this is accepted (as-is or with some changes) I will also modify
> NimBLE drivers for Nordic SoCs to use hal_trng instead of accessing
> NRF_RNG directly so they can nicely work with applications.
>
> Best,
> Andrzej

Reply via email to