Description

Random number generators.

API for getting randomness from the Secure Engine True Random Number Generator (TRNG).

Functions

sl_status_t sl_se_get_random ( sl_se_command_context_t *cmd_ctx, void *data, uint32_t num_bytes)
Get random data from hardware TRNG.

Function Documentation

sl_se_get_random()

sl_status_t sl_se_get_random ( sl_se_command_context_t * cmd_ctx,
void * data,
uint32_t num_bytes
)

Get random data from hardware TRNG.

Parameters
[in] cmd_ctx Pointer to an SE command context object.
[out] data Random data from TRNG.
[in] num_bytes Length of data request.
Returns
Status code, sl_status.h.