MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClEls_Rng.h File Reference

ELS header for random number generation. More...

#include <mcuxClConfig.h>
#include <mcuxClEls_Common.h>

Go to the source code of this file.

Macros

#define MCUXCLELS_RNG_DTRNG_CONFIG_SIZE
 Size of DTRNG configuration.
 
#define MCUXCLELS_RNG_DTRNG_EVAL_CONFIG_SIZE
 Size of DTRNG characterization data.
 
#define MCUXCLELS_RNG_DTRNG_EVAL_RESULT_SIZE
 Size of DTRNG characterization result.
 
#define MCUXCLELS_RNG_DRBG_TEST_EXTRACT_OUTPUT_MIN_SIZE
 Minimum output size of mcuxClEls_Rng_DrbgTestExtract_Async.
 
#define MCUXCLELS_RNG_DRBG_TEST_EXTRACT_OUTPUT_MAX_SIZE
 Maximum output size of mcuxClEls_Rng_DrbgTestExtract_Async.
 
#define MCUXCLELS_RNG_DRBG_TEST_MODE_INSTANTIATE
 Command options value for DRBG Test Instantiate command. For internal use.
 
#define MCUXCLELS_RNG_DRBG_TEST_MODE_EXTRACT
 Command options value for DRBG Test Extract command. For internal use.
 
#define MCUXCLELS_RNG_DRBG_TEST_MODE_AES_ECB
 Command options value for DRBG Test AES-ECB command. For internal use.
 
#define MCUXCLELS_RNG_DRBG_TEST_MODE_AES_CTR
 Command options value for DRBG Test AES-CTR command. For internal use.
 

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.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_Rng_DrbgTestInstantiate_Async (uint8_t const *pEntropy)
 Instantiates the DRBG in test mode.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_Rng_DrbgTestExtract_Async (uint8_t *pOutput, size_t outputLength)
 Performs a DRBG extraction.
 
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.
 
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.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_Rng_Dtrng_ConfigLoad_Async (uint8_t const *pInput)
 Loads a configuration of the ELS DTRNG.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_Rng_Dtrng_ConfigEvaluate_Async (uint8_t const *pInput, uint8_t *pOutput)
 Performs characterization of the ELS DTRNG.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_Prng_GetRandomWord (uint32_t *pWord)
 Returns one random word from the ELS PRNG.
 
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.
 

Detailed Description

ELS header for random number generation.

This header exposes functions to configure the ELS RNGs (DRBG and DTRNG) and to generate random data.