1
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
42
43
44
45
46
47
48
49
52
53
55
56
57
58
63
64
65
66
73
74
75
76
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
104
105
106
107
108
109
110
/* ... */
/* ... */
#ifndef MBEDTLS_ENTROPY_POLL_H
#define MBEDTLS_ENTROPY_POLL_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/* ... */
#define MBEDTLS_ENTROPY_MIN_PLATFORM 32
#define MBEDTLS_ENTROPY_MIN_HAVEGE 32
#define MBEDTLS_ENTROPY_MIN_HARDCLOCK 4
#if !defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
#define MBEDTLS_ENTROPY_MIN_HARDWARE 32
#endif
/* ... */
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
int mbedtls_null_entropy_poll( void *data,
unsigned char *output, size_t len, size_t *olen );/* ... */
#endif
#if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
/* ... */
int mbedtls_platform_entropy_poll( void *data,
unsigned char *output, size_t len, size_t *olen );/* ... */
#endif
#if defined(MBEDTLS_HAVEGE_C)
/* ... */
int mbedtls_havege_poll( void *data,
unsigned char *output, size_t len, size_t *olen );/* ... */
#endif
#if defined(MBEDTLS_TIMING_C)
/* ... */
int mbedtls_hardclock_poll( void *data,
unsigned char *output, size_t len, size_t *olen );/* ... */
#endif
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
/* ... */
int mbedtls_hardware_poll( void *data,
unsigned char *output, size_t len, size_t *olen );/* ... */
#endif
#if defined(MBEDTLS_ENTROPY_NV_SEED)
/* ... */
int mbedtls_nv_seed_poll( void *data,
unsigned char *output, size_t len, size_t *olen );/* ... */
#endif
#ifdef __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif