]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/md5.h
2 * No copyright is claimed. This code is in the public domain; do with it what
5 #ifndef UTIL_LINUX_MD5_H
6 #define UTIL_LINUX_MD5_H
10 #define UL_MD5LENGTH 16
12 struct UL_MD5Context
{
18 void ul_MD5Init(struct UL_MD5Context
*ctx
);
19 void ul_MD5Update(struct UL_MD5Context
*ctx
, unsigned char const *buf
, unsigned len
);
20 void ul_MD5Final(unsigned char digest
[UL_MD5LENGTH
], struct UL_MD5Context
*ctx
);
21 void ul_MD5Transform(uint32_t buf
[4], uint32_t const in
[16]);
24 * This is needed to make RSAREF happy on some MS-DOS compilers.
26 typedef struct UL_MD5Context UL_MD5_CTX
;
28 #endif /* !UTIL_LINUX_MD5_H */