00001 00023 #ifndef POLARSSL_HAVEGE_H 00024 #define POLARSSL_HAVEGE_H 00025 00026 #define COLLECT_SIZE 1024 00027 00031 typedef struct 00032 { 00033 int PT1, PT2, offset[2]; 00034 int pool[COLLECT_SIZE]; 00035 int WALK[8192]; 00036 } 00037 havege_state; 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00048 void havege_init( havege_state *hs ); 00049 00057 int havege_rand( void *p_rng ); 00058 00059 #ifdef __cplusplus 00060 } 00061 #endif 00062 00063 #endif /* havege.h */