Safe API Framework
0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
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
22
#include "
rte/utils/status/rte_status.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
29
#define RTE_RANDOM_MAX_REQUEST 256U
30
44
rte_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_random_fill
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
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
include
rte
oal
random
rte_random.h
Generated by
1.18.0