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

📄 des1.h

📁 计算机安全的 多种密码算法演示
💻 H
字号:
#if !defined(AFX_DES1_H__4AB4A741_1FE7_11D9_B081_898A98014E17__INCLUDED_)
#define AFX_DES1_H__4AB4A741_1FE7_11D9_B081_898A98014E17__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DES1.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// DES1 window

class DES1 : public CAnimateCtrl
{
// Construction
public:
	DES1();

// Attributes
public:

static unsigned int IP[];
static unsigned int IP_1[];
static unsigned int E[];
static unsigned int P[];
static unsigned int s1[4][16];
static unsigned int s2[4][16];
static unsigned int s3[4][16];
static unsigned int s4[4][16];
static unsigned int s5[4][16];
static unsigned int s6[4][16];
static unsigned int s7[4][16];
static unsigned int s8[4][16];
char plaintext[9];
char keytext[9];
char *endes();
char *dedes();
char encryption[64],decryption[64];
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(DES1)
	//}}AFX_VIRTUAL




// Implementation
public:
	virtual ~DES1();

	// Generated message map functions
protected:
	//{{AFX_MSG(DES1)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG


int t1[65],K[17][49],R0[33],L0[33],R1[33],L1[33];
void initial();
void keytextTobin();
void plaintextTobin();
void round(int *L1,int *R1,int *L2,int *R2,int Key[][49],int m );
char buf[64];

int m[65],k[65];


	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DES1_H__4AB4A741_1FE7_11D9_B081_898A98014E17__INCLUDED_)

⌨️ 快捷键说明

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