trng.h File Reference
#include "core/crypto.h"

Go to the source code of this file.

Functions

error_t trngInit (void)
 TRNG module initialization. More...
 
error_t trngGetRandomData (uint8_t *data, size_t length)
 Get random data from the TRNG module. More...
 

Function Documentation

◆ trngGetRandomData()

error_t trngGetRandomData ( uint8_t *  data,
size_t  length 
)

Get random data from the TRNG module.

Parameters
[out]dataBuffer where to store random data
[in]lengthNumber of random bytes to generate

Definition at line 73 of file apm32f4xx_crypto_trng.c.

◆ trngInit()

error_t trngInit ( void  )

TRNG module initialization.

Returns
Error code

Definition at line 52 of file apm32f4xx_crypto_trng.c.