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... | |
void trng_free | ( | trng_t * | obj | ) |
Deinitialize the TRNG peripheral.
obj | The 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.
obj | The TRNG object |
output | The pointer to an output array |
length | The size of output data, to avoid buffer overwrite |
output_length | The length of generated data |
void trng_init | ( | trng_t * | obj | ) |
Initialize the TRNG peripheral.
obj | The TRNG object |