82 #ifndef ti_drivers_TRNG_TRNGXXF3HSM__include 83 #define ti_drivers_TRNG_TRNGXXF3HSM__include 88 #include <ti/drivers/Power.h> 92 #include <ti/drivers/dpl/HwiP.h> 93 #include <ti/drivers/dpl/SemaphoreP.h> 116 #define TRNG_STATUS_ALREADY_IN_SPECIFIED_NRBG_TYPE ((int_fast16_t)(TRNG_STATUS_RESERVED - 0)) 123 #define TRNG_STATUS_INVALID_INPUT_SIZE ((int_fast16_t)(TRNG_STATUS_RESERVED - 1)) 130 #define TRNG_STATUS_INVALID_KEY_ENCODING ((int_fast16_t)(TRNG_STATUS_RESERVED - 2)) 160 uint8_t *entropyBuffer;
161 uint32_t semaphoreTimeout;
162 size_t entropyGenerated;
163 size_t entropyRequested;
164 size_t rawEntropyBlocksRequested;
165 int_fast16_t returnStatus;
166 int_fast16_t hsmStatus;
169 } TRNGXXF3HSM_Object;
173 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) Definition: TRNGXXF3HSM.h:137
The CryptoKey type is an opaque representation of a cryptographic key.
uint8_t reserved1
Definition: TRNGXXF3HSM.h:146
int_fast16_t TRNGXXF3HSM_reseedHSMAsync()
Reseed the HSM IP DRBG engine.
TRNG Global configuration.
Definition: TRNG.h:453
CryptoKey datastructure.
Definition: CryptoKey.h:211
void(* TRNG_CryptoKeyCallbackFxn)(TRNG_Handle handle, int_fast16_t returnValue, CryptoKey *entropy)
The definition of a callback function used by the TRNG driver when TRNG_generateKey() is called with ...
Definition: TRNG.h:519
TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:488
int_fast16_t TRNGXXF3HSM_reseedHSM(TRNG_Handle handle)
Reseed the HSM IP DRBG engine.
TRNGXXF3HSM Hardware Attributes.
Definition: TRNGXXF3HSM.h:144
int_fast16_t TRNGXXF3HSM_switchNrbgMode(TRNG_Handle handle, TRNGXXF3HSM_NRBGMode nrbgMode)
Switches the TRNG driver NRBG Mode between CRNG-based or TRNG-based.
TRNGXXF3HSM_NRBGMode
Enum for the NRBG engine type.
Definition: TRNGXXF3HSM.h:135
Definition: TRNGXXF3HSM.h:138
void(* TRNG_RandomBytesCallbackFxn)(TRNG_Handle handle, int_fast16_t returnValue, uint8_t *randomBytes, size_t randomBytesSize)
The definition of a callback function used by the TRNG driver when TRNG_getRandomBytes() is called wi...
Definition: TRNG.h:534