ELS header for random number generation. More...
Go to the source code of this file.
Macros | |
#define | MCUXCLELS_RNG_DTRNG_CONFIG_SIZE |
Size of DTRNG configuration. More... | |
#define | MCUXCLELS_RNG_DTRNG_EVAL_CONFIG_SIZE |
Size of DTRNG characterization data. More... | |
#define | MCUXCLELS_RNG_DTRNG_EVAL_RESULT_SIZE |
Size of DTRNG characterization result. More... | |
#define | MCUXCLELS_RNG_DRBG_TEST_EXTRACT_OUTPUT_MIN_SIZE |
Minimum output size of mcuxClEls_Rng_DrbgTestExtract_Async. More... | |
#define | MCUXCLELS_RNG_DRBG_TEST_EXTRACT_OUTPUT_MAX_SIZE |
Maximum output size of mcuxClEls_Rng_DrbgTestExtract_Async. More... | |
#define | MCUXCLELS_RNG_DRBG_TEST_MODE_INSTANTIATE |
Command options value for DRBG Test Instantiate command. For internal use. More... | |
#define | MCUXCLELS_RNG_DRBG_TEST_MODE_EXTRACT |
Command options value for DRBG Test Extract command. For internal use. More... | |
#define | MCUXCLELS_RNG_DRBG_TEST_MODE_AES_ECB |
Command options value for DRBG Test AES-ECB command. For internal use. More... | |
#define | MCUXCLELS_RNG_DRBG_TEST_MODE_AES_CTR |
Command options value for DRBG Test AES-CTR command. For internal use. More... | |
Functions | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Rng_DrbgRequest_Async (uint8_t *pOutput, size_t outputLength) |
Writes random data from the ELS DRBG to the given buffer. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Rng_DrbgTestInstantiate_Async (uint8_t const *pEntropy) |
Instantiates the DRBG in test mode. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Rng_DrbgTestExtract_Async (uint8_t *pOutput, size_t outputLength) |
Performs a DRBG extraction. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Rng_DrbgTestAesEcb_Async (uint8_t const *pDataKey, uint8_t *pOutput) |
Encrypts data using the AES-ECB engine of the DRBG. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Rng_DrbgTestAesCtr_Async (uint8_t const *pData, size_t dataLength, uint8_t const *pIvKey, uint8_t *pOutput) |
Encrypts data using the AES-CTR engine of the DRBG. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Rng_Dtrng_ConfigLoad_Async (uint8_t const *pInput) |
Loads a configuration of the ELS DTRNG. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Rng_Dtrng_ConfigEvaluate_Async (uint8_t const *pInput, uint8_t *pOutput) |
Performs characterization of the ELS DTRNG. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Prng_GetRandomWord (uint32_t *pWord) |
Returns one random word from the ELS PRNG. More... | |
MCUXCLELS_API mcuxClEls_Status_t | mcuxClEls_Prng_GetRandom (uint8_t *pOutput, size_t outputLength) |
Writes random data from the ELS PRNG to the given buffer. More... | |
ELS header for random number generation.
This header exposes functions to configure the ELS RNGs (DRBG and DTRNG) and to generate random data.