mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Add option in select the number of passes for volume header over-writing. By default, it is set to 3 but it can be increased to 256 passes (which can lead to a delay of many hours for a single password change operation).
This commit is contained in:
@@ -1565,7 +1565,7 @@ SelectAlgo (HWND hComboBox, int *algo_id)
|
||||
|
||||
}
|
||||
|
||||
void PopulateWipeModeCombo (HWND hComboBox, BOOL bNA, BOOL bInPlaceEncryption)
|
||||
void PopulateWipeModeCombo (HWND hComboBox, BOOL bNA, BOOL bInPlaceEncryption, BOOL bHeaderWipe)
|
||||
{
|
||||
if (bNA)
|
||||
{
|
||||
@@ -1573,14 +1573,20 @@ void PopulateWipeModeCombo (HWND hComboBox, BOOL bNA, BOOL bInPlaceEncryption)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (bInPlaceEncryption)
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_NONE"), TC_WIPE_NONE);
|
||||
else
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_1_RAND"), TC_WIPE_1_RAND);
|
||||
if (!bHeaderWipe)
|
||||
{
|
||||
if (bInPlaceEncryption)
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_NONE"), TC_WIPE_NONE);
|
||||
else
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_1_RAND"), TC_WIPE_1_RAND);
|
||||
}
|
||||
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_3_DOD_5220"), TC_WIPE_3_DOD_5220);
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_7_DOD_5220"), TC_WIPE_7_DOD_5220);
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_35_GUTMANN"), TC_WIPE_35_GUTMANN);
|
||||
|
||||
if (bHeaderWipe)
|
||||
AddComboPairW (hComboBox, GetString ("WIPE_MODE_256"), TC_WIPE_256); // paranoid wipe for volume header
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1603,6 +1609,9 @@ wchar_t *GetWipeModeName (WipeAlgorithmId modeId)
|
||||
case TC_WIPE_35_GUTMANN:
|
||||
return GetString ("WIPE_MODE_35_GUTMANN");
|
||||
|
||||
case TC_WIPE_256:
|
||||
return GetString ("WIPE_MODE_256");
|
||||
|
||||
default:
|
||||
return GetString ("NOT_APPLICABLE_OR_NOT_AVAILABLE");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user