nRF5 SDK for Thread and Zigbee v4.0.0
Functions
RNG Cryptographic

This module includes functions that generates cryptographic random numbers. More...

Functions

otError otRandomCryptoFillBuffer (uint8_t *aBuffer, uint16_t aSize)
 
mbedtls_ctr_drbg_context * otRandomCryptoMbedTlsContextGet (void)
 

Detailed Description

This module includes functions that generates cryptographic random numbers.

Function Documentation

otError otRandomCryptoFillBuffer ( uint8_t *  aBuffer,
uint16_t  aSize 
)

This function fills a given buffer with cryptographically secure random bytes.

Parameters
[out]aBufferA pointer to a buffer to fill with the random bytes.
[in]aSizeSize of buffer (number of bytes to fill).
mbedtls_ctr_drbg_context* otRandomCryptoMbedTlsContextGet ( void  )

This function returns initialized mbedtls_ctr_drbg_context.

Returns
A pointer to initialized mbedtls_ctr_drbg_context.

Documentation feedback | Developer Zone | Subscribe | Updated