00001
00002
00003
00004
00005
00006
00007 #ifndef MD5_H
00008 #define MD5_H
00009
00010
00011 #ifndef PROTO
00012 #if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
00013 #define PROTO(ARGS) ARGS
00014 #else
00015 #define PROTO(ARGS) ()
00016 #endif
00017 #endif
00018
00019
00020
00021
00022
00023
00024
00025 typedef unsigned long cvs_uint32;
00026
00027 struct cvs_MD5Context {
00028 cvs_uint32 buf[4];
00029 cvs_uint32 bits[2];
00030 unsigned char in[64];
00031 };
00032
00033 void cvs_MD5Init PROTO ((struct cvs_MD5Context *context));
00034 void cvs_MD5Update PROTO ((struct cvs_MD5Context *context,
00035 unsigned char const *buf, unsigned len));
00036 void cvs_MD5Final PROTO ((unsigned char digest[16],
00037 struct cvs_MD5Context *context));
00038 void cvs_MD5Transform PROTO ((cvs_uint32 buf[4], const unsigned char in[64]));
00039
00040 #endif