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

Random operations in PATCH_MODE. More...

Typedefs

typedef mcuxClRandom_Status_t(* mcuxClRandomModes_CustomGenerateAlgorithm_t) (mcuxClSession_Handle_t session, mcuxClRandom_Context_t pCustomCtx, mcuxCl_Buffer_t pOut, uint32_t outLength)

Functions

mcuxClRandom_Status_t mcuxClRandomModes_createPatchMode (mcuxClRandom_ModeDescriptor_t *patchMode, mcuxClRandomModes_CustomGenerateAlgorithm_t customGenerateAlgorithm, mcuxClRandom_Context_t pCustomCtx, uint32_t securityStrength)
 This function creates a PATCH_MODE descriptor.

Detailed Description

Random operations in PATCH_MODE.

Function Documentation

◆ mcuxClRandomModes_createPatchMode()

mcuxClRandom_Status_t mcuxClRandomModes_createPatchMode ( mcuxClRandom_ModeDescriptor_t * patchMode,
mcuxClRandomModes_CustomGenerateAlgorithm_t customGenerateAlgorithm,
mcuxClRandom_Context_t pCustomCtx,
uint32_t securityStrength )

This function creates a PATCH_MODE descriptor.

This function creates a PATCH_MODE descriptor. The function expects as input a custom function to be used inside the CL functions for random number generation as well as a pointer to a context buffer which can be used by the custom generate function. The custom generate function may also use all CPU workarea allocated for the mcuxClRandom_generate function. The function shall be called prior to an mcuxClRandom_init call.

Parameters
patchMode[out]Pointer to PATCH_MODE descriptor to be initialized
customGenerateAlgorithm[in]Pointer to the custom generate function
pCustomCtx[in]Pointer to a custom context which shall be used by the passed custom generate function
securityStrength[in]Security level for which the patch DRBG shall be used
Returns
status
Examples
mcuxClRandomModes_PatchMode_CtrDrbg_AES256_DRG3_example.c.