📄 md5.h
字号:
#ifndef __MD5_H__
#define __MD5_H__
/* typedef a 32 bit type */
//typedef unsigned long int UINT4;
#ifdef _WIN32
typedef __int32 UINT4;
#elif _LINUX
#include <linux/types.h>
typedef __u32 UINT4;
#elif __sun
#include <sys/types.h>
typedef uint32_t UINT4;
#elif _HPUX
#include <sys/_inttypes.h>
typedef uint32_t UINT4;
#else
--ERROR--
#endif
/* Data structure for MD5 (Message Digest) computation */
typedef struct {
UINT4 i[2]; /* number of _bits_ handled mod 2^64 */
UINT4 buf[4]; /* scratch buffer */
unsigned char in[64]; /* input buffer */
unsigned char digest[16]; /* actual digest after MD5Final call */
} MD5_CTX;
void MD5Init (MD5_CTX *mdContext);
void MD5Update (MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen);
void MD5Final (MD5_CTX *mdContext);
void Hash(void* pzData, int nDataLength, unsigned char *pDest, int nBittage);
#endif //__MD5_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -