?? csptest2dlg.h
字號(hào):
// CSPTEST2Dlg.h : header file
////////////////////////////////////////////////////////////////////////////////////////////////////
// 工程: CSPTEST2
// 版權(quán) Copyright (c) 2006, 吳嘎
// All rights reserved.
// 版本: 1.0
// 更新: 2006-10-31
// 說(shuō)明:
// 這個(gè)工程本來(lái)是為了幫助朋友完成她的項(xiàng)目需要涉及到會(huì)話密鑰操作和非對(duì)稱密鑰操作而寫(xiě),本來(lái)已經(jīng)寫(xiě)好
// 了CSPTEST這個(gè)工程后來(lái)發(fā)現(xiàn)不是她想要的,才有了這個(gè)工程,主要完成的操作有 加密/簽名密鑰對(duì)的公/私
// 導(dǎo)入/導(dǎo)出功能,會(huì)話密鑰的導(dǎo)入/導(dǎo)出 會(huì)話密鑰的加密和解密功能。編程的時(shí)候沒(méi)有太注意細(xì)節(jié),對(duì)主要有些小問(wèn)題
// 當(dāng)時(shí)為了省時(shí)間所以操作的數(shù)據(jù)都比較小 所以沒(méi)有用new 來(lái)分配大于1024字節(jié)的空間,如果朋友有需要的可以自己去修改
// 我自己也標(biāo)示出來(lái)了,總之,還有很多不太注意的地方,不過(guò)較之CSPTEST工程(當(dāng)時(shí),只是寫(xiě)個(gè)DEMO給她看看調(diào)用的,后來(lái)還是
// 決心幫她到底)還是要好很多。不多說(shuō)了,大家可以自己看吧,希望對(duì)大家有用,如果有什么好的建議可以和我聯(lián)系。謝謝大家的閱讀。
//
// 主要的實(shí)現(xiàn)類在CCsp中。
// 聯(lián)系方式 QQ 4436045(心靈的路行) MSN alfred_woo1982@hotmail.com
//
//
////////////////////////////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CSPTEST2DLG_H__D19F558A_F88D_4BA8_A83D_47A04206CA97__INCLUDED_)
#define AFX_CSPTEST2DLG_H__D19F558A_F88D_4BA8_A83D_47A04206CA97__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCSPTEST2Dlg dialog
class CCSPTEST2Dlg : public CDialog
{
// Construction
public:
int WriteFile(CString strFilePath, BYTE *pbFileData, INT nFileLen, CString strFileDescript);
void OnBrownImport(CString strImportPath);
void OnBrownExport(CString strExportPath);
void OpenFile(CString strFilePath, BYTE *pbFileData, INT &nFileLen, CString strFileDescript);
CCSPTEST2Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCSPTEST2Dlg)
enum { IDD = IDD_CSPTEST2_DIALOG };
CString m_strContainer;
CString m_strExportSessionPath;
CString m_strImportSPubPath;
CString m_strExEnPriPath;
CString m_strExEnPubPath;
CString m_strExSiPriPath;
CString m_strExSiPubPath;
CString m_strImEnPriPath;
CString m_strImEnPubPath;
CString m_strImSePriPath;
CString m_strImSiPriPath;
CString m_strImSiPubPath;
CString m_strImSePath;
CString m_strImSEnDataPath;
CString m_strExSDeDataPath;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCSPTEST2Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCSPTEST2Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnGenSessionKey();
afx_msg void OnGenEncryptKeyPairs();
afx_msg void OnBrown5();
afx_msg void OnBrown6();
afx_msg void OnBrown1();
afx_msg void OnBrown2();
afx_msg void OnBrown3();
afx_msg void OnBrown4();
afx_msg void OnBrown9();
afx_msg void OnBrown10();
afx_msg void OnBrown11();
afx_msg void OnBrown12();
afx_msg void OnBrown7();
afx_msg void OnBrown8();
afx_msg void OnExportSignatureKeypair();
afx_msg void OnImportEncryptKeypair();
afx_msg void OnImportSignatureKeypair();
afx_msg void OnSessionEncrypt();
afx_msg void OnSessionDecrypt();
afx_msg void OnBrown13();
afx_msg void OnButton14();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CSPTEST2DLG_H__D19F558A_F88D_4BA8_A83D_47A04206CA97__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -