00001 00004 #ifndef XYSSL_SHA1_H 00005 #define XYSSL_SHA1_H 00006 00010 typedef struct 00011 { 00012 unsigned long total[2]; 00013 unsigned long state[5]; 00014 unsigned char buffer[64]; 00016 unsigned char ipad[64]; 00017 unsigned char opad[64]; 00018 } 00019 sha1_context; 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00030 void sha1_starts( sha1_context *ctx ); 00031 00039 void sha1_update( sha1_context *ctx, unsigned char *input, int ilen ); 00040 00047 void