Contiki-NG
Loading...
Searching...
No Matches
True Random Number Generator for CC13xx/CC26xx.

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.
 

Detailed Description

Function Documentation

◆ trng_rand()

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.

Parameters
entropy_bufBuffer to store a stream of entropy.
entropy_lenLength of the entropy buffer.
timeout_usHow long to wait until timing out the operation. A timeout of TRNG_WAIT_FOREVER blocks forever.
Returns
true if successful; else, false.

Definition at line 53 of file trng-arch.c.

Referenced by platform_init_stage_two().