00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef MBEDTLS_ENTROPY_POLL_H
00025 #define MBEDTLS_ENTROPY_POLL_H
00026
00027 #if !defined(MBEDTLS_CONFIG_FILE)
00028 #include "config.h"
00029 #else
00030 #include MBEDTLS_CONFIG_FILE
00031 #endif
00032
00033 #include <stddef.h>
00034
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038
00039
00040
00041
00042 #define MBEDTLS_ENTROPY_MIN_PLATFORM 32
00043 #define MBEDTLS_ENTROPY_MIN_HAVEGE 32
00044 #define MBEDTLS_ENTROPY_MIN_HARDCLOCK 4
00045 #if !defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
00046 #define MBEDTLS_ENTROPY_MIN_HARDWARE 32
00047 #endif
00048
00052 #if defined(MBEDTLS_TEST_NULL_ENTROPY)
00053 int mbedtls_null_entropy_poll( void *data,
00054 unsigned char *output, size_t len, size_t *olen );
00055 #endif
00056
00057 #if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
00058
00061 int mbedtls_platform_entropy_poll( void *data,
00062 unsigned char *output, size_t len, size_t *olen );
00063 #endif
00064
00065 #if defined(MBEDTLS_HAVEGE_C)
00066
00071 int mbedtls_havege_poll( void *data,
00072 unsigned char *output, size_t len, size_t *olen );
00073 #endif
00074
00075 #if defined(MBEDTLS_TIMING_C)
00076
00079 int mbedtls_hardclock_poll( void *data,
00080 unsigned char *output, size_t len, size_t *olen );
00081 #endif
00082
00083 #if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
00084
00092 int mbedtls_hardware_poll( void *data,
00093 unsigned char *output, size_t len, size_t *olen );
00094 #endif
00095
00096 #if defined(MBEDTLS_ENTROPY_NV_SEED)
00097
00102 int mbedtls_nv_seed_poll( void *data,
00103 unsigned char *output, size_t len, size_t *olen );
00104 #endif
00105
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109
00110 #endif