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 #if !defined(AFX_MODE_H__3F64340C_504F_4CFA_87F1_9A2BA807A103__INCLUDED_) 00031 #define AFX_MODE_H__3F64340C_504F_4CFA_87F1_9A2BA807A103__INCLUDED_ 00032 00033 #if _MSC_VER > 1000 00034 #pragma once 00035 #endif // _MSC_VER > 1000 00036 // Mode.h : header file 00037 // 00038 00040 // CMode dialog 00041 00042 class CMode : public CPropertyPage 00043 { 00044 DECLARE_DYNCREATE(CMode) 00045 00046 // Construction 00047 public: 00048 CMode(); 00049 ~CMode(); 00050 00051 BOOL dirtyPage; 00052 00053 int m_symCipBlockSizeVal; //block size by value [r] 00054 int m_symBlockByteSizeVal; //block size by byte value [r] 00055 00056 int m_symCipMode; //memory index for mode [r/w] 00057 int m_symCipModeFeedBack; //memory value for CFB feedback [r/w] 00058 00059 CString tempStr; 00060 00061 BYTE* m_ivBuffer; 00062 BOOL m_ivBufferDirty; 00063 00064 //CFileDialog* p_FileDialog; 00065 DWORD m_dwFileDialogFlags; 00066 CString szFilterLoadIV; 00067 CString szFilterSaveIV; 00068 00069 00070 // Dialog Data 00071 //{{AFX_DATA(CMode) 00072 enum { IDD = IDD_PROPPAGE_MODE }; 00073 // NOTE - ClassWizard will add data members here. 00074 // DO NOT EDIT what you see in these blocks of generated code ! 00075 //}}AFX_DATA 00076 00077 00078 // Overrides 00079 // ClassWizard generate virtual function overrides 00080 //{{AFX_VIRTUAL(CMode) 00081 public: 00082 virtual BOOL OnSetActive(); 00083 virtual void OnOK(); 00084 virtual BOOL OnApply(); 00085 virtual void OnCancel(); 00086 protected: 00087 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00088 //}}AFX_VIRTUAL 00089 00090 // Implementation 00091 protected: 00092 // Generated message map functions 00093 //{{AFX_MSG(CMode) 00094 afx_msg void OnSelchangeProppageModeFeedbackSizeCombo(); 00095 afx_msg void OnSelchangeProppageModeModeCombo(); 00096 afx_msg void OnProppageModeGenerateIv(); 00097 virtual BOOL OnInitDialog(); 00098 afx_msg void OnProppageModeLoadIv(); 00099 afx_msg void OnProppageModeSaveIv(); 00100 //}}AFX_MSG 00101 DECLARE_MESSAGE_MAP() 00102 00103 }; 00104 00105 //{{AFX_INSERT_LOCATION}} 00106 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00107 00108 #endif // !defined(AFX_MODE_H__3F64340C_504F_4CFA_87F1_9A2BA807A103__INCLUDED_)