/home/dko/projects/mobilec/trunk/src/security/xyssl-0.7/include/xyssl/havege.h

Go to the documentation of this file.
00001 /* SVN FILE INFO
00002  * $Revision: 174 $ : Last Committed Revision
00003  * $Date: 2008-06-24 10:50:29 -0700 (Tue, 24 Jun 2008) $ : Last Committed Date */
00007 #ifndef _HAVEGE_H
00008 #define _HAVEGE_H
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014 #define COLLECT_SIZE 1024
00015 
00019 typedef struct
00020 {
00021     int PT1, PT2, offset[2];
00022     int pool[COLLECT_SIZE];
00023     int WALK[8192];
00024 }
00025 havege_state;
00026 
00032 void havege_init( havege_state *hs );
00033 
00041 int havege_rand( void *rng_d );
00042 
00043 #ifdef __cplusplus
00044 }
00045 #endif
00046 
00047 #endif /* havege.h */

Generated on Tue Jul 1 15:29:58 2008 for Mobile-C by  doxygen 1.5.4