MCUX CLNS
MCUX Crypto Library Normal Secure
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. 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 MCUX_CSSL_FP_PROTECTED_TYPE (mcuxClEls_Status_t) mcuxClEls_Rng_DrbgRequest_Async(uint8_t *pOutput
 Writes random data from the ELS DRBG to the given buffer. More...
 

Variables

MCUXCLELS_API size_t outputLength
 
MCUXCLELS_API uint8_t * pOutput
 
MCUXCLELS_API size_t dataLength
 
MCUXCLELS_API size_t uint8_t const * pIvKey
 

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.