00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef MBEDTLS_ENTROPY_POLL_H
00050 #define MBEDTLS_ENTROPY_POLL_H
00051
00052 #if !defined(MBEDTLS_CONFIG_FILE)
00053 #include "config.h"
00054 #else
00055 #include MBEDTLS_CONFIG_FILE
00056 #endif
00057
00058 #include <stddef.h>
00059
00060 #ifdef __cplusplus
00061 extern "C" {
00062 #endif
00063
00064
00065
00066
00067 #define MBEDTLS_ENTROPY_MIN_PLATFORM 32
00068 #define MBEDTLS_ENTROPY_MIN_HAVEGE 32
00069 #define MBEDTLS_ENTROPY_MIN_HARDCLOCK 4
00070 #if !defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
00071 #define MBEDTLS_ENTROPY_MIN_HARDWARE 32
00072 #endif
00073
00077 #if defined(MBEDTLS_TEST_NULL_ENTROPY)
00078 int mbedtls_null_entropy_poll( void *data,
00079 unsigned char *output, size_t len, size_t *olen );
00080 #endif
00081
00082 #if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
00083
00086 int mbedtls_platform_entropy_poll( void *data,
00087 unsigned char *output, size_t len, size_t *olen );
00088 #endif
00089
00090 #if defined(MBEDTLS_HAVEGE_C)
00091
00096 int mbedtls_havege_poll( void *data,
00097 unsigned char *output, size_t len, size_t *olen );
00098 #endif
00099
00100 #if defined(MBEDTLS_TIMING_C)
00101
00104 int mbedtls_hardclock_poll( void *data,
00105 unsigned char *output, size_t len, size_t *olen );
00106 #endif
00107
00108 #if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
00109
00117 int mbedtls_hardware_poll( void *data,
00118 unsigned char *output, size_t len, size_t *olen );
00119 #endif
00120
00121 #if defined(MBEDTLS_ENTROPY_NV_SEED)
00122
00127 int mbedtls_nv_seed_poll( void *data,
00128 unsigned char *output, size_t len, size_t *olen );
00129 #endif
00130
00131 #ifdef __cplusplus
00132 }
00133 #endif
00134
00135 #endif