source: gsdl/trunk/lib/md5.h@ 15679

Last change on this file since 15679 was 12506, checked in by kjdon, 18 years ago

added md5.h/cpp - needed for fileupload by cgiwrapper

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 475 bytes
Line 
1#ifndef MD5_H
2#define MD5_H
3
4#include "text_t.h"
5
6#ifdef __alpha
7typedef unsigned int uint32;
8#else
9typedef unsigned long uint32;
10#endif
11
12struct MD5Context {
13 uint32 buf[4];
14 uint32 bits[2];
15 unsigned char in[64];
16};
17
18void MD5Init(MD5Context *ctx);
19void MD5Update(MD5Context *ctx, unsigned char *buf, unsigned int len);
20void MD5Final(unsigned char digest[16], MD5Context *ctx);
21void MD5Transform(uint32 buf[4], uint32 in[16]);
22
23text_t md5data(const text_t &data);
24
25#endif
Note: See TracBrowser for help on using the repository browser.