PolarSSL
|
00001 00025 #ifndef POLARSSL_HAVEGE_H 00026 #define POLARSSL_HAVEGE_H 00027 00028 #define COLLECT_SIZE 1024 00029 00033 typedef struct 00034 { 00035 int PT1, PT2, offset[2]; 00036 int pool[COLLECT_SIZE]; 00037 int WALK[8192]; 00038 } 00039 havege_state; 00040 00041 #ifdef __cplusplus 00042 extern "C" { 00043 #endif 00044 00050 void havege_init( havege_state *hs ); 00051 00059 int havege_rand( void *p_rng ); 00060 00061 #ifdef __cplusplus 00062 } 00063 #endif 00064 00065 #endif /* havege.h */