📄 md5.h
字号:
/*
* md5.h
*
* header file for md5.cpp
*/
#ifndef _MD5_H_
#define _MD5_H_
#ifndef NULL
#define NULL 0
#endif //NULL
typedef unsigned char BYTE;
typedef unsigned short int UINT2;
typedef unsigned long int UINT4;
// MD5 context.
typedef struct _MD5_CTX {
UINT4 state[4]; // state(ABCD)
UINT4 count[2]; // number of bits, modulo 2^64) (lsb first)
BYTE buffer[64]; // input buffer
} MD5_CTX;
// MD5 initialization. Begins an MD5 operation, writing a new context.
// context: MD5_CTX.
void MD5Init(MD5_CTX* context);
// MD5 block update operation. Continues an MD5 message-digest operation,
// processing another message block, and updating the context.
// context: MD5_CTX
// input: input block
// inputLen: length of input block
void MD5Update(MD5_CTX* context, const BYTE* input, UINT4 inputLen);
// MD5 finalization. Ends an MD5 message-digest operation,
// writing the message digest and zeroizing the context.
// digest: message digest.
// context: MD5_CTX.
void MD5Final(BYTE digest[16], MD5_CTX* context);
#endif //_MD5_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -