PolarSSL v1.3.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#if !defined(POLARSSL_CONFIG_FILE)
33#include "config.h"
34#else
35#include POLARSSL_CONFIG_FILE
36#endif
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42/*
43 * Default thresholds for built-in sources
44 */
45#define ENTROPY_MIN_PLATFORM 128
46#define ENTROPY_MIN_HAVEGE 128
47#define ENTROPY_MIN_HARDCLOCK 32
49#if !defined(POLARSSL_NO_PLATFORM_ENTROPY)
53int platform_entropy_poll( void *data,
54 unsigned char *output, size_t len, size_t *olen );
55#endif
56
57#if defined(POLARSSL_HAVEGE_C)
63int havege_poll( void *data,
64 unsigned char *output, size_t len, size_t *olen );
65#endif
66
67#if defined(POLARSSL_TIMING_C)
71int hardclock_poll( void *data,
72 unsigned char *output, size_t len, size_t *olen );
73#endif
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* entropy_poll.h */
Configuration options (set of defines)
int hardclock_poll(void *data, unsigned char *output, size_t len, size_t *olen)
hardclock-based entropy poll callback
int platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen)
Platform-specific entropy poll callback.
int havege_poll(void *data, unsigned char *output, size_t len, size_t *olen)
HAVEGE based entropy poll callback.