TI-OpenThread  1.08.06.06
Functions | Variables
LP_CC1352P7_4/thread/empty_ftd/platform/entropy.c File Reference

Detailed Description

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>
+ Include dependency graph for LP_CC1352P7_4/thread/empty_ftd/platform/entropy.c:

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
 

Function Documentation

§ getRandom()

static int getRandom ( uint8_t *  aOutput,
size_t  aLen 
)
static

References TRNG_handle.

Referenced by otPlatEntropyGet().

§ platformRandomInit()

void platformRandomInit ( void  )

Function documented in system.h

References TRNG_handle.

§ platformRandomProcess()

void platformRandomProcess ( void  )

Function documented in system.h

§ otPlatEntropyGet()

otError otPlatEntropyGet ( uint8_t *  aOutput,
uint16_t  aOutputLength 
)

Function documented in platform/entropy.h

References getRandom().

Variable Documentation

§ TRNG_handle

TRNG_Handle TRNG_handle

Referenced by getRandom(), and platformRandomInit().

© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale