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

📄 header.h

📁 aes的原代码
💻 H
字号:
#pragma once
/// 文件头长度,160字节,头2字节表示有效文件头的长度,有效文件头158字节,其中
/// pID 4 byte
/// 文件类型 6 byte
/// 文件大小 8 byte
/// 证书服务器位置 64 byte
/// 门户位置 64 byte
/// 加密算法 1 byte
/// 密钥长度 2 byte
/// 是否绑定机器ID 1 byte
/// 段长度 4 byte
/// 段总数 4 byte

#ifndef HEAD_LEN		//文件头长度,一般定死,所以用常量
#define HEAD_LEN 160
#endif
/**
 * 文件头的操作的类,其中包括生成文件头,分离文件头,还原文件头等
 */
class Header
{
public:
	Header(FILE * fStream);
	Header(char * fileName);
	~Header(void);
	unsigned char header[158];
	unsigned char headLen[2];
	unsigned char pID[4];
	unsigned char fileType[6];
	unsigned char fileAmount[8];
	unsigned char credialLocation[64];
	unsigned char potalLocation[64];
	unsigned char encryptMethod[1];
	unsigned char keyLen[2];
	unsigned char bBandPCID[1];
	unsigned char sectionLength[4];
	unsigned char totalSection[4];
	int headEndPosition;
private:
	FILE * fp;
	void separateHeader();
	unsigned char *membuf;
};

⌨️ 快捷键说明

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