PolarSSL v1.2.9
entropy_poll.h
Go to the documentation of this file.
1 
27 #ifndef POLARSSL_ENTROPY_POLL_H
28 #define POLARSSL_ENTROPY_POLL_H
29 
30 #include <string.h>
31 
32 #include "config.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*
39  * Default thresholds for built-in sources
40  */
41 #define ENTROPY_MIN_PLATFORM 128
42 #define ENTROPY_MIN_HAVEGE 128
43 #define ENTROPY_MIN_HARDCLOCK 32
45 #if !defined(POLARSSL_NO_PLATFORM_ENTROPY)
46 
49 int platform_entropy_poll( void *data,
50  unsigned char *output, size_t len, size_t *olen );
51 #endif
52 
53 #if defined(POLARSSL_HAVEGE_C)
54 
59 int havege_poll( void *data,
60  unsigned char *output, size_t len, size_t *olen );
61 #endif
62 
63 #if defined(POLARSSL_TIMING_C)
64 
67 int hardclock_poll( void *data,
68  unsigned char *output, size_t len, size_t *olen );
69 #endif
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #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