GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

md5.h
1 /* See md5.cpp for explanation and copyright information. */
2
3 #ifndef MD5_H
4 #define MD5_H
5
6 #ifndef DOXYGEN_SKIP
7
8 /* Unlike previous versions of this code, uint32 need not be exactly
9 32 bits, merely 32 bits or more. Choosing a data type which is 32
10 bits instead of 64 is not important; speed is considerably more
11 important. ANSI guarantees that "unsigned long" will be big enough,
12 and always using it seems to have few disadvantages. */
13 #if defined(CPL_BASE_H_INCLUDED)
14 // Alias cvs_uint32 to GUInt32
15 #define cvs_uint32 GUInt32
16 #else
17 typedef unsigned long cvs_uint32;
18 #endif
19
20 struct cvs_MD5Context {
21 cvs_uint32 buf[4];
22 cvs_uint32 bits[2];
23 unsigned char in[64];
24 };
25
26 void cvs_MD5Init(struct cvs_MD5Context *context);
27 void cvs_MD5Update(struct cvs_MD5Context *context, unsigned char const *buf, unsigned len);
28 void cvs_MD5Final(unsigned char digest[16], struct cvs_MD5Context *context);
29 void cvs_MD5Transform(cvs_uint32 buf[4], const unsigned char in[64]);
30
31 #endif // #ifndef DOXYGEN_SKIP
32
33 #endif /* !MD5_H */

Generated for GDAL by 1.8.8.