Last change
on this file since 19091 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
|
---|
7 | typedef unsigned int uint32;
|
---|
8 | #else
|
---|
9 | typedef unsigned long uint32;
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | struct MD5Context {
|
---|
13 | uint32 buf[4];
|
---|
14 | uint32 bits[2];
|
---|
15 | unsigned char in[64];
|
---|
16 | };
|
---|
17 |
|
---|
18 | void MD5Init(MD5Context *ctx);
|
---|
19 | void MD5Update(MD5Context *ctx, unsigned char *buf, unsigned int len);
|
---|
20 | void MD5Final(unsigned char digest[16], MD5Context *ctx);
|
---|
21 | void MD5Transform(uint32 buf[4], uint32 in[16]);
|
---|
22 |
|
---|
23 | text_t md5data(const text_t &data);
|
---|
24 |
|
---|
25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.