Entropy#

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.


Definition at line 84 of file platform/security/sl_component/se_manager/inc/sl_se_manager_entropy.h