82 #ifndef ti_drivers_TRNG_TRNGLPF3HSM__include 83 #define ti_drivers_TRNG_TRNGLPF3HSM__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 } TRNGLPF3HSM_Object;
173 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) Definition: TRNGLPF3HSM.h:138
int_fast16_t TRNGLPF3HSM_reseedHSM(TRNG_Handle handle)
Reseed the HSM IP DRBG engine.
The CryptoKey type is an opaque representation of a cryptographic key.
Definition: TRNGLPF3HSM.h:137
TRNG Global configuration.
Definition: TRNG.h:453
TRNGLPF3HSM Hardware Attributes.
Definition: TRNGLPF3HSM.h:144
CryptoKey datastructure.
Definition: CryptoKey.h:211
TRNGLFP3HSM_NRBGMode
Enum for the NRBG engine type.
Definition: TRNGLPF3HSM.h:135
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 TRNGLPF3HSM_switchNrbgMode(TRNG_Handle handle, TRNGLFP3HSM_NRBGMode nrbgMode)
Switches the TRNG driver NRBG Mode between CRNG-based or TRNG-based.
int_fast16_t TRNGLPF3HSM_reseedHSMAsync()
Reseed the HSM IP DRBG engine.
uint8_t reserved1
Definition: TRNGLPF3HSM.h:146
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