2.8.4.2 DRV_CRYPTO_TRNG_ReadData()
TRNG_ERROR DRV_CRYPTO_TRNG_ReadData (uint8_t * data, uint32_t size)
Reads generated true random number and stores it in the provided buffer.
| data |
Buffer to store the TRNG data. |
| size |
Number of 4-bit words to read and store. |
Returns TRNG_NO_ERROR on success. Returns one of the TRNG_FAILED_TO_GENERATE / TRNG_EXEC_FIFO / TRNG_EXEC_STARTUP TRNG_EXEC_PROP / TRNG_EXEC_REP on fail. |
Note:
This function reads the specified amount of 4-bit words from the designated read address.
