00001
00023 #ifndef MBEDTLS_ENTROPY_POLL_H
00024 #define MBEDTLS_ENTROPY_POLL_H
00025
00026 #if !defined(MBEDTLS_CONFIG_FILE)
00027 #include "config.h"
00028 #else
00029 #include MBEDTLS_CONFIG_FILE
00030 #endif
00031
00032 #include <stddef.h>
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00038
00039
00040
00041 #define MBEDTLS_ENTROPY_MIN_PLATFORM 32
00042 #define MBEDTLS_ENTROPY_MIN_HAVEGE 32
00043 #define MBEDTLS_ENTROPY_MIN_HARDCLOCK 4
00044 #define MBEDTLS_ENTROPY_MIN_HARDWARE 32
00049 #if defined(MBEDTLS_TEST_NULL_ENTROPY)
00050 int mbedtls_null_entropy_poll( void *data,
00051 unsigned char *output, size_t len, size_t *olen );
00052 #endif
00053
00054 #if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
00055
00058 int mbedtls_platform_entropy_poll( void *data,
00059 unsigned char *output, size_t len, size_t *olen );
00060 #endif
00061
00062 #if defined(MBEDTLS_HAVEGE_C)
00063
00068 int mbedtls_havege_poll( void *data,
00069 unsigned char *output, size_t len, size_t *olen );
00070 #endif
00071
00072 #if defined(MBEDTLS_TIMING_C)
00073
00076 int mbedtls_hardclock_poll( void *data,
00077 unsigned char *output, size_t len, size_t *olen );
00078 #endif
00079
00080 #if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
00081
00089 int mbedtls_hardware_poll( void *data,
00090 unsigned char *output, size_t len, size_t *olen );
00091 #endif
00092
00093 #if defined(MBEDTLS_ENTROPY_NV_SEED)
00094
00099 int mbedtls_nv_seed_poll( void *data,
00100 unsigned char *output, size_t len, size_t *olen );
00101 #endif
00102
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106
00107 #endif