1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef _MD5_H_
- #define _MD5_H_ 1
- #include <stdint.h>
- #include <unistd.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef UINT4
- #define UINT4 unsigned int
- #endif
- #ifndef POINTER
- #define POINTER unsigned char *
- #endif
- typedef struct {
- UINT4 state[4];
- UINT4 count[2];
- unsigned char buffer[64];
- } MD5_CTX;
- void MD5_Init (MD5_CTX *context);
- void MD5_Update (MD5_CTX * context, unsigned char * input, unsigned int inputLen);
- void MD5_Final (unsigned char digest[16], MD5_CTX *context);
- unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md);
- #ifdef __cplusplus
- }
- #endif
- #endif
|