|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Secure random bytes: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_random_register() (ADR-005). More...
#include "rte/oal/random/rte_random.h"#include "rte/utils/lifecycle/rte_lifecycle.h"#include "rte_osadapter/random/rte_osadapter_random.h"Go to the source code of this file.
Functions | |
| rte_status_t | rte_osadapter_random_register (const rte_osadapter_random_t *osadapter) |
| Registers the OSAdapter random implementation. | |
| rte_status_t | rte_random_fill (uint8_t *out, size_t len) |
Fills out with len cryptographically secure random bytes from the registered OSAdapter. | |
Variables | |
| static const rte_osadapter_random_t * | s_osadapter = NULL |
| Currently registered OSAdapter, or NULL if none (ADR-005). | |
Secure random bytes: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_random_register() (ADR-005).
Definition in file rte_random.c.
| rte_status_t rte_osadapter_random_register | ( | const rte_osadapter_random_t * | adapter | ) |
Registers the OSAdapter random implementation.
Global functions
| adapter | Pointer to random operations vtable. |
REQ-OAL-RANDOM-011
Definition at line 16 of file rte_random.c.
|
static |
Currently registered OSAdapter, or NULL if none (ADR-005).
Local variables declarations
Definition at line 13 of file rte_random.c.