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)) 118 #ifndef TRNGCC26XX_ENTROPY_POOL_SIZE 119 #define TRNGCC26XX_ENTROPY_POOL_SIZE (32 / sizeof(uint64_t)) 170 uint32_t samplesPerCycle;
172 uint8_t *entropyBuffer;
173 uint32_t semaphoreTimeout;
174 size_t entropyGenerated;
175 size_t entropyRequested;
176 int_fast16_t returnStatus;
180 SemaphoreP_Struct operationSemaphore;
The CryptoKey type is an opaque representation of a cryptographic key.
TRNGCC26XX Hardware Attributes.
Definition: TRNGCC26XX.h:128
TRNG Global configuration.
Definition: TRNG.h:320
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:384
TRNG_ReturnBehavior
The way in which TRNG function calls return after generating the requested entropy.
Definition: TRNG.h:354
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:153
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:147
uint8_t intPriority
Crypto Peripheral's interrupt priority.
Definition: TRNGCC26XX.h:141
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:401