288 #ifndef ti_drivers_TRNG__include 289 #define ti_drivers_TRNG__include 313 #define TRNG_STATUS_RESERVED (-32) 321 #define TRNG_STATUS_SUCCESS (0) 329 #define TRNG_STATUS_ERROR (-1) 339 #define TRNG_STATUS_RESOURCE_UNAVAILABLE (-2) 415 int_fast16_t returnValue,
TRNG_Handle TRNG_open(uint_least8_t index, TRNG_Params *params)
This function opens a given TRNG peripheral.
enum TRNG_ReturnBehavior_ TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
struct TRNG_Config_ * TRNG_Handle
A handle that is returned from a TRNG_open() call.
Definition: TRNG.h:344
The CryptoKey type is an opaque representation of a cryptographic key.
int_fast16_t TRNG_generateEntropy(TRNG_Handle handle, CryptoKey *entropy)
Generate a random number.
struct TRNG_Params_ TRNG_Params
TRNG Parameters.
CryptoKey datastructure.
Definition: CryptoKey.h:210
void * object
Definition: TRNG.h:397
struct TRNG_Config_ TRNG_Config
TRNG Global configuration.
void TRNG_close(TRNG_Handle handle)
Function to close a TRNG peripheral specified by the TRNG handle.
TRNG_ReturnBehavior_
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:367
int_fast16_t TRNG_generateEntropyNonZeroLessThan(TRNG_Handle handle, CryptoKey *entropy, const uint8_t *upperBound)
Generate a random number smaller than a number but greater than 0.
const TRNG_Params TRNG_defaultParams
Default TRNG_Params structure.
void TRNG_Params_init(TRNG_Params *params)
Function to initialize the TRNG_Params struct to its defaults.
void * custom
Definition: TRNG.h:432
void TRNG_init(void)
This function initializes the TRNG module.
TRNG Global configuration.
Definition: TRNG.h:395
TRNG Parameters.
Definition: TRNG.h:426
TRNG_CallbackFxn callbackFxn
Definition: TRNG.h:428
void(* TRNG_CallbackFxn)(TRNG_Handle handle, int_fast16_t returnValue, CryptoKey *entropy)
The definition of a callback function used by the TRNG driver when used in TRNG_RETURN_BEHAVIOR_CALLB...
Definition: TRNG.h:414
int_fast16_t TRNG_generateEntropyLessThan(TRNG_Handle handle, CryptoKey *entropy, const uint8_t *upperBound)
Generate a random number smaller than a number.
void const * hwAttrs
Definition: TRNG.h:400
uint32_t timeout
Definition: TRNG.h:429
TRNG_ReturnBehavior returnBehavior
Definition: TRNG.h:427