zideacryptor.h
来自「这是一个加解密程序」· C头文件 代码 · 共 41 行
H
41 行
/* ZIdeaCryptor.h
定义Idea加密算法类 CZIdeaCryptor
张忠杰 2003-11-25
*/
#ifndef ZIdeaCryptorH
#define ZIdeaCryptorH
//---------------------------------------------------------------------------
#include "ZCryptor.h"
class CZIdeaCryptor: public CZCryptor
{
public:
CZIdeaCryptor(const void *Key=NULL);
~CZIdeaCryptor();
//设置密钥(密钥的长度128Bit)
void SetKey(const void *Key);
//读取密钥(密钥的长度128Bit)
void GetKey(void *Key);
//加密分组(分组的大小为64Bit)
void Encrypt(void *Dst,const void *Src);
//解密分组(分组的大小为64Bit)
void Decrypt(void *Dst,const void *Src);
private:
unsigned char _Key[16];
unsigned __int16 EncSubKey[64];
unsigned __int16 DecSubKey[64];
void _IdeaCrypt(void *Dst,const void *Src,int Mark);
};
//---------------------------------------------------------------------------
#endif //ZIdeaCryptorH
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?