mars.h

来自「MARS加密解密」· C头文件 代码 · 共 22 行

H
22
字号
#ifndef MARS_H
#define MARS_H

#include "std_defs2.h"
#include <string>
using namespace std;

class mars : public AES
{
private:
	u4byte   l_key[40];
	void set_key(const u1byte key[], const u4byte key_bits);
	void encrypt(const u1byte in_blk[16], u1byte out_blk[16]);
	void decrypt(const u1byte in_blk[16], u1byte out_blk[16]);

public:
	char *name(void);
	string encrypt(string str, bool ed = true);
	string encrypt16(string str, bool ed = true);
};

#endif

⌨️ 快捷键说明

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