mbed TLS v2.2.0
entropy_poll.h
Go to the documentation of this file.
1 
23 #ifndef MBEDTLS_ENTROPY_POLL_H
24 #define MBEDTLS_ENTROPY_POLL_H
25 
26 #if !defined(MBEDTLS_CONFIG_FILE)
27 #include "config.h"
28 #else
29 #include MBEDTLS_CONFIG_FILE
30 #endif
31 
32 #include <stddef.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*
39  * Default thresholds for built-in sources, in bytes
40  */
41 #define MBEDTLS_ENTROPY_MIN_PLATFORM 32
42 #define MBEDTLS_ENTROPY_MIN_HAVEGE 32
43 #define MBEDTLS_ENTROPY_MIN_HARDCLOCK 4
44 #define MBEDTLS_ENTROPY_MIN_HARDWARE 32
46 #if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
47 
50 int mbedtls_platform_entropy_poll( void *data,
51  unsigned char *output, size_t len, size_t *olen );
52 #endif
53 
54 #if defined(MBEDTLS_HAVEGE_C)
55 
60 int mbedtls_havege_poll( void *data,
61  unsigned char *output, size_t len, size_t *olen );
62 #endif
63 
64 #if defined(MBEDTLS_TIMING_C)
65 
68 int mbedtls_hardclock_poll( void *data,
69  unsigned char *output, size_t len, size_t *olen );
70 #endif
71 
72 #if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
73 
81 int mbedtls_hardware_poll( void *data,
82  unsigned char *output, size_t len, size_t *olen );
83 #endif
84 
85 #ifdef __cplusplus
86 }
87 #endif
88 
89 #endif /* entropy_poll.h */
Compatibility names (set of defines)