24 #ifndef POLARSSL_ENTROPY_POLL_H
25 #define POLARSSL_ENTROPY_POLL_H
27 #if !defined(POLARSSL_CONFIG_FILE)
30 #include POLARSSL_CONFIG_FILE
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)
51 unsigned char *output,
size_t len,
size_t *olen );
54 #if defined(POLARSSL_HAVEGE_C)
60 int havege_poll(
void *data,
61 unsigned char *output,
size_t len,
size_t *olen );
64 #if defined(POLARSSL_TIMING_C)
69 unsigned char *output,
size_t len,
size_t *olen );
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