GDAL

cpl_md5.h
1 /* See md5.cpp for explanation and copyright information. */
2
3 #ifndef CPL_MD5_H
4 #define CPL_MD5_H
5
6 #include "cpl_port.h"
7
8 CPL_C_START
9 const char CPL_DLL *CPLMD5String(const char *pszText);
10 CPL_C_END
11
12 #ifndef DOXYGEN_SKIP
13
14 struct CPLMD5Context
15 {
16 GUInt32 buf[4];
17 GUInt32 bits[2];
18 unsigned char in[64];
19 };
20
21 void CPLMD5Init(struct CPLMD5Context *context);
22 void CPLMD5Update(struct CPLMD5Context *context, const void *buf, size_t len);
23 void CPLMD5Final(unsigned char digest[16], struct CPLMD5Context *context);
24 void CPLMD5Transform(GUInt32 buf[4], const unsigned char inraw[64]);
25
26 #endif // #ifndef DOXYGEN_SKIP
27
28 #endif /* !CPL_MD5_H */
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:306
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:310
cpl_port.h
GUInt32
unsigned int GUInt32
Unsigned int32 type.
Definition: cpl_port.h:188