Defines all functions of mcuxClRandom. More...
Defines all functions of mcuxClRandom.
mcuxClRandom_Status_t mcuxClRandom_init | ( | mcuxClSession_Handle_t | pSession, |
mcuxClRandom_Context_t | pContext, | ||
mcuxClRandom_Mode_t | mode | ||
) |
Random data generator initialization function.
This function performs the initialization of a random data generator. This operation initializes the Random context referenced in the session handle.
[in] | pSession | Handle for the current CL session. |
[in] | pContext | Pointer to a Random data context buffer large enough to hold the context for the selected mode |
[in] | mode | Mode of operation for random data generator. |
mcuxClRandom_Status_t mcuxClRandom_reseed | ( | mcuxClSession_Handle_t | pSession | ) |
Random data generator reseed function.
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.
[in] | pSession | Handle for the current CL session. |
mcuxClRandom_Status_t mcuxClRandom_generate | ( | mcuxClSession_Handle_t | pSession, |
uint8_t * | pOut, | ||
uint32_t | outLength | ||
) |
Random data generation function.
This function generates random data based on the information contained in the Random context referenced in the session handle.
[in] | pSession | Handle for the current CL session. |
[out] | pOut | Buffer in which the generated random data must be written. |
[in] | outLength | Number of random data bytes that must be written in the pOut buffer. |
mcuxClRandom_Status_t mcuxClRandom_uninit | ( | mcuxClSession_Handle_t | pSession | ) |
Random data generator uninitialization function.
This function performs the cleanup of a random data generator. This operation cleans up the Random context referenced in the session handle.
[in] | pSession | Handle for the current CL session. |
mcuxClRandom_Status_t mcuxClRandom_selftest | ( | mcuxClSession_Handle_t | pSession, |
mcuxClRandom_Mode_t | mode | ||
) |
Random data generator self-test function.
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.
[in] | pSession | Handle for the current CL session. |
mcuxClRandom_Status_t mcuxClRandom_checkSecurityStrength | ( | mcuxClSession_Handle_t | pSession, |
uint32_t | securityStrength | ||
) |
Random data generator security strength check.
This function reports whether the the random data generator can provide the requested security strength.
[in] | pSession | Handle for the current CL session. |
[in] | securityStrength | Requested security strength in bits. |
mcuxClRandom_Status_t mcuxClRandom_ncInit | ( | mcuxClSession_Handle_t | pSession | ) |
Non-cryptographic PRNG initialization function.
This function performs the initialization of the non-cryptographic random number generator.
[in] | pSession | Handle for the current CL session. |
mcuxClRandom_Status_t mcuxClRandom_ncGenerate | ( | mcuxClSession_Handle_t | pSession, |
uint8_t * | pOut, | ||
uint32_t | outLength | ||
) |
Non-cryptographic PRNG data generation function.
This function generates non-cryptographic random data
[in] | pSession | Handle for the current CL session. |
[out] | pOut | Buffer in which the generated random data must be written. |
[in] | outLength | Number of random data bytes that must be written in the pOut buffer. |