Mistake on this page?
Report an issue in GitHub or email us
Functions
TRNG hal functions

Functions

void trng_init (trng_t *obj)
 Initialize the TRNG peripheral. More...
 
void trng_free (trng_t *obj)
 Deinitialize the TRNG peripheral. More...
 
int trng_get_bytes (trng_t *obj, uint8_t *output, size_t length, size_t *output_length)
 Get random data from TRNG peripheral. More...
 

Detailed Description

Function Documentation

void trng_free ( trng_t obj)

Deinitialize the TRNG peripheral.

Parameters
objThe TRNG object
int trng_get_bytes ( trng_t obj,
uint8_t *  output,
size_t  length,
size_t *  output_length 
)

Get random data from TRNG peripheral.

Parameters
objThe TRNG object
outputThe pointer to an output array
lengthThe size of output data, to avoid buffer overwrite
output_lengthThe length of generated data
Returns
0 success, -1 fail
void trng_init ( trng_t obj)

Initialize the TRNG peripheral.

Parameters
objThe TRNG object
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.