📄 des2.h
字号:
#if !defined(AFX_DES2_H__37351A9E_9DD1_4FAB_A973_34560648244B__INCLUDED_)
#define AFX_DES2_H__37351A9E_9DD1_4FAB_A973_34560648244B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DES2.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// DES2 window
class DES2 : public CAnimateCtrl
{
// Construction
public:
DES2();
// 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];
void endes();
void dedes();
char *endes2();
char *dedes2();
char encryption[64],decryption[64];
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(DES2)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~DES2();
// Generated message map functions
protected:
//{{AFX_MSG(DES2)
// 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_DES2_H__37351A9E_9DD1_4FAB_A973_34560648244B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -