File: cpl_md5.h

package info (click to toggle)
gdal 3.6.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 89,664 kB
  • sloc: cpp: 1,136,033; ansic: 197,355; python: 35,910; java: 5,511; xml: 4,011; sh: 3,950; cs: 2,443; yacc: 1,047; makefile: 288
file content (28 lines) | stat: -rw-r--r-- 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* See md5.cpp for explanation and copyright information.  */

#ifndef CPL_MD5_H
#define CPL_MD5_H

#include "cpl_port.h"

CPL_C_START
const char CPL_DLL *CPLMD5String(const char *pszText);
CPL_C_END

#ifndef DOXYGEN_SKIP

struct CPLMD5Context
{
    GUInt32 buf[4];
    GUInt32 bits[2];
    unsigned char in[64];
};

void CPLMD5Init(struct CPLMD5Context *context);
void CPLMD5Update(struct CPLMD5Context *context, const void *buf, size_t len);
void CPLMD5Final(unsigned char digest[16], struct CPLMD5Context *context);
void CPLMD5Transform(GUInt32 buf[4], const unsigned char inraw[64]);

#endif  // #ifndef DOXYGEN_SKIP

#endif /* !CPL_MD5_H */