Header file of true random number generator.
More...
#include <stdint.h>
Header file of true random number generator.
- Author
- Mihail Chindris (mihai.nosp@m.l.ch.nosp@m.indri.nosp@m.s@an.nosp@m.alog..nosp@m.com)
- Copyright
- Copyright 2020(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ no_os_trng_fill_buffer()
| int no_os_trng_fill_buffer |
( |
struct no_os_trng_desc * | desc, |
|
|
uint8_t * | buff, |
|
|
uint32_t | len ) |
Fill buffer with rng data.
- Parameters
-
| desc | - The TRNG descriptor. |
| buff | - Buffer to be filled |
| len | - Size of the buffer |
- Returns
- 0 in case of success, -1 otherwise.
◆ no_os_trng_init()
Initialize the TRNG.
- Parameters
-
| desc | - The TRNG descriptor. |
| param | - The structure that contains the TRNG parameters. |
- Returns
- 0 in case of success, -1 otherwise.
◆ no_os_trng_remove()
Free the resources allocated by no_os_trng_init().
- Parameters
-
| desc | - The TRNG descriptor. |
- Returns
- 0 in case of success, -1 otherwise.