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

📄 rsaview.h

📁 实现了AES的数字加密
💻 H
字号:
// RSAView.h : interface of the CRSAView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RSAVIEW_H__910E59DC_F398_4D01_B3ED_8A8E385DC07E__INCLUDED_)
#define AFX_RSAVIEW_H__910E59DC_F398_4D01_B3ED_8A8E385DC07E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CRSAView : public CFormView
{
protected: // create from serialization only
	CRSAView();
	DECLARE_DYNCREATE(CRSAView)

public:
	//{{AFX_DATA(CRSAView)
	enum { IDD = IDD_RSA_FORM };
	CString	m_sel_p;
	CString	m_sel_q;
	CString	m_d;
	CString	m_e;
	CString	m_ct;
	CString	m_mt1;
	CString	m_mt2;
	CString	m_n;
	CString	m_p;
	CString	m_q;
	CString	m_g_bit;
	CString	m_eln;
	//}}AFX_DATA

// Attributes
public:
	CRSADoc* GetDocument();

// Operations
//========RSA的计算函数===============
public:
	unsigned long Exponent(unsigned long,unsigned long,unsigned long);  //计算 x^y mod n
//========RSA的计算参数===============
	unsigned long p;
	unsigned long q;
	unsigned long n;
	unsigned long d;
	unsigned long e;
	unsigned long m;
	unsigned long c;
	int g_b;			//分组长度
//====================================

public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRSAView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CRSAView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRSAView)
	afx_msg void OnButtonP();
	afx_msg void OnButtonQ();
	afx_msg void OnButtonE();
	afx_msg void OnButtonMc();
	afx_msg void OnButtonCm();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in RSAView.cpp
inline CRSADoc* CRSAView::GetDocument()
   { return (CRSADoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_RSAVIEW_H__910E59DC_F398_4D01_B3ED_8A8E385DC07E__INCLUDED_)

⌨️ 快捷键说明

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