md5.h
来自「这个是用于手机数据线串口测试程序的」· C头文件 代码 · 共 29 行
H
29 行
// (C) 2000, Tsung-Fan Lin.
// MD5 algorithm implementation. Based on RFC1321.
//
#ifndef __MD5_H
#define __MD5_H
#define MD5SIZE 16
typedef unsigned long uint32;
#pragma intrinsic(strcpy,strcat,memcpy,strlen,memset,memcmp)
typedef struct _MD5Context
{
uint32 buf[4]; // Current context A, B, C, D.
uint32 bits[2]; // bit counts of current input data by MD5Update().
unsigned char in[64]; // Current input buffer.
}MD5Context;
// User functions for MD5.
void MD5Init(MD5Context* context);
void MD5Update(MD5Context* context, const unsigned char* input, unsigned int inputLen);
void MD5Final(unsigned char digest[16], MD5Context* context);
// Internal functions of MD5.
void MD5Transform(uint32 buf[4], const uint32 in[16]);
// For RSAREF testing.
typedef MD5Context MD5_CTX;
#endif // #ifndef __MD5_H.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?