MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClRandomModes_PatchMode_CtrDrbg_AES256_DRG3_example.c File Reference

Example for the mcuxClRandomModes component. More...

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

Functions

static mcuxClRandom_Status_t RNG_Patch_function (mcuxClSession_Handle_t session, mcuxClRandom_Context_t pCustomCtx, uint8_t *pOut, uint32_t outLength)
 
 MCUXCLEXAMPLE_FUNCTION (mcuxClRandomModes_PatchMode_CtrDrbg_AES256_DRG3_example)
 Performs an example usage of the mcuxClRandom and mcuxClRandomModes components with patch mode. More...
 

Detailed Description

Example for the mcuxClRandomModes component.

Function Documentation

◆ RNG_Patch_function()

static mcuxClRandom_Status_t RNG_Patch_function ( mcuxClSession_Handle_t  session,
mcuxClRandom_Context_t  pCustomCtx,
uint8_t *  pOut,
uint32_t  outLength 
)
static

Destroy Session and cleanup Session

Examples
mcuxClRandomModes_PatchMode_CtrDrbg_AES256_DRG3_example.c.

◆ MCUXCLEXAMPLE_FUNCTION()

MCUXCLEXAMPLE_FUNCTION ( mcuxClRandomModes_PatchMode_CtrDrbg_AES256_DRG3_example  )

Performs an example usage of the mcuxClRandom and mcuxClRandomModes components with patch mode.

Return values
trueThe example code completed successfully
falseThe example code failed

Initialize ELS, Enable the ELS

Destroy Session and cleanup Session

Disable the ELS

Examples
mcuxClRandomModes_PatchMode_CtrDrbg_AES256_DRG3_example.c.