Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_random.h
Go to the documentation of this file.
1
16#ifndef RTE_OAL_RANDOM_H
17#define RTE_OAL_RANDOM_H
18
19#include <stddef.h>
20#include <stdint.h>
21
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
29#define RTE_RANDOM_MAX_REQUEST 256U
30
44rte_status_t rte_random_fill(uint8_t *out, size_t len);
45
46/*
47 * The OSAdapter vtable (rte_osadapter_random_t) and rte_osadapter_random_register() live in
48 * rte_osadapter/random/rte_osadapter_random.h (ADR-021). This header is the consumer-facing surface only.
49 */
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* RTE_OAL_RANDOM_H */
56 /* RANDOM */
rte_status_t rte_random_fill(uint8_t *out, size_t len)
Fills out with len cryptographically secure random bytes from the registered OSAdapter.
Definition rte_random.c:34
rte_status_t
Common result/status codes.
Definition rte_status.h:27
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...