embassy-nrf

Crates

git

Versions

nrf52840

Flavors

Skip to main content

Module rng

Module rng 

Source
Expand description

True random number generator of the cryptographic accelerator.

The generator is owned through the CRYPTO_RNG peripheral.

  • On the CryptoCell (nRF52840, nRF5340, nRF91) the driver has a blocking API and an interrupt-driven async API.
  • On CRACEN (nRF54L) it is blocking only.

Both implement the rand_core traits.

Structsยง

InterruptHandler
Interrupt handler for the CRYPTOCELL interrupt, used by the async API.
Rng
Driver for the true random number generator.