1
0
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:
Mounir IDRASSI
2014-07-27 03:29:45 +02:00
parent 4d8d59c23d
commit cb6dad6bd2
8 changed files with 217 additions and 11 deletions

View File

@@ -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)
{