Mbed OS Reference
Loading...
Searching...
No Matches
default_random_seed.h
1
2
3#ifndef DEFAULT_RANDOM_SEED_H
4#define DEFAULT_RANDOM_SEED_H
5
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12
13
14/** Read seed from the secure storage.
15 *
16 * This function will be the default function for reading the Random seed.
17 *
18 * @param buf[out] buffer to hold the seed value from the secure storage
19 * @param buf_len[in] input buffer length
20 *
21 * @returns
22 * secure storage API return value.
23 *
24 */
25int mbed_default_seed_read(unsigned char *buf, size_t buf_len);
26
27/** Writes seed to the secure storage.
28 *
29 * This function will be the default function for writing the Random seed.
30 *
31 * @param buf[in] buffer to the seed value
32 * @param buf_len[in] input buffer length
33 *
34 * @returns
35 * secure storage API return value.
36 */
37int mbed_default_seed_write(unsigned char *buf, size_t buf_len);
38
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* DEFAULT_RANDOM_SEED_H */