123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #ifdef HAVE_OPENSSL
- #include <openssl/md5.h>
- #elif !defined(_MD5_H)
- #define _MD5_H
-
- typedef unsigned int MD5_u32plus;
-
- typedef struct {
- MD5_u32plus lo, hi;
- MD5_u32plus a, b, c, d;
- unsigned char buffer[64];
- MD5_u32plus block[16];
- } MD5_CTX;
-
- extern void MD5_Init(MD5_CTX *ctx);
- extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
- extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
-
- #endif
- #ifdef __cplusplus
- }
- #endif
|