Back to index

citadel  8.12
md5.h
Go to the documentation of this file.
00001 
00002 #ifndef MD5_H
00003 #define MD5_H
00004 
00005 #include "sysdep.h"
00006 #include "typesize.h"
00007 
00008 struct MD5Context {
00009        cit_uint32_t buf[4];
00010        cit_uint32_t bits[2];
00011        cit_uint32_t in[16];
00012 };
00013 
00014 void MD5Init(struct MD5Context *context);
00015 void MD5Update(struct MD5Context *context, unsigned char const *buf,
00016               unsigned len);
00017 void MD5Final(unsigned char digest[16], struct MD5Context *context);
00018 void MD5Transform(cit_uint32_t buf[4], cit_uint32_t const in[16]);
00019 char *make_apop_string(char *realpass, char *nonce, char *buffer, size_t n);
00020 
00021 /*
00022  * This is needed to make RSAREF happy on some MS-DOS compilers.
00023  */
00024 #ifndef HAVE_OPENSSL
00025 typedef struct MD5Context MD5_CTX;
00026 #endif
00027 
00028 #define MD5_DIGEST_LEN             16
00029 #define MD5_HEXSTRING_SIZE  33
00030 
00031 #endif /* !MD5_H */