PolarSSL v1.1.4
|
00001 00027 #ifndef POLARSSL_HAVEGE_H 00028 #define POLARSSL_HAVEGE_H 00029 00030 #include <string.h> 00031 00032 #define COLLECT_SIZE 1024 00033 00037 typedef struct 00038 { 00039 int PT1, PT2, offset[2]; 00040 int pool[COLLECT_SIZE]; 00041 int WALK[8192]; 00042 } 00043 havege_state; 00044 00045 #ifdef __cplusplus 00046 extern "C" { 00047 #endif 00048 00054 void havege_init( havege_state *hs ); 00055 00065 int havege_random( void *p_rng, unsigned char *output, size_t len ); 00066 00067 #ifdef __cplusplus 00068 } 00069 #endif 00070 00071 #endif /* havege.h */