![]() |
Contiki-NG
|
Files | |
| file | trng-arch.c |
| Implementation of True Random Number Generator for CC13xx/CC26xx. | |
| file | trng-arch.h |
| Header file of True Random Number Generator for CC13xx/CC26xx. | |
Functions | |
| bool | trng_rand (uint8_t *entropy_buf, size_t entropy_len, uint32_t timeout_us) |
| Generates a stream of entropy from which you can create a true random number from. | |
| bool trng_rand | ( | uint8_t * | entropy_buf, |
| size_t | entropy_len, | ||
| uint32_t | timeout_us ) |
Generates a stream of entropy from which you can create a true random number from.
This is a blocking function call with a specified timeout.
| entropy_buf | Buffer to store a stream of entropy. |
| entropy_len | Length of the entropy buffer. |
| timeout_us | How long to wait until timing out the operation. A timeout of TRNG_WAIT_FOREVER blocks forever. |
Definition at line 53 of file trng-arch.c.
Referenced by platform_init_stage_two().