00001 #ifndef SHA1_H 00002 #define SHA1_H 00003 00004 typedef struct 00005 { 00006 UINT64 nTotal; 00007 UINT32 H[5]; 00008 UINT8 block[64]; 00009 size_t nblock; 00010 } SHA1_CONTEXT; 00011 00012 void SHA1_Init(SHA1_CONTEXT *p); 00013 void SHA1_Compute(SHA1_CONTEXT *p, size_t n, const char *buf); 00014 void SHA1_Final(SHA1_CONTEXT *p); 00015 00016 #endif // SHA1_H