📄 stream_cipher.h
字号:
#if !defined(AFX_STREAM_CIPHER_H__8CAF6AED_1E09_4138_B449_EDC3BDB16B06__INCLUDED_)
#define AFX_STREAM_CIPHER_H__8CAF6AED_1E09_4138_B449_EDC3BDB16B06__INCLUDED_
#include "MY_CAPDlg.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Stream_Cipher.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStream_Cipher dialog
class CStream_Cipher : public CDialog
{
// Construction
public:
void Produce_Plaintext();
void Produce_Ciphertext();
int Produce_Key();
void Initial_FeedbackKey(CString Feedback_Key,int Max);
BOOL Initial_Key(CString Init_Key,int LFST_Size);
void Trans_Dialog(CWnd *temp);
CStream_Cipher(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CStream_Cipher)
enum { IDD = IDD_STREAMCIPHER };
int m_LFST_Size;
CString m_Feedback_Key;
CString m_Init_Key;
int m_IStream_Size;
CString m_CKey_Stream;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStream_Cipher)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CStream_Cipher)
afx_msg void OnQuit();
afx_msg void OnSetkey();
afx_msg void OnEncipher();
afx_msg void OnDecipher();
afx_msg void OnHelp();
afx_msg void OnCreateKeystream();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void Evaluate_Key();
int Feedback[48];
int m_Feedback_Number;
int Key[48];
int m_Key[48];
CString m_Ciphertext;
CString m_Plaintext;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STREAM_CIPHER_H__8CAF6AED_1E09_4138_B449_EDC3BDB16B06__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -