diff options
author | Felix Reichmann <54814163+Van-Fouran@users.noreply.github.com> | 2022-08-25 09:46:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 09:46:58 +0200 |
commit | c0ff7a7c521b1d658316d9a177383ab0c403007a (patch) | |
tree | a24b464fba3425b245222f84fd428848900831ef /src/Format/Tcformat.h | |
parent | 99c3cda01a4bb4d1f08b93753ff3b79bcbc3e63e (diff) | |
download | VeraCrypt-c0ff7a7c521b1d658316d9a177383ab0c403007a.tar.gz VeraCrypt-c0ff7a7c521b1d658316d9a177383ab0c403007a.zip |
New sys enc wizard (#957)SysEncWizardPR957
* New VeraCrypt interface (for system encryption) with improved usability
* System Encryption: translate password to US keyboard layout + improved new interface
* Windows: Fix build error following merge
* Windows: Remove unused variable
* Windows: Add missing string in Language.xml
* Windows: fix buffer overrun caused by wrong use of wmemset
* Do not delete password file
Since the file is only available in \Release\Setup Files\ it would be fully deleted after running this script the first time.
* Correct return code
Originally the function would have always returned the return-code 1 resulting that the user is not able to change the location for the rescue zip.
* Added hint for sysenc
Added a hint why the field for repeating the password is initially greyed out within the system encryption.
* Corrected spelling mistake
Corrected spelling mistake
* Removed not working copy job
The file to be copied was stored at the source location. Therefore the copyjob will not work. Instead the file is already in the target folder.
* Removed RIPEMD-160 from Product64.wxs
See commit from 21.03.2022
* Added german translation for new interface
* Fixed PIM bug
* Corrected translation file based on the guidelines within the pull request
* Fixing merge conflicts
* Fixed Compiling issues. Reverted keyboard translation
* Removed artifacts of password translation
* Corrected language.xml
* Fixed order within german language file
* Corrected positions
Co-authored-by: Bruna2803 <bruna.radeljak@hotmail.com>
Co-authored-by: felixreichmann <30237956+felixreichmann@users.noreply.github.com>
Co-authored-by: Mounir IDRASSI <mounir.idrassi@idrix.fr>
Diffstat (limited to 'src/Format/Tcformat.h')
-rw-r--r-- | src/Format/Tcformat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Format/Tcformat.h b/src/Format/Tcformat.h index f9328afd..a8237521 100644 --- a/src/Format/Tcformat.h +++ b/src/Format/Tcformat.h @@ -1,109 +1,117 @@ /* Legal Notice: Some portions of the source code contained in this file were derived from the source code of TrueCrypt 7.1a, which is Copyright (c) 2003-2012 TrueCrypt Developers Association and which is governed by the TrueCrypt License 3.0, also from the source code of Encryption for the Masses 2.02a, which is Copyright (c) 1998-2000 Paul Le Roux and which is governed by the 'License Agreement for Encryption for the Masses' Modifications and additions to the original source code (contained in this file) and all other portions of this file are Copyright (c) 2013-2017 IDRIX and are governed by the Apache License 2.0 the full text of which is contained in the file License.txt included in VeraCrypt binary and source code distribution packages. */ #include "Common/Common.h" #ifdef __cplusplus extern "C" { #endif #define NBR_KEY_BYTES_TO_DISPLAY 16 #define KEY_GUI_VIEW_SIZE 64 // Max characters of the key hex dump to display enum timer_ids { TIMER_ID_RANDVIEW = 0xff, TIMER_ID_SYSENC_PROGRESS, TIMER_ID_NONSYS_INPLACE_ENC_PROGRESS, TIMER_ID_WIPE_PROGRESS, TIMER_ID_SYSENC_DRIVE_ANALYSIS_PROGRESS, TIMER_ID_KEYB_LAYOUT_GUARD }; static void localcleanup ( void ); static void LoadSettings ( HWND hwndDlg ); void SaveSettings ( HWND hwndDlg ); static void EndMainDlg ( HWND hwndDlg ); void ComboSelChangeEA ( HWND hwndDlg ); static void VerifySizeAndUpdate ( HWND hwndDlg , BOOL bUpdate ); static void __cdecl sysEncDriveAnalysisThread (void *hwndDlgArg); static void __cdecl volTransformThreadFunction ( void *hwndDlg ); static void LoadPage ( HWND hwndDlg , int nPageNo ); __int64 PrintFreeSpace ( HWND hwndTextBox , wchar_t *lpszDrive , PLARGE_INTEGER lDiskFree ); void DisplaySizingErrorText ( HWND hwndTextBox ); void EnableDisableFileNext ( HWND hComboBox , HWND hMainButton ); BOOL QueryFreeSpace (HWND hwndDlg, HWND hwndTextBox, BOOL display, LONGLONG *pFreeSpaceValue, BOOL* pbIsSparseFilesSupported); static BOOL FinalPreTransformPrompts (void); void UpdateLastDialogId (void); void HandleOldAssignedDriveLetter (void); void AddCipher ( HWND hComboBox , char *lpszCipher , int nCipher ); BOOL CALLBACK PageDialogProc ( HWND hwndDlg , UINT uMsg , WPARAM wParam , LPARAM lParam ); BOOL CALLBACK MainDialogProc ( HWND hwndDlg , UINT uMsg , WPARAM wParam , LPARAM lParam ); void ExtractCommandLine ( HWND hwndDlg , wchar_t *lpszCommandLine ); void DisplayRandPool (HWND hwndDlg, HWND hPoolDisplay, BOOL bShow); void DisplayPortionsOfKeys (HWND headerKeyHandle, HWND masterKeyHandle, wchar_t *headerKeyStr, wchar_t *masterKeyStr, BOOL hideKeys); int DetermineMaxHiddenVolSize (HWND hwndDlg); BOOL IsSparseFile (HWND hwndDlg); BOOL GetFileVolSize (HWND hwndDlg, unsigned __int64 *size); BOOL SwitchWizardToSysEncMode (void); void SwitchWizardToFileContainerMode (void); static BOOL ResolveUnknownSysEncDirection (void); static BOOL WipeHiddenOSCreationConfig (void); static void AfterWMInitTasks (HWND hwndDlg); static void AfterSysEncProgressWMInitTasks (HWND hwndDlg); static void InitSysEncProgressBar (void); static void InitNonSysInplaceEncProgressBar (void); static void UpdateNonSysInplaceEncProgressBar (void); static BOOL SysEncInEffect (void); static BOOL CreatingHiddenSysVol(void); static void NonSysInplaceEncPause (void); static void NonSysInplaceEncResume (void); void ShowNonSysInPlaceEncUIStatus (void); void UpdateNonSysInPlaceEncControls (void); int MountHiddenVolHost ( HWND hwndDlg, wchar_t *volumePath, int *driveNo, Password *password, int pkcs5_prf, int pim, BOOL bReadOnly ); int AnalyzeHiddenVolumeHost (HWND hwndDlg, int *driveNo, __int64 hiddenVolHostSize, int *realClusterSize, __int64 *pnbrFreeClusters); int ScanVolClusterBitmap ( HWND hwndDlg, int *driveNo, __int64 nbrClusters, __int64 *nbrFreeClusters); static void WipeStart (void); static void WipeAbort (void); static void UpdateWipeProgressBar (void); static void InitWipeProgressBar (void); static void UpdateWipeControls (void); static DWORD GetFormatSectorSize (); extern BOOL showKeys; extern volatile HWND hMasterKey; extern volatile HWND hHeaderKey; extern volatile BOOL bHiddenVolHost; extern volatile BOOL bHiddenVolDirect; extern BOOL bRemovableHostDevice; extern BOOL bWarnDeviceFormatAdvanced; extern HWND hCurPage; extern HWND hProgressBar; extern volatile BOOL bVolTransformThreadCancel; extern volatile BOOL bInPlaceEncNonSysResumed; extern volatile BOOL bFirstNonSysInPlaceEncResumeDone; extern volatile BOOL bInPlaceEncNonSys; extern volatile BOOL bInPlaceDecNonSys; extern __int64 NonSysInplaceEncBytesDone; extern __int64 NonSysInplaceEncTotalSize; extern int nPbar; extern volatile int WizardMode; extern volatile BOOL bInPlaceEncNonSysResumed; extern wchar_t HeaderKeyGUIView [KEY_GUI_VIEW_SIZE]; extern wchar_t MasterKeyGUIView [KEY_GUI_VIEW_SIZE]; extern volatile int NonSysInplaceEncStatus; +BOOL CALLBACK AdvanceDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); +BOOL CALLBACK FinishDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); +void AddComboPairW (HWND hComboBox, const wchar_t *lpszItem, int value); +int PrintStrongness (char* input, unsigned int length); +BOOL CheckWord (char search[]); +BOOL CALLBACK AdvanceDlgProcIntro (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); +void CreateToolTip (HWND hWndParent, HWND hControlItem, PTSTR pszText); + #ifdef __cplusplus } #endif |