00001 /*********************************************************************** 00002 * 00003 * KRYPTOS - Educational software for teaching cryptography 00004 * For more information, see http://www.kryptosproject.org/ 00005 * Submissions may be sent to kryptos@gmu.edu (see web site for details) 00006 * 00007 * 00008 * Copyright (c) 2002-2004 George Mason University 00009 * 00010 * Permission is hereby granted, free of charge, to any person obtaining 00011 * a copy of this software and associated documentation files (the 00012 * "Software"), to deal in the Software without restriction, including 00013 * without limitation the rights to use, copy, modify, merge, publish, 00014 * distribute, sublicense, and/or sell copies of the Software, and to 00015 * permit persons to whom the Software is furnished to do so, subject 00016 * to the following conditions: 00017 * 00018 * The above copyright notice and this permission notice shall be 00019 * included in all copies or substantial portions of the Software. 00020 * 00021 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00022 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00023 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00024 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 00025 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 00026 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 00027 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00028 * 00029 ***********************************************************************/ 00030 #include "KryptosDlg.h" 00031 #if !defined(AFX_PKKEYDETAIL_H__67773F48_4410_4E4F_B5E7_A73985D998E5__INCLUDED_) 00032 #define AFX_PKKEYDETAIL_H__67773F48_4410_4E4F_B5E7_A73985D998E5__INCLUDED_ 00033 00034 #if _MSC_VER > 1000 00035 #pragma once 00036 #endif // _MSC_VER > 1000 00037 // PKKeyDetail.h : header file 00038 // 00039 00041 // CPKKeyDetail dialog 00042 00043 class CPKKeyDetail : public CDialog 00044 { 00045 // Construction 00046 public: 00047 void SaveECPPrivate(); 00048 void SaveECPPublic(); 00049 void SaveEC2NPrivate(); 00050 void SaveEC2NPublic(); 00051 void SaveDSAPrivate(); 00052 void SaveDSAPublic(); 00053 void SaveRSAPrivate(); 00054 void SaveRSAPublic(); 00055 void LoadDSAPublicKey(CString &Debug); 00056 void LoadDSAPrivateKey(CString &Debug); 00057 void LoadECDSA2NPrivateKey(CString &Debug); 00058 void LoadECDSA2NPublicKey(CString &Debug); 00059 void LoadECDSAPPrivateKey(CString &Debug); 00060 void LoadECDSAPPublicKey(CString &Debug); 00061 CFileDialog* p_FileDialog; 00062 DWORD m_dwFileDialogFlags; 00063 CString szFilter; 00064 00065 CKryptosDlg* pParent; 00066 void LoadPrivateKey(CString &Debug); 00067 void LoadPublicKey(CString &Debug); 00068 CPKKeyDetail(CWnd* pParent = NULL); // standard constructor 00069 00070 // Dialog Data 00071 //{{AFX_DATA(CPKKeyDetail) 00072 enum { IDD = IDD_DIALOG1 }; 00073 CString m_Debug; 00074 //}}AFX_DATA 00075 00076 00077 // Overrides 00078 // ClassWizard generated virtual function overrides 00079 //{{AFX_VIRTUAL(CPKKeyDetail) 00080 protected: 00081 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00082 //}}AFX_VIRTUAL 00083 00084 // Implementation 00085 protected: 00086 00087 // Generated message map functions 00088 //{{AFX_MSG(CPKKeyDetail) 00089 virtual BOOL OnInitDialog(); 00090 afx_msg void OnSave(); 00091 //}}AFX_MSG 00092 DECLARE_MESSAGE_MAP() 00093 }; 00094 00095 //{{AFX_INSERT_LOCATION}} 00096 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00097 00098 #endif // !defined(AFX_PKKEYDETAIL_H__67773F48_4410_4E4F_B5E7_A73985D998E5__INCLUDED_)