FreeTDS API: include/md5.h Source File

Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

# md5.h

    00001 #ifndef MD5_H
    00002 #define MD5_H
    00003
    00004 /* $Id: md5.h,v 1.3 2005/07/08 08:22:52 freddy77 Exp $ */
    00005
    00006 struct MD5Context {
    00007         TDS_UINT buf[4];
    00008         TDS_UINT bits[2];
    00009         unsigned char in[64];
    00010 };
    00011
    00012 void MD5Init(struct MD5Context *context);
    00013 void MD5Update(struct MD5Context *context, unsigned char const *buf,
    00014                unsigned len);
    00015 void MD5Final(struct MD5Context *context, unsigned char *digest);
    00016 void MD5Transform(TDS_UINT buf[4], TDS_UINT const in[16]);
    00017
    00018 /*
    00019  * This is needed to make RSAREF happy on some MS-DOS compilers.
    00020  */
    00021 typedef struct MD5Context MD5_CTX;
    00022
    00023 #endif /* !MD5_H */