mbed TLS v1.3.11
entropy_poll.h
Go to the documentation of this file.
1 
24 #ifndef POLARSSL_ENTROPY_POLL_H
25 #define POLARSSL_ENTROPY_POLL_H
26 
27 #if !defined(POLARSSL_CONFIG_FILE)
28 #include "config.h"
29 #else
30 #include POLARSSL_CONFIG_FILE
31 #endif
32 
33 #include <stddef.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /*
40  * Default thresholds for built-in sources
41  */
42 #define ENTROPY_MIN_PLATFORM 128
43 #define ENTROPY_MIN_HAVEGE 128
44 #define ENTROPY_MIN_HARDCLOCK 32
46 #if !defined(POLARSSL_NO_PLATFORM_ENTROPY)
47 
50 int platform_entropy_poll( void *data,
51  unsigned char *output, size_t len, size_t *olen );
52 #endif
53 
54 #if defined(POLARSSL_HAVEGE_C)
55 
60 int havege_poll( void *data,
61  unsigned char *output, size_t len, size_t *olen );
62 #endif
63 
64 #if defined(POLARSSL_TIMING_C)
65 
68 int hardclock_poll( void *data,
69  unsigned char *output, size_t len, size_t *olen );
70 #endif
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* entropy_poll.h */
Configuration options (set of defines)
int platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen)
Platform-specific entropy poll callback.
int hardclock_poll(void *data, unsigned char *output, size_t len, size_t *olen)
hardclock-based entropy poll callback