RNG Cryptographic

This module includes functions that generates cryptographic random numbers.

Summary

Functions

otRandomCryptoFillBuffer(uint8_t *aBuffer, uint16_t aSize)
This function fills a given buffer with cryptographically secure random bytes.
otRandomCryptoMbedTlsContextGet(void)
mbedtls_ctr_drbg_context *
This function returns initialized mbedtls_ctr_drbg_context.

Functions

otRandomCryptoFillBuffer

otError otRandomCryptoFillBuffer(
  uint8_t *aBuffer,
  uint16_t aSize
)

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

Details
Parameters
[out] aBuffer
A pointer to a buffer to fill with the random bytes.
[in] aSize
Size of buffer (number of bytes to fill).

otRandomCryptoMbedTlsContextGet

mbedtls_ctr_drbg_context * otRandomCryptoMbedTlsContextGet(
  void
)

This function returns initialized mbedtls_ctr_drbg_context.

Details
Returns
A pointer to initialized mbedtls_ctr_drbg_context.