VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/VolumePasswordPanel.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-27 01:29:45 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:21:49 (GMT)
commitcb6dad6bd21d66cd28b3ef47e3540316ee9913c3 (patch)
tree276b2329a3b0cb5a1f5ac8e49abcd5ad0ff8703b /src/Main/Forms/VolumePasswordPanel.cpp
parent4d8d59c23d8f7ea0ad1f6dda0facd26dad1f7660 (diff)
downloadVeraCrypt-cb6dad6bd21d66cd28b3ef47e3540316ee9913c3.zip
VeraCrypt-cb6dad6bd21d66cd28b3ef47e3540316ee9913c3.tar.gz
Linux/MacOSX port of manual selection of number of passes for volume header over-write operation.
Diffstat (limited to 'src/Main/Forms/VolumePasswordPanel.cpp')
-rw-r--r--src/Main/Forms/VolumePasswordPanel.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Main/Forms/VolumePasswordPanel.cpp b/src/Main/Forms/VolumePasswordPanel.cpp
index 54bef90..10e56f7 100644
--- a/src/Main/Forms/VolumePasswordPanel.cpp
+++ b/src/Main/Forms/VolumePasswordPanel.cpp
@@ -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)
{