md5.h
来自「比较简单的md5的应用,用户使用起来非常方便」· C头文件 代码 · 共 40 行
H
40 行
#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 + =
减小字号Ctrl + -
显示快捷键?