mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Linux/MacOSX port of manual selection of number of passes for volume header over-write operation.
This commit is contained in:
@@ -189,6 +189,23 @@ namespace VeraCrypt
|
||||
return shared_ptr <Pkcs5Kdf> ();
|
||||
}
|
||||
}
|
||||
|
||||
int VolumePasswordPanel::GetHeaderWipeCount () const
|
||||
{
|
||||
try
|
||||
{
|
||||
long wipeCount;
|
||||
wxString wipeCountStrDesc = HeaderWipeCount->GetStringSelection();
|
||||
wxString wipeCountStr = wipeCountStrDesc.BeforeFirst(wxT("-"));
|
||||
if (!wipeCountStr.ToLong(&wipeCount))
|
||||
wipeCount = PRAND_HEADER_WIPE_PASSES;
|
||||
return (int) wipeCount;
|
||||
}
|
||||
catch (ParameterIncorrect&)
|
||||
{
|
||||
return PRAND_HEADER_WIPE_PASSES;
|
||||
}
|
||||
}
|
||||
|
||||
void VolumePasswordPanel::OnAddKeyfileDirMenuItemSelected (wxCommandEvent& event)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user