![]() |
![]() |
TI-OpenThread
1.08.06.06
|
This file implements an entropy source based on TRNG.
#include <openthread/config.h>
#include <utils/code_utils.h>
#include <ti/devices/DeviceFamily.h>
#include <DeviceFamily_constructPath(driverlib/prcm.h)>
#include <DeviceFamily_constructPath(driverlib/trng.h)>
#include <openthread/platform/entropy.h>
#include <ti/drivers/TRNG.h>
#include <ti/drivers/cryptoutils/cryptokey/CryptoKeyPlaintext.h>
#include "ti_drivers_config.h"
#include <assert.h>
Functions | |
static int | getRandom (uint8_t *aOutput, size_t aLen) |
otError | otPlatEntropyGet (uint8_t *aOutput, uint16_t aOutputLength) |
void | platformRandomInit (void) |
void | platformRandomProcess (void) |
Variables | |
TRNG_Handle | TRNG_handle |
|
static |
References TRNG_handle.
Referenced by otPlatEntropyGet().
void platformRandomInit | ( | void | ) |
Function documented in system.h
References TRNG_handle.
void platformRandomProcess | ( | void | ) |
Function documented in system.h
otError otPlatEntropyGet | ( | uint8_t * | aOutput, |
uint16_t | aOutputLength | ||
) |
Function documented in platform/entropy.h
References getRandom().
TRNG_Handle TRNG_handle |
Referenced by getRandom(), and platformRandomInit().