RNG Monitor periodically checks RNG pool and notifies components waiting for entropy when it is avaiable.
More...
RNG Monitor periodically checks RNG pool and notifies components waiting for entropy when it is avaiable.
typedef void(* rng_monitor_notification_handler_t)(void *p_context) |
Function handling RNG Monitor notifications.
- Parameters
-
[in] | p_context | Pointer user defined context |
ret_code_t rng_monitor_init |
( |
void |
| ) |
|
Initializes RNG Monitor.
- Note
- The nrf_drv_rng driver has to be initialized before calling this function.
- Returns
- NRF_SUCCESS on success, otherwise an error code.
Request radnom data read.
- Parameters
-
[in] | random_bytes_requested | Number of random bytes requested. |
[in] | notification_handler | Function which will be called when there will be enough random bytes in RNG pool. |
[in] | p_notification_context | Context passed to notification handler. |
- Returns
- NRF_SUCCESS on success, otherwise an error code.