This module includes the platform abstraction for entropy generation.

Functions

otError otPlatEntropyGet (uint8_t *aOutput, uint16_t aOutputLength)
Fill buffer with entropy.

Detailed Description

This module includes the platform abstraction for entropy generation.

Function Documentation

otPlatEntropyGet()

otError otPlatEntropyGet ( uint8_t * aOutput,
uint16_t aOutputLength
)

Fill buffer with entropy.

This function MUST be implemented using a true random number generator (TRNG).

Parameters
[out] aOutput A pointer to where the true random values are placed. Must not be NULL.
[in] aOutputLength Size of aBuffer .
Return values
OT_ERROR_NONE Successfully filled aBuffer with true random values.
OT_ERROR_FAILED Failed to fill aBuffer with true random values.
OT_ERROR_INVALID_ARGS aBuffer was set to NULL.