sha1.h

Go to the documentation of this file.
00001 #ifndef _SHA1_H
00002 #define _SHA1_H
00003 
00004 #ifndef uint8
00005 #define uint8  unsigned char
00006 #endif
00007 
00008 #ifndef uint32
00009 #define uint32 unsigned long int
00010 #endif
00011 
00012 typedef struct
00013 {
00014     uint32 total[2];
00015     uint32 state[5];
00016     uint8 buffer[64];
00017 }
00018 sha1_context;
00019 
00020 void sha1_starts( sha1_context *ctx );
00021 void sha1_update( sha1_context *ctx, uint8 *input, uint32 length );
00022 void sha1_finish( sha1_context *ctx, uint8 digest[20] );
00023 
00024 #endif /* sha1.h */

Generated on Thu Jun 7 12:54:29 2007 for DTN Reference Implementation by  doxygen 1.5.1