?? csptest2dlg.h
字號:
// CSPTEST2Dlg.h : header file
////////////////////////////////////////////////////////////////////////////////////////////////////
// 工程: CSPTEST2
// 版權 Copyright (c) 2006, 吳嘎
// All rights reserved.
// 版本: 1.0
// 更新: 2006-10-31
// 說明:
// 這個工程本來是為了幫助朋友完成她的項目需要涉及到會話密鑰操作和非對稱密鑰操作而寫,本來已經寫好
// 了CSPTEST這個工程后來發現不是她想要的,才有了這個工程,主要完成的操作有 加密/簽名密鑰對的公/私
// 導入/導出功能,會話密鑰的導入/導出 會話密鑰的加密和解密功能。編程的時候沒有太注意細節,對主要有些小問題
// 當時為了省時間所以操作的數據都比較小 所以沒有用new 來分配大于1024字節的空間,如果朋友有需要的可以自己去修改
// 我自己也標示出來了,總之,還有很多不太注意的地方,不過較之CSPTEST工程(當時,只是寫個DEMO給她看看調用的,后來還是
// 決心幫她到底)還是要好很多。不多說了,大家可以自己看吧,希望對大家有用,如果有什么好的建議可以和我聯系。謝謝大家的閱讀。
//
// 主要的實現類在CCsp中。
// 聯系方式 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_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -