73 #ifndef ti_drivers_TRNG_TRNGCC26XX__include 74 #define ti_drivers_TRNG_TRNGCC26XX__include 83 #include <ti/drivers/dpl/HwiP.h> 84 #include <ti/drivers/dpl/SemaphoreP.h> 91 #define TRNGCC26XX_SAMPLES_PER_CYCLE_MIN 256 95 #define TRNGCC26XX_SAMPLES_PER_CYCLE_DEFAULT 240000 97 #define TRNGCC26XX_SAMPLES_PER_CYCLE_MAX 16777216 107 #define TRNGCC26XX_MIN_BYTES_PER_ITERATION (2 * sizeof(uint32_t)) 117 #ifndef TRNGCC26XX_ENTROPY_POOL_SIZE 118 #define TRNGCC26XX_ENTROPY_POOL_SIZE (32 / sizeof(uint64_t)) 173 uint32_t samplesPerCycle;
175 uint8_t *entropyBuffer;
176 uint32_t semaphoreTimeout;
177 size_t entropyGenerated;
178 size_t entropyRequested;
179 int_fast16_t returnStatus;
183 SemaphoreP_Struct operationSemaphore;
The CryptoKey type is an opaque representation of a cryptographic key.
TRNGCC26XX Hardware Attributes.
Definition: TRNGCC26XX.h:127
TRNG Global configuration.
Definition: TRNG.h:328
CryptoKey datastructure.
Definition: CryptoKey.h:192
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:394
TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:363
int_fast16_t TRNGCC26XX_setSamplesPerCycle(TRNG_Handle handle, uint32_t samplesPerCycle)
Sets the number of entropy generation cycles before the results are returned.
uint32_t samplesPerCycle
TRNG Maximum Samples per Cycle. Changes the maximum number of randomness samples in each entropy gene...
Definition: TRNGCC26XX.h:155
uint32_t swiPriority
TRNG SWI priority. The higher the number, the higher the priority. The minimum is 0 and the maximum i...
Definition: TRNGCC26XX.h:149
uint8_t intPriority
Crypto Peripheral's interrupt priority.
Definition: TRNGCC26XX.h:142
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:409