⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zteacryptor.h

📁 这是一个加解密程序
💻 H
字号:
/*  ZTeaCryptor.h

    定义Tea加密算法类 CZTeaCryptor

    张忠杰  2003-11-25
*/

#ifndef ZTeaCryptorH
#define ZTeaCryptorH
//---------------------------------------------------------------------------

#include "ZCryptor.h"

class CZTeaCryptor: public CZCryptor
{
public:
    CZTeaCryptor(const void *Key=NULL);
    ~CZTeaCryptor();

    //设置密钥(密钥的长度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];
};

//---------------------------------------------------------------------------
#endif //ZTeaCryptorH

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -