📄 desdlg.h
字号:
#if !defined(AFX_DESDLG_H__5624AC98_44BE_4B9A_B05E_5E4423A89879__INCLUDED_)
#define AFX_DESDLG_H__5624AC98_44BE_4B9A_B05E_5E4423A89879__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DesDlg.h : header file
//
#include "MyEdit.h"
/////////////////////////////////////////////////////////////////////////////
// CDesDlg dialog
class CDesDlg : public CDialog
{
// Construction
public:
void Fk(char *L, char *R, int i);
void Create_IV();
void InterChange(char *c1, char *c2, int n);
void Encrypt();
void Combination(char *c1, int n1, char *c2, int n2, char *C);
void IP(int *p, int n, char *C, char *c1);
void Create_Key();
void LS(int k, int n, char *C);
void IP(int *p, int n, char *C);
BOOL pick(char ch, int n);
CDesDlg(CWnd* pParent = NULL); // standard constructor
protected:
CMyEdit m_wndEdit;
// Dialog Data
//{{AFX_DATA(CDesDlg)
enum { IDD = IDD_DES };
CString m_strPlainText;
CString m_strBKey;
CString m_strBPlainText;
CString m_strCBCCipher;
CString m_strCFBCipher;
CString m_strECBCipher;
CString m_strInitVector;
CString m_strOFBCipher;
int m_iNum;
CString m_strKey;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDesDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDesDlg)
afx_msg void OnDESEncrypt();
virtual BOOL OnInitDialog();
afx_msg void OnECBDecrypt();
afx_msg void OnCBCDecrypt();
afx_msg void OnCFBDecrypt();
afx_msg void OnOFBDecrypt();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DESDLG_H__5624AC98_44BE_4B9A_B05E_5E4423A89879__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -