test
Fork of mbed-dev by
Functions | |
| void | trng_init (trng_t *obj) |
| Initialize the TRNG peripheral. | |
| void | trng_free (trng_t *obj) |
| Deinitialize the TRNG peripheral. | |
| int | trng_get_bytes (trng_t *obj, uint8_t *output, size_t length, size_t *output_length) |
| Get random data from TRNG peripheral. | |
Function Documentation
| void trng_free | ( | trng_t * | obj ) |
Deinitialize the TRNG peripheral.
- Parameters:
-
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.
- Parameters:
-
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
- Returns:
- 0 success, -1 fail
| void trng_init | ( | trng_t * | obj ) |
Initialize the TRNG peripheral.
- Parameters:
-
obj The TRNG object
Generated on Tue Jul 12 2022 12:34:21 by
1.7.2
