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

📄 des3.h

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

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

/////////////////////////////////////////////////////////////////////////////
// DES3 window

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

// 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 keytext1[9];
char keytext2[9];
char keytext3[9];
void endes();
void dedes();
char *endes3();
char *dedes3();
char encryption[64],decryption[64];
// Operations
public:

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

// Implementation
public:
	virtual ~DES3();

	// Generated message map functions
protected:
	//{{AFX_MSG(DES3)
		// 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_DES3_H__1F82509F_6A20_42BD_9B1F_22585C40C6A4__INCLUDED_)

⌨️ 快捷键说明

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