MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClRandom_Functions

Defines all functions of mcuxClRandom. More...

Functions

 MCUX_CSSL_FP_PROTECTED_TYPE (mcuxClRandom_Status_t) mcuxClRandom_init(mcuxClSession_Handle_t pSession
 Random data generator initialization function. More...
 

Variables

mcuxClRandom_Context_t pContext
 
mcuxClRandom_Context_t mcuxClRandom_Mode_t mode
 
uint8_t * pOut
 
uint8_t uint32_t outLength
 
uint32_t securityStrength
 

Detailed Description

Defines all functions of mcuxClRandom.

Function Documentation

◆ MCUX_CSSL_FP_PROTECTED_TYPE()

MCUX_CSSL_FP_PROTECTED_TYPE ( mcuxClRandom_Status_t  )

Random data generator initialization function.

Deprecated type for mcuxClSession protected status codes.

Deprecated type for RSA protected status codes.

Deprecated type for error codes used by code-flow protected PKC component functions.

Deprecated type for error codes used by code-flow protected mcuxClMemory component functions.

Deprecated type for error codes used by code-flow protected Math component functions.

Deprecated type for Key component error codes, returned by functions with code-flow protection.

Deprecated type for ELS driver protected status codes.

Deprecated type for mcuxClEcc component return codes.

Non-cryptographic PRNG data generation function.

Non-cryptographic PRNG initialization function.

Random data generator security strength check.

Random data generator self-test function.

Random data generator uninitialization function.

Random data generation function.

Random data generator reseed function.

This function performs the initialization of a random data generator. This operation initializes the Random context referenced in the session handle.

Parameters
[in]pSessionHandle for the current CL session.
[in]pContextPointer to a Random data context buffer large enough to hold the context for the selected mode
[in]modeMode of operation for random data generator.
Returns
status

This function performs the reseeding of a random data generator. This operation fetches a fresh seed from a TRNG and updates the state in the Random context referenced in the session handle.

Parameters
[in]pSessionHandle for the current CL session.
Returns
status

This function generates random data based on the information contained in the Random context referenced in the session handle.

Parameters
[in]pSessionHandle for the current CL session.
[out]pOutBuffer in which the generated random data must be written.
[in]outLengthNumber of random data bytes that must be written in the pOut buffer.
Returns
status

This function performs the cleanup of a random data generator. This operation cleans up the Random context referenced in the session handle.

Parameters
[in]pSessionHandle for the current CL session.
Returns
status

This function performs a series of selft-tests on the random data generator. These tests are performed on the random data generator defined by Random context referenced in the session handle.

Parameters
[in]pSessionHandle for the current CL session.
Returns
status

This function reports whether the the random data generator can provide the requested security strength.

Parameters
[in]pSessionHandle for the current CL session.
[in]securityStrengthRequested security strength in bits.
Returns
status

This function performs the initialization of the non-cryptographic random number generator.

Parameters
[in]pSessionHandle for the current CL session.
Returns
status

This function generates non-cryptographic random data based on the information contained in the Random context referenced in the session handle.

Parameters
[in]pSessionHandle for the current CL session.
[out]pOutBuffer in which the generated random data must be written.
[in]outLengthNumber of random data bytes that must be written in the pOut buffer.
Returns
status