MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClRandomModes_Functions_TestMode

Random operations in TEST_MODE. More...

Functions

mcuxClRandom_Status_t mcuxClRandomModes_createTestFromNormalMode (mcuxClRandom_ModeDescriptor_t *pTestMode, mcuxClRandom_Mode_t normalMode, const uint32_t *const pCustomSeed)
 This function creates a TEST_MODE descriptor from an existing NORMAL_MODE one.
mcuxClRandom_Status_t mcuxClRandomModes_updateEntropyInput (mcuxClRandom_ModeDescriptor_t *pTestMode, const uint32_t *const pCustomSeed)
 This function updates the custom seed pointer in a TEST_MODE descriptor.

Detailed Description

Random operations in TEST_MODE.

Function Documentation

◆ mcuxClRandomModes_createTestFromNormalMode()

mcuxClRandom_Status_t mcuxClRandomModes_createTestFromNormalMode ( mcuxClRandom_ModeDescriptor_t * pTestMode,
mcuxClRandom_Mode_t normalMode,
const uint32_t *const pCustomSeed )

This function creates a TEST_MODE descriptor from an existing NORMAL_MODE one.

This function creates a TEST_MODE descriptor from an existing NORMAL_MODE one. The function expects as input a pointer to a buffer to which the user of the CL shall write a custom seed to be used for (re)seeding the DRBG. The function shall be called prior to an mcuxClRandom_init call.

Parameters
testMode[out]Pointer to TEST_MODE descriptor to be initialized
normalMode[in]Pointer to NORMAL_MODE descriptor to be used as basis for the initialization
pCustomSeed[in]Pointer to memory buffer containing a custom seed for DRBG (re)seeding
Returns
status
Examples
mcuxClRandomModes_TestMode_CtrDrbg_AES256_DRG4_example.c.

◆ mcuxClRandomModes_updateEntropyInput()

mcuxClRandom_Status_t mcuxClRandomModes_updateEntropyInput ( mcuxClRandom_ModeDescriptor_t * pTestMode,
const uint32_t *const pCustomSeed )

This function updates the custom seed pointer in a TEST_MODE descriptor.

Parameters
testMode[in]Pointer to TEST_MODE descriptor
pCustomSeed[in]Pointer to memory buffer containing custom seed for DRBG (re)seeding
Returns
  • MCUXCLRANDOM_STATUS_OK if the TEST_MODE descriptor generation was successful
Examples
mcuxClRandomModes_TestMode_CtrDrbg_AES256_DRG4_example.c.