nRF5 SDK for Thread and Zigbee v4.0.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

This module includes the platform abstraction for entropy generation. More...

Functions

otError otPlatEntropyGet (uint8_t *aOutput, uint16_t aOutputLength)
 

Detailed Description

This module includes the platform abstraction for entropy generation.

Function Documentation

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]aOutputA pointer to where the true random values are placed. Must not be NULL.
[in]aOutputLengthSize of aBuffer.
Return values
OT_ERROR_NONESuccessfully filled aBuffer with true random values.
OT_ERROR_FAILEDFailed to fill aBuffer with true random values.
OT_ERROR_INVALID_ARGSaBuffer was set to NULL.