MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClRandom_PRNG_Patch_example.c File Reference

Example for the mcuxClRandom component. More...

#include <mcuxClToolchain.h>
#include <mcuxClRandom.h>
#include <mcuxClRandomModes.h>
#include <mcuxClSession.h>
#include <mcuxClBuffer.h>
#include <mcuxCsslFlowProtection.h>
#include <mcuxClCore_FunctionIdentifiers.h>
#include <mcuxClExample_Session_Helper.h>
#include <mcuxClCore_Examples.h>
#include <mcuxClExample_ELS_Helper.h>

Functions

static mcuxClRandom_Status_t prngPatchFunction (void *pCustomState, mcuxCl_Buffer_t pOut, uint32_t outLength)
 
 MCUXCLEXAMPLE_FUNCTION (mcuxClRandom_PRNG_Patch_example)
 Performs an example usage of the mcuxClRandom component.
 

Variables

static uint32_t indexRandomData
 
static const ALIGNED uint8_t randomData []
 

Detailed Description

Example for the mcuxClRandom component.

Function Documentation

◆ MCUXCLEXAMPLE_FUNCTION()

MCUXCLEXAMPLE_FUNCTION ( mcuxClRandom_PRNG_Patch_example  )

Performs an example usage of the mcuxClRandom component.

Return values
trueThe example code completed successfully
falseThe example code failed

Initialize ELS, Enable the ELS

Destroy Session and cleanup Session

Disable the ELS